@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2-variations");
}

:root {
    --ink: #172033;
    --ink-soft: #3f4859;
    --paper: #f7f3e9;
    --white: #fffefa;
    --coral: #ff7058;
    --coral-dark: #9f3022;
    --yellow: #f8d34f;
    --mint: #6dd4ad;
    --violet: #7667df;
    --line: #d9d4c8;
    --success: #21835e;
    --success-dark: #145c43;
    --text-muted: #4a5365;
    --text-subtle: #626c7f;
    --shadow-s: 4px 4px 0 var(--ink);
    --radius-s: 7px;
    --radius-m: 12px;
    --radius-l: 18px;
    --wrap-max: 1420px;
    --wrap: min(var(--wrap-max), calc(100% - 48px));
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; font-size: 125%; }
body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
.home, .home main { overflow-x: hidden; }
body::before {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    content: "";
    opacity: .25;
    background-image: radial-gradient(#172033 0.65px, transparent 0.65px);
    background-size: 8px 8px;
    mask-image: linear-gradient(to bottom, #000, transparent 80%);
}
a { color: inherit; }
img { max-width: 100%; }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.08; letter-spacing: -.035em; }
h1, h2 { text-wrap: balance; }
p { text-wrap: pretty; }
h1 { font-size: clamp(2.8rem, 6vw, 5.6rem); }
h2 { font-size: clamp(2.15rem, 4.5vw, 4rem); }
h3 { font-size: 1.5rem; }
.wrap { width: var(--wrap); margin-inline: auto; }
.sr-only, .skip-link:not(:focus) {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.skip-link:focus { position: fixed; z-index: 1000; top: 10px; left: 10px; padding: 10px 14px; background: #fff; border: 2px solid var(--ink); }

.site-header {
    width: var(--wrap);
    height: 96px;
    margin-inline: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 11px; color: var(--ink); text-decoration: none; font-size: 1.16rem; font-weight: 900; letter-spacing: -.035em; }
.brand img { width: 48px; height: 48px; }
.site-nav { display: flex; align-items: center; gap: 34px; }
.site-nav > a { font-size: .9rem; font-weight: 750; text-decoration: none; }
.site-nav > a:not(.button):hover { color: var(--coral-dark); }
.nav-toggle { display: none; padding: 8px 12px; color: var(--ink); background: transparent; border: 2px solid var(--ink); border-radius: 8px; font-weight: 800; }
.nav-profile { display: flex; align-items: center; gap: 8px; min-width: 0; max-width: 220px; }
/* Un pseudo long ne doit pas pousser la navigation hors de la bande :
   il se tronque proprement plutôt que de déborder. L'initiale reste
   toujours visible car la pastille ne se compresse pas. */
.nav-profile { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.nav-profile span { flex: 0 0 auto; }
.nav-profile span { display: grid; width: 30px; height: 30px; place-items: center; color: #fff; background: var(--violet); border: 2px solid var(--ink); border-radius: 50%; }
.nav-game-stats { display: inline-flex; align-items: center; gap: 9px; }.nav-game-stats span { display: inline-flex; align-items: center; gap: 4px; }.nav-game-stats img { width: 22px; height: 22px; object-fit: contain; }
.site-nav { margin-left: auto; }
.notification-shell { position: relative; z-index: 210; margin-left: 18px; }
.notification-trigger { width: 50px; height: 50px; padding: 0; position: relative; display: grid; place-items: center; background: var(--white); border: 2px solid var(--ink); border-radius: 15px; box-shadow: 3px 3px 0 var(--coral); cursor: pointer; }
.notification-trigger img { width: 28px; height: 28px; object-fit: contain; image-rendering: auto; }
.notification-trigger:hover { transform: translateY(-2px); box-shadow: 4px 5px 0 var(--coral); }
.notification-count { min-width: 21px; height: 21px; padding: 0 5px; position: absolute; top: -9px; right: -9px; display: grid; place-items: center; color: #fff; background: var(--coral-dark); border: 2px solid var(--ink); border-radius: 999px; font-size: .56rem; font-weight: 950; line-height: 1; }
.notification-panel { width: min(410px, calc(100vw - 28px)); position: absolute; z-index: 220; top: calc(100% + 15px); right: 0; overflow: hidden; background: var(--white); border: 2px solid var(--ink); border-radius: 18px; box-shadow: 8px 8px 0 var(--ink); }
.notification-panel > header { padding: 17px 18px; display: flex; align-items: center; justify-content: space-between; gap: 18px; color: #fff; background: var(--ink); }
.notification-panel > header small, .notification-panel > header strong { display: block; }.notification-panel > header small { color: #bbc5d5; font-size: .6rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }.notification-panel > header strong { font-size: 1rem; }
.notification-panel > header button { width: 44px; height: 44px; padding: 0; color: #fff; background: #2b374b; border: 1px solid #637087; border-radius: 50%; cursor: pointer; font-size: 1.3rem; line-height: 1; }
.notification-list { padding: 9px; display: grid; gap: 7px; }
.notification-item { width: 100%; min-height: 92px; padding: 12px; display: grid; grid-template-columns: 52px 1fr 9px; align-items: center; gap: 12px; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 13px; text-align: left; cursor: pointer; }
.notification-item:hover { background: #f6f2e8; border-color: var(--ink); }
.notification-item-visual { width: 52px; height: 52px; display: grid; place-items: center; background: #fff3be; border: 2px solid var(--ink); border-radius: 14px; }.notification-item-visual.is-update { background: #dff7ee; }.notification-item-visual img { width: 38px; height: 38px; object-fit: contain; }
.notification-item-visual.is-release { background: #eeeaff; box-shadow: 3px 3px 0 var(--violet); }
.notification-item > span:nth-child(2) strong, .notification-item > span:nth-child(2) small { display: block; }.notification-item > span:nth-child(2) strong { margin-bottom: 3px; font-size: .76rem; }.notification-item > span:nth-child(2) small { color: var(--ink-soft); font-size: .66rem; line-height: 1.4; }
.notification-item > i { width: 8px; height: 8px; background: var(--coral); border: 1px solid var(--ink); border-radius: 50%; }.notification-item.is-read > i { background: transparent; border-color: #a9a69e; }
.site-status-modal { position: fixed; z-index: 900; inset: 0; display: grid; place-items: center; padding: 22px; }
.site-status-backdrop { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; background: rgba(12,18,30,.72); border: 0; backdrop-filter: blur(5px); cursor: pointer; }
.site-status-modal > section { width: min(620px, 100%); max-height: calc(100vh - 44px); padding: clamp(28px, 5vw, 48px); position: relative; z-index: 1; overflow-y: auto; background: var(--white); border: 3px solid var(--ink); border-radius: 24px; box-shadow: 12px 12px 0 var(--coral); }
.site-status-modal > section > img { width: 92px; height: 92px; margin-bottom: 16px; object-fit: contain; }
.site-status-modal > section > p:first-of-type { margin-bottom: 8px; color: #5d50b1; font-family: ui-monospace, monospace; font-size: .66rem; font-weight: 950; letter-spacing: .08em; text-transform: uppercase; }
.site-status-modal h2 { margin-bottom: 16px; font-size: clamp(1.8rem, 5vw, 3rem); }
.site-status-modal h2 + p { color: var(--ink-soft); font-size: .82rem; }
.site-status-close { width: 44px; height: 44px; padding: 0; position: absolute; top: 17px; right: 17px; color: var(--ink); background: #fff; border: 2px solid var(--ink); border-radius: 50%; cursor: pointer; font-size: 1.4rem; line-height: 1; }
.site-status-points { padding: 14px 0 20px; display: grid; gap: 10px; }.site-status-points span { display: flex; align-items: flex-start; gap: 10px; color: var(--ink-soft); font-size: .7rem; }.site-status-points b { width: 11px; height: 11px; margin-top: 5px; flex: 0 0 11px; background: var(--mint); border: 1px solid var(--ink); border-radius: 50%; }
.site-modal-open { overflow: hidden; }

.button {
    display: inline-flex;
    min-height: 58px;
    padding: 0 26px;
    align-items: center;
    justify-content: center;
    gap: 18px;
    color: var(--ink);
    background: var(--white);
    border: 2px solid var(--ink);
    border-radius: var(--radius-m);
    box-shadow: var(--shadow-s);
    font-size: .95rem;
    font-weight: 850;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    transition: transform .16s ease, box-shadow .16s ease;
}
.button:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 3px solid var(--violet); outline-offset: 4px; }
.button:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }
.button:active { transform: translate(4px, 4px); box-shadow: none; }
.button-primary { background: var(--coral); }
.button-dark { color: #fff; background: var(--ink); box-shadow: 4px 4px 0 var(--coral); }
.button-small { min-height: 42px; padding-inline: 16px; font-size: .82rem; box-shadow: 3px 3px 0 var(--coral); }
.button-full { width: 100%; }
.text-link { font-weight: 800; text-underline-offset: 5px; }
.eyebrow { display: flex; align-items: center; gap: 11px; margin-bottom: 18px; font-size: .73rem; font-weight: 900; letter-spacing: .17em; text-transform: uppercase; }
.eyebrow span { width: 24px; height: 3px; background: var(--coral); }

.hero { min-height: 690px; padding: 82px 0 75px; display: grid; grid-template-columns: 1.03fr .97fr; align-items: center; gap: 48px; }
.hero-copy, .hero-visual { min-width: 0; }
.hero h1 { margin-bottom: 28px; }
.hero h1 em { color: var(--coral-dark); font-style: normal; }
.hero-lead { max-width: 600px; margin-bottom: 30px; color: var(--ink-soft); font-size: clamp(1rem, 2vw, 1.22rem); line-height: 1.7; }
.hero-actions { display: flex; align-items: center; gap: 25px; }
.hero-proof { display: flex; padding: 0; margin: 32px 0 0; gap: 22px; flex-wrap: wrap; list-style: none; color: var(--ink-soft); font-size: .78rem; font-weight: 750; }
.hero-proof span { color: #187c5b; }
.hero-visual { position: relative; min-height: 530px; display: grid; place-items: center; }
.code-window { position: relative; z-index: 2; width: min(100%, 500px); overflow: hidden; color: #e8ebf2; background: #1d2638; border: 3px solid var(--ink); border-radius: 17px; box-shadow: 13px 13px 0 rgba(23,32,51,.2); transform: rotate(1.8deg); }
.window-bar { height: 50px; padding: 0 18px; display: flex; align-items: center; gap: 8px; color: #aeb6c7; background: #141b29; border-bottom: 1px solid #344054; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .7rem; }
.window-bar i { width: 10px; height: 10px; background: var(--coral); border-radius: 50%; }
.window-bar i:nth-child(2) { background: var(--yellow); }
.window-bar i:nth-child(3) { margin-right: 12px; background: var(--mint); }
.code-window pre { min-height: 250px; padding: 34px 26px 65px; margin: 0; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: clamp(.68rem, 1.3vw, .9rem); line-height: 2.2; white-space: pre-wrap; }
.code-muted { display: inline-block; width: 28px; color: #8a93a6; user-select: none; }
.code-pink { color: #ff8b9a; }.code-blue { color: #78b7ff; }.code-green { color: #8ee6b8; }
.mission-toast { position: absolute; right: 20px; bottom: 18px; display: flex; min-width: 205px; padding: 13px 15px; align-items: center; gap: 12px; color: var(--ink); background: #fff; border: 2px solid var(--ink); border-radius: 10px; box-shadow: 4px 4px 0 var(--mint); transform: rotate(-2deg); }
.mission-toast > span { display: grid; width: 34px; height: 34px; place-items: center; color: #fff; background: #208b65; border-radius: 50%; font-weight: 900; }
.mission-toast strong, .mission-toast small { display: block; }.mission-toast strong { font-size: .82rem; }.mission-toast small { color: #4b5870; font-size: .7rem; }
.mascot { position: absolute; z-index: 3; right: -20px; bottom: -2px; width: 150px; filter: drop-shadow(7px 8px 0 rgba(23,32,51,.14)); transform: rotate(5deg); }
.orbit { position: absolute; border: 2px dashed rgba(23,32,51,.22); border-radius: 50%; }
.orbit-one { width: 510px; height: 510px; }.orbit-two { width: 380px; height: 380px; }

.path-section { padding: 90px 0 115px; border-top: 1px solid var(--line); }
.section-heading { margin-bottom: 52px; display: grid; grid-template-columns: 1.25fr .75fr; align-items: end; gap: 70px; }
.section-heading h2 { margin-bottom: 0; }
.section-heading > p { max-width: 470px; margin: 0 0 8px; color: var(--ink-soft); }
.path-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; }
.path-card { position: relative; min-height: 465px; padding: 25px; display: flex; flex-direction: column; background: var(--white); border: 2px solid var(--ink); border-radius: 14px; transition: transform .18s ease, box-shadow .18s ease; }
.path-card:hover { transform: translateY(-6px) rotate(-.3deg); box-shadow: 7px 9px 0 var(--ink); }
.path-card::after { position: absolute; right: 18px; bottom: 54px; width: 42px; height: 5px; content: ""; background: var(--card-accent); transform: rotate(-8deg); }
.path-coral { --card-accent: var(--coral); }.path-yellow { --card-accent: var(--yellow); }.path-violet { --card-accent: var(--violet); }
.path-topline { display: flex; justify-content: space-between; color: #697184; font-family: ui-monospace, monospace; font-size: .7rem; font-weight: 800; text-transform: uppercase; }
.path-topline span:last-child { padding: 3px 8px; color: var(--ink); background: color-mix(in srgb, var(--card-accent) 35%, white); border-radius: 20px; }
.path-icon { display: grid; width: 67px; height: 67px; margin: 28px 0 21px; place-items: center; background: var(--card-accent, var(--coral)); border: 2px solid var(--ink); border-radius: 15px; box-shadow: 4px 4px 0 var(--ink); font-family: ui-monospace, monospace; font-size: 1.05rem; font-weight: 950; }
.path-label { margin-bottom: 5px; color: var(--coral-dark); font-size: .7rem; font-weight: 950; letter-spacing: .13em; text-transform: uppercase; }
.path-card h3 { margin-bottom: 12px; font-size: 1.8rem; }
.path-card > p:not(.path-label) { color: var(--ink-soft); font-size: .93rem; }
.path-meta { margin-top: auto; display: flex; gap: 8px; color: #626c7f; font-size: .7rem; font-weight: 750; }
.path-card > a { padding-top: 17px; margin-top: 18px; display: flex; justify-content: space-between; border-top: 1px solid var(--line); font-size: .82rem; font-weight: 900; text-decoration: none; }

.method-section { padding: 110px 0 120px; color: #f8f6ef; background: var(--ink); }
.section-heading-light .eyebrow span { background: var(--yellow); }
.section-heading-light > p { color: #b8c0cf; }
.method-heading { margin-bottom: 54px; grid-template-columns: minmax(0,1.05fr) minmax(320px,.55fr); align-items: end; }
.method-heading h2 { max-width: 760px; }
.method-heading > p { max-width: 520px; padding: 3px 0 3px 24px; border-left: 3px solid var(--yellow); font-size: .88rem; }
.method-steps { padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px; list-style: none; }
.method-steps li { min-width: 0; position: relative; display: grid; grid-template-rows: 200px minmax(160px,1fr); overflow: hidden; background: #1d273a; border: 1px solid #46536b; border-radius: 18px; box-shadow: 6px 7px 0 #0b101b; }
.method-steps li:nth-child(2) { box-shadow: 6px 7px 0 #443c91; }.method-steps li:nth-child(3) { box-shadow: 6px 7px 0 #356e5d; }
.step-number { position: absolute; z-index: 4; top: 14px; left: 14px; display: grid; width: 38px; height: 38px; place-items: center; color: var(--ink); background: var(--yellow); border: 2px solid var(--ink); border-radius: 50%; box-shadow: 3px 3px 0 var(--ink); font-family: ui-monospace, monospace; font-size: .76rem; font-weight: 950; }
.step-art { min-width: 0; height: 200px; padding: 26px 28px; position: relative; display: flex; align-items: center; justify-content: center; gap: 24px; overflow: hidden; background: #263249; border-bottom: 1px solid #46536b; }
.step-art::after { position: absolute; right: -42px; bottom: -65px; width: 150px; height: 150px; content: ""; background: rgba(255,255,255,.055); border: 2px dashed rgba(255,255,255,.22); border-radius: 50%; }
.step-art > span { width: 104px; height: 104px; display: grid; flex: 0 0 104px; place-items: center; background: var(--yellow); border: 2px solid var(--ink); border-radius: 24px; box-shadow: 6px 6px 0 var(--ink); }
.step-art > span img { width: 70px; height: 70px; object-fit: contain; }
.step-art > img { width: 112px; height: 112px; flex: 0 0 112px; object-fit: contain; filter: drop-shadow(5px 6px 0 rgba(8,12,20,.32)); }
.step-art > div { min-width: 0; position: relative; z-index: 1; display: grid; gap: 4px; }
.step-art small { color: #9faabe; font-family: ui-monospace, monospace; font-size: .66rem; font-weight: 950; letter-spacing: .12em; }
.step-art strong { color: #fff; font-size: 1rem; line-height: 1.15; }
.art-mission { background: linear-gradient(135deg,#263249,#313b52); }.art-toolbox { background: linear-gradient(135deg,#282643,#303a51); }.art-coach { background: linear-gradient(135deg,#203b38,#29374a); }
.method-step-copy { padding: 26px 28px 30px; display: flex; flex-direction: column; }
.method-steps h3 { min-height: 2.15em; margin: 0 0 10px; color: #fff; font-size: 1.35rem; }.method-steps p { margin: 0; color: #aeb7c7; font-size: .82rem; }
@media (max-width: 900px) {
    .method-heading { grid-template-columns: 1fr; align-items: start; gap: 22px; }
    .method-heading > p { max-width: 720px; margin: 0; }
    .method-steps { grid-template-columns: 1fr; gap: 22px; }
    .method-steps li { grid-template-columns: minmax(260px,.82fr) minmax(0,1.18fr); grid-template-rows: 220px; }
    .step-art { height: 220px; border-right: 1px solid #46536b; border-bottom: 0; }
    .method-step-copy { justify-content: center; }
    .method-steps h3 { min-height: 0; }
}
@media (max-width: 620px) {
    .method-heading > p { padding: 17px 0 0; border-top: 2px solid var(--yellow); border-left: 0; }
    .method-steps li { grid-template-columns: 1fr; grid-template-rows: 180px auto; }
    .step-art { height: 180px; padding: 22px; border-right: 0; border-bottom: 1px solid #46536b; }
    .step-art > span { width: 88px; height: 88px; flex-basis: 88px; border-radius: 20px; }.step-art > span img { width: 58px; height: 58px; }
    .step-art > img { width: 94px; height: 94px; flex-basis: 94px; }
    .method-step-copy { min-height: 168px; padding: 24px 20px 26px; justify-content: flex-start; }
}

.demo-section { padding: 125px 0; display: grid; grid-template-columns: .85fr 1.15fr; align-items: center; gap: 95px; }
.demo-copy h2 { margin-bottom: 25px; }.demo-copy > p:not(.eyebrow) { color: var(--ink-soft); }
.check-list { padding: 0; margin: 28px 0 35px; list-style: none; }.check-list li { display: flex; padding: 15px 0; gap: 13px; border-top: 1px solid var(--line); }.check-list li > span { color: #137551; font-weight: 900; }.check-list strong, .check-list small { display: block; }.check-list small { color: #4a5365; }
.demo-panel { overflow: hidden; background: #fff; border: 3px solid var(--ink); border-radius: 15px; box-shadow: 11px 11px 0 var(--yellow); transform: rotate(1deg); }
.demo-tabs { display: flex; height: 52px; align-items: center; background: #edf0f5; border-bottom: 2px solid var(--ink); }.demo-tabs span { height: 100%; padding: 0 20px; display: grid; place-items: center; color: #606a7d; font-size: .68rem; font-weight: 900; }.demo-tabs .active { color: var(--ink); background: #fff; border-right: 1px solid #cdd3dd; }
.demo-code { padding: 35px; display: grid; grid-template-columns: 24px 1fr; gap: 10px; color: #e2e6ef; background: #1d2638; font-family: ui-monospace, monospace; font-size: .85rem; }.demo-code span { color: #657087; }.demo-code code { color: #ff9aa7; }
.demo-result { min-height: 210px; display: grid; place-content: center; justify-items: center; background: #eff9f5; }.demo-result p { font-size: 1.2rem; font-weight: 800; }.demo-result button { padding: 12px 18px; color: #fff; background: var(--coral-dark); border: 0; border-radius: 6px; font-weight: 800; }
.cta-section { padding: 62px; margin-bottom: 110px; display: flex; align-items: center; justify-content: space-between; gap: 40px; background: var(--yellow); border: 3px solid var(--ink); border-radius: 16px; box-shadow: 9px 9px 0 var(--ink); }.cta-section h2 { margin: 0; font-size: clamp(2rem, 4vw, 3.7rem); }

.site-footer { width: var(--wrap); padding: 48px 0; margin-inline: auto; display: grid; grid-template-columns: 1fr auto; gap: 30px; border-top: 1px solid var(--line); color: #60697a; font-size: .8rem; }
.brand-footer { margin-bottom: 12px; color: var(--ink); }.brand-footer img { width: 35px; height: 35px; }.site-footer p { margin-bottom: 0; }.footer-links { display: flex; align-items: flex-start; gap: 25px; }.footer-links a { color: var(--ink); font-weight: 800; }

/* Parcours */
.page-main { min-height: 70vh; padding: 75px 0 110px; }
.page-intro { max-width: 850px; margin-bottom: 45px; }.page-intro h1 { margin-bottom: 20px; font-size: clamp(3rem, 6vw, 5.7rem); }.page-intro > p:last-child { max-width: 640px; color: var(--ink-soft); font-size: 1.1rem; }
.course-filter { margin-bottom: 48px; display: flex; gap: 8px; flex-wrap: wrap; }.course-filter a { padding: 9px 15px; text-decoration: none; background: #fff; border: 1px solid var(--line); border-radius: 30px; font-size: .8rem; font-weight: 850; }.course-filter a.active { color: #fff; background: var(--ink); border-color: var(--ink); }
.course-list { display: grid; gap: 38px; }.course-block { --card-accent: var(--coral); overflow: hidden; background: var(--white); border: 2px solid var(--ink); border-radius: 15px; box-shadow: 6px 6px 0 color-mix(in srgb, var(--card-accent) 70%, var(--ink)); }.course-yellow { --card-accent: var(--yellow); }.course-violet { --card-accent: var(--violet); }
.course-block-header { padding: 28px 32px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 27px; background: color-mix(in srgb, var(--card-accent) 16%, white); border-bottom: 2px solid var(--ink); }.course-block-header .path-icon { margin: 0; }.course-block-header p { margin: 0 0 4px; color: #4a5365; font-family: ui-monospace, monospace; font-size: .7rem; font-weight: 900; }.course-block-header h2 { margin: 0 0 7px; font-size: 2rem; }.course-block-header span { color: var(--ink-soft); font-size: .9rem; }.course-count { font-size: 2.2rem; font-weight: 950; line-height: 1; text-align: center; }.course-count small { display: block; margin-top: 5px; color: #4a5365; font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; }
.lesson-list { padding: 6px 25px 20px; }.lesson-row { min-height: 88px; padding: 17px 10px; display: grid; grid-template-columns: 52px 1fr auto 30px; align-items: center; gap: 18px; border-bottom: 1px solid #dfdcd4; text-decoration: none; transition: padding .15s ease, background .15s ease; }.lesson-row:last-child { border-bottom: 0; }.lesson-row:hover { padding-left: 16px; background: color-mix(in srgb, var(--card-accent) 8%, white); }.lesson-index { display: grid; width: 42px; height: 42px; place-items: center; color: var(--ink); background: #f0ede5; border: 1px solid #c9c5ba; border-radius: 50%; font-family: ui-monospace, monospace; font-size: .75rem; font-weight: 900; }.lesson-row.completed .lesson-index { color: #fff; background: #22845f; border-color: var(--ink); }.lesson-info strong, .lesson-info small { display: block; }.lesson-info strong { font-size: 1rem; }.lesson-info small { color: #687184; }.lesson-tags { display: flex; gap: 8px; }.lesson-tags small { padding: 5px 9px; color: #566073; background: #f1f0eb; border-radius: 5px; font-size: .65rem; font-weight: 800; }.lesson-arrow { font-size: 1.2rem; font-weight: 900; }

/* Atelier */
.workshop-page { overflow-x: hidden; background: #e9e7df; }.workshop-page::before { display: none; }.workshop-page .site-header { width: 100%; height: 72px; padding: 0 26px; background: var(--paper); }.workshop-page .site-footer { display: none; }.workshop-page .site-nav { gap: 20px; }
.workshop { position: relative; height: calc(100vh - 72px); min-height: 740px; display: grid; grid-template-columns: minmax(440px, 520px) 1fr; }
.mission-panel { height: 100%; padding: 28px 34px 40px; overflow-y: auto; background: var(--paper); border-right: 2px solid var(--ink); }
.back-link { display: inline-block; margin-bottom: 22px; color: #60697a; font-size: .72rem; font-weight: 850; text-decoration: none; }.back-link:hover { color: var(--coral-dark); }
.mission-kicker { display: flex; align-items: center; gap: 10px; color: #4a5365; font-family: ui-monospace, monospace; font-size: .68rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }.mission-kicker span { display: grid; width: 27px; height: 27px; place-items: center; color: var(--ink); background: var(--yellow); border: 1px solid var(--ink); border-radius: 50%; }
.mission-panel h1 { margin: 13px 0 10px; font-size: clamp(2rem, 3.2vw, 2.8rem); }.mission-story { margin-bottom: 18px; color: var(--ink-soft); font-size: .82rem; }.lesson-notice { padding: 12px; margin-bottom: 18px; color: #4b426d; background: #eeeafe; border-left: 4px solid var(--violet); font-size: .75rem; }.lesson-notice strong { display: block; color: var(--ink); text-transform: uppercase; }
.learning-goals { margin: 0 0 18px; background: #fff; border: 1px solid #cfc9bc; border-radius: 9px; }.learning-goals summary { padding: 11px 13px; color: #4b426d; font-size: .68rem; font-weight: 900; cursor: pointer; }.learning-goals ul { padding: 0 18px 13px 34px; margin: 0; color: var(--ink-soft); font-size: .68rem; }.learning-goals li + li { margin-top: 5px; }
.mission-progress { padding: 13px 0 17px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }.mission-progress > div:first-child { display: flex; justify-content: space-between; color: #4a5365; font-size: .66rem; font-weight: 900; text-transform: uppercase; }.progress-track { height: 7px; margin-top: 8px; overflow: hidden; background: #d9d6cf; border-radius: 10px; }.progress-track > span { display: block; width: 0; height: 100%; background: var(--coral); border-radius: inherit; transition: width .3s ease; }
.step-dots { padding: 15px 0 18px; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; list-style: none; }.step-dots button { width: 100%; min-height: 70px; padding: 8px 7px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; color: #4a5365; background: rgba(255,255,255,.55); border: 1px solid #d0cbc0; border-radius: 8px; text-align: center; cursor: pointer; }.step-dots button:disabled { cursor: not-allowed; opacity: .62; }.step-dots button span { display: grid; width: 25px; height: 25px; flex: 0 0 25px; place-items: center; background: #e1ded6; border: 1px solid #bab6ad; border-radius: 50%; font-size: .58rem; font-weight: 900; }.step-dots button small { display: block; max-width: 100%; overflow: hidden; font-size: .53rem; font-weight: 800; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }.step-dots li.active button { color: var(--ink); background: #fff8d5; border-color: var(--ink); }.step-dots li.active button span { background: var(--yellow); border-color: var(--ink); }.step-dots li.done button { color: #145c43; background: #e5f8ef; }.step-dots li.done button span { color: #fff; background: #21835e; border-color: #155c42; font-size: 0; }.step-dots li.done button span::after { content: ""; font-size: .62rem; }
.project-chapter-nav { margin: 16px 0 2px; padding: 12px; background: #f0ece2; border: 1px solid var(--ink); border-radius: var(--radius-s); }
.project-chapter-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 9px; color: var(--ink-soft); font-size: .65rem; }
.project-chapter-heading strong { color: var(--ink); font-size: .67rem; letter-spacing: .09em; text-transform: uppercase; }
.project-chapter-list { display: flex; gap: 8px; padding: 2px 2px 7px; overflow-x: auto; scrollbar-width: thin; }
.project-chapter-list button { min-width: 142px; min-height: 48px; padding: 8px 10px; display: grid; grid-template-columns: 28px 1fr; align-items: center; gap: 8px; color: var(--ink-soft); background: var(--paper); border: 1px solid #c9c4b9; border-radius: 8px; text-align: left; cursor: pointer; }
.project-chapter-list button span { display: grid; width: 28px; height: 28px; place-items: center; color: var(--ink); background: #e4dfd4; border: 1px solid var(--ink); border-radius: 50%; font-family: ui-monospace, monospace; font-size: .58rem; font-weight: 900; }
.project-chapter-list button b { font-size: .62rem; line-height: 1.2; }
.project-chapter-list button.active { color: var(--ink); background: #fff6c9; border-color: var(--ink); box-shadow: 3px 3px 0 var(--coral); }
.project-chapter-list button.active span { background: var(--yellow); }
.project-chapter-list button:disabled { cursor: not-allowed; opacity: .46; }
.instruction-card { padding: 20px; background: #fff; border: 2px solid var(--ink); border-radius: 12px; box-shadow: 4px 4px 0 rgba(23,32,51,.13); }.instruction-label { margin-bottom: 5px; color: var(--coral-dark); font-size: .64rem; font-weight: 950; letter-spacing: .13em; text-transform: uppercase; }.instruction-card h2 { margin-bottom: 12px; font-size: 1.25rem; }.instruction-card > div { color: var(--ink-soft); font-size: .82rem; }.instruction-card code { padding: 2px 5px; color: #9a2f42; background: #f6e9eb; border-radius: 4px; font-family: ui-monospace, monospace; font-size: .8em; }.hint-toggle { padding: 0; margin-top: 16px; color: #5548b5; background: none; border: 0; font-size: .72rem; font-weight: 850; cursor: pointer; }.hint { padding: 10px; margin-top: 8px; color: #514870 !important; background: #f0edff; border-radius: 7px; }.mission-actions { margin-top: 17px; }.button-check { width: 100%; min-height: 48px; color: #fff; background: var(--ink); box-shadow: 4px 4px 0 var(--coral); }.reset-button { padding: 8px; margin-top: 12px; color: #4a5365; background: none; border: 0; font-size: .68rem; font-weight: 750; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.instruction-card.needs-attention { border-color: var(--coral-dark); animation: gentle-shake .38s ease; }.instruction-card.step-cleared { animation: card-success .55s cubic-bezier(.16,1,.3,1); }
.editor-panel { height: 100%; min-width: 0; display: grid; grid-template-rows: 48px minmax(250px, 1fr) 38px minmax(220px, .8fr); background: #1c2535; }
.editor-toolbar, .preview-toolbar { display: flex; align-items: center; justify-content: space-between; background: #121a28; border-bottom: 1px solid #344054; }.editor-tabs { height: 100%; display: flex; }.editor-tabs button { height: 100%; padding: 0 18px; display: flex; align-items: center; gap: 8px; color: #8e99ab; background: transparent; border: 0; border-right: 1px solid #344054; font-family: ui-monospace, monospace; font-size: .68rem; font-weight: 900; cursor: pointer; }.editor-tabs button.active { color: #fff; background: #1c2535; box-shadow: inset 0 3px 0 var(--coral); }.dot { width: 7px; height: 7px; background: var(--coral); border-radius: 50%; }.css-dot { background: #72a8ff; }.js-dot { background: var(--yellow); }.run-button { padding: 7px 13px; margin-right: 12px; color: #fff; background: #2b765f; border: 1px solid #62b89b; border-radius: 6px; font-size: .66rem; font-weight: 850; cursor: pointer; }
.editor-stack { position: relative; min-height: 0; }.code-editor-panel { position: absolute; inset: 0; display: none; }.code-editor-panel.active { display: block; }.code-editor-panel[hidden] { display: none; }.code-editor { position: absolute; inset: 0; display: none; width: 100%; height: 100%; padding: 25px 28px; resize: none; color: #e5e9f1; caret-color: var(--yellow); background: #1c2535; border: 0; outline: none; tab-size: 2; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .875rem; line-height: 1.7; white-space: pre; }.code-editor.active { display: block; }.code-editor::selection { background: #3f4c65; }
.preview-toolbar { height: 38px; padding: 0 15px; color: #8893a6; border-top: 1px solid #354054; font-family: ui-monospace, monospace; font-size: .62rem; font-weight: 900; letter-spacing: .1em; }.preview-status { display: flex; align-items: center; gap: 6px; color: #8ecdb7; letter-spacing: 0; text-transform: none; }.preview-status i { width: 6px; height: 6px; background: var(--mint); border-radius: 50%; box-shadow: 0 0 0 3px rgba(109,212,173,.15); }.preview-frame { width: 100%; height: 100%; background: #fff; border: 0; }
.feedback-toast { position: fixed; z-index: 60; right: 30px; bottom: 25px; width: min(650px, calc(100% - 50px)); padding: 20px; display: grid; grid-template-columns: 48px 1fr auto; align-items: center; gap: 15px; color: var(--ink); background: #f0fff8; border: 2px solid var(--ink); border-radius: 13px; box-shadow: 7px 7px 0 #21835e; animation: feedback-pop .35s cubic-bezier(.16,1,.3,1); }.feedback-toast.error { background: #fff1ee; box-shadow: 7px 7px 0 var(--coral); }.feedback-icon { display: grid; width: 48px; height: 48px; place-items: center; color: #fff; background: #21835e; border-radius: 50%; font-size: 1.25rem; font-weight: 950; }.feedback-toast.error .feedback-icon { background: var(--coral-dark); }.feedback-toast strong { display: block; font-size: .9rem; }.feedback-toast p { margin: 3px 0 0; color: var(--ink-soft); font-size: .7rem; line-height: 1.45; }.feedback-toast .feedback-help { padding-top: 7px; margin-top: 7px; border-top: 1px solid rgba(23,32,51,.15); color: #4f596b; }.feedback-toast button { padding: 11px 14px; color: #fff; background: var(--ink); border: 0; border-radius: 7px; font-size: .7rem; font-weight: 850; cursor: pointer; }.feedback-xp { display: inline-block; padding: 3px 7px; margin-top: 8px; color: #5b4700; background: var(--yellow); border: 1px solid #a78714; border-radius: 20px; font-size: .58rem; font-weight: 950; }.feedback-xp[hidden] { display: none; }
.celebration-layer { position: fixed; z-index: 55; inset: 0; overflow: hidden; pointer-events: none; }.celebration-layer[hidden] { display: none; }.confetti-piece { position: absolute; top: -8vh; left: var(--confetti-x); width: var(--confetti-size); height: calc(var(--confetti-size) * .55); background: var(--confetti-color); border: 1px solid rgba(23,32,51,.3); border-radius: 2px; animation: confetti-fall var(--confetti-duration) cubic-bezier(.2,.7,.2,1) var(--confetti-delay) forwards; transform: rotate(var(--confetti-rotate)); }.confetti-piece:nth-child(3n) { border-radius: 50%; }.mission-complete .mission-progress { animation: mission-glow .9s ease 2; }.mission-complete .progress-track > span { background: linear-gradient(90deg, var(--mint), var(--yellow), var(--coral)); }

/* Authentification */
.auth-page::before { display: none; }.auth-layout { min-height: calc(100vh - 96px); display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--line); }.auth-side { position: relative; min-width: 0; min-height: 740px; padding-block: 52px; padding-left: max(32px, calc((100vw - var(--wrap-max)) / 2)); padding-right: clamp(40px, 5vw, 90px); display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; background: var(--yellow); border-right: 2px solid var(--ink); }.auth-side-login { background: var(--mint); }.auth-side .back-link { color: var(--ink); }.auth-side > div { width: 100%; max-width: 620px; }.auth-side h1 { max-width: 620px; margin-bottom: 23px; font-size: clamp(3rem, 5vw, 5.5rem); overflow-wrap: normal; }.auth-side p:not(.eyebrow) { max-width: 560px; font-size: 1.05rem; }.auth-side img { position: absolute; right: 40px; bottom: 18px; width: 180px; }.auth-form-wrap { min-width: 0; padding: 68px 42px; display: grid; place-items: center; background: var(--white); }.auth-form { width: min(100%, 520px); }.form-kicker { margin: 0 0 9px !important; color: var(--coral-dark); font-size: .67rem !important; font-weight: 900; letter-spacing: .15em; text-transform: uppercase; }.auth-form h2 { margin-bottom: 10px; font-size: 2.7rem; }.auth-form > p { color: #697184; font-size: .84rem; }.auth-form > p a { color: var(--ink); font-weight: 850; }.auth-form label { margin-top: 21px; display: block; font-size: .76rem; font-weight: 850; }.auth-form input { width: 100%; height: 58px; padding: 0 16px; margin-top: 7px; color: var(--ink); background: #fff; border: 1.5px solid #aaa89f; border-radius: 8px; outline: none; }.auth-form input:focus { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(118,103,223,.18); }.auth-form label small { display: block; margin-top: 4px; color: #4a5365; font-size: .65rem; font-weight: 500; }.auth-form .button { margin-top: 28px; }.form-errors { padding: 12px 15px; margin-top: 18px; color: #7d2430; background: #fff0f0; border: 1px solid #dd9fa7; border-radius: 7px; font-size: .75rem; }.form-errors ul { padding-left: 18px; margin: 6px 0 0; }.form-legal { margin-top: 16px; text-align: center; font-size: .66rem !important; }.guest-link { display: block; margin-top: 22px; text-align: center; font-size: .75rem; font-weight: 800; }

/* Profil et contenus */
.welcome-banner { padding: 12px 16px; margin-bottom: 30px; color: #0c6545; background: #dcf8ea; border: 1px solid #73c5a4; border-radius: 9px; font-weight: 800; }
.profile-hero { padding-bottom: 40px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 25px; border-bottom: 1px solid var(--line); }.profile-avatar { display: grid; width: 92px; height: 92px; place-items: center; overflow: hidden; color: #fff; background: var(--violet); border: 3px solid var(--ink); border-radius: 27px; box-shadow: 5px 5px 0 var(--ink); font-size: 2.3rem; font-weight: 950; }.user-avatar img { width: 100%; height: 100%; display: block; object-fit: cover; }.nav-profile-avatar { overflow: hidden; }.profile-hero .eyebrow { margin-bottom: 6px; }.profile-hero h1 { margin: 0 0 7px; font-size: clamp(2.5rem, 5vw, 4.8rem); }.profile-hero p:last-child { margin: 0; color: var(--ink-soft); }.profile-hero .reset-button { color: var(--ink); }
.profile-projects { padding: 42px 0 50px; border-bottom: 1px solid var(--line); }.profile-projects-heading { margin-bottom: 22px; align-items: end; }.profile-projects-heading h2 { margin: 4px 0 0; font-size: clamp(2rem, 4vw, 3.5rem); }.profile-project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }.profile-project-card { min-width: 0; overflow: hidden; display: grid; grid-template-rows: 130px 1fr; background: #fff; border: 2px solid var(--ink); border-radius: 16px; box-shadow: 6px 6px 0 var(--coral); }.profile-project-card:nth-child(2) { box-shadow-color: var(--yellow); }.profile-project-card:nth-child(3) { box-shadow-color: var(--violet); }.profile-project-card.is-locked { filter: saturate(.72); }.profile-project-scene { padding: 15px; display: flex; align-items: flex-start; justify-content: flex-end; background-image: linear-gradient(rgba(23,32,51,.12), rgba(23,32,51,.12)), var(--project-scene); background-position: center; background-size: cover; border-bottom: 2px solid var(--ink); }.profile-project-scene span { padding: 6px 9px; color: var(--ink); background: var(--yellow); border: 2px solid var(--ink); border-radius: 999px; font-family: ui-monospace, monospace; font-size: .6rem; font-weight: 950; }.profile-project-copy { min-width: 0; padding: 20px; display: flex; flex-direction: column; }.profile-project-copy > p { margin: 0; color: #5a4abb; font-family: ui-monospace, monospace; font-size: .62rem; font-weight: 950; letter-spacing: .08em; text-transform: uppercase; }.profile-project-copy h3 { margin: 6px 0 18px; font-size: 1.3rem; }.profile-project-copy .progress-track { margin-top: auto; }.profile-project-copy .progress-track span { background: linear-gradient(90deg, var(--coral), var(--yellow)); }.profile-project-copy small { margin-top: 8px; color: var(--text-muted); }.profile-project-copy a { margin-top: 16px; display: inline-flex; align-items: center; gap: 7px; font-weight: 900; }
.profile-project-share { margin-top: 8px !important; color: var(--ink-soft) !important; font-weight: 800 !important; font-size: .82rem; }
.stats-grid { margin: 35px 0 80px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }.stats-grid article { padding: 24px; background: #fff; border: 2px solid var(--ink); border-radius: 12px; }.stats-grid article > span { display: block; color: #4a5365; font-size: .68rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }.stats-grid strong { display: block; margin: 5px 0; font-size: 2.7rem; line-height: 1.1; }.stats-grid strong i { color: #8c919a; font-size: 1rem; font-style: normal; }.stats-grid small { color: #737b89; }.stat-progress .progress-track { margin-top: 14px; }.stat-progress .progress-track span { background: var(--violet); }
.profile-courses .section-heading { display: block; }.profile-course-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }.profile-course { --card-accent: var(--coral); padding: 22px; display: grid; grid-template-columns: auto 1fr; gap: 12px 17px; background: #fff; border: 2px solid var(--ink); border-radius: 12px; }.profile-course .path-icon { width: 52px; height: 52px; margin: 0; font-size: .8rem; box-shadow: 3px 3px 0 var(--ink); }.profile-course p { margin: 0; color: #777e8c; font-size: .65rem; font-weight: 900; text-transform: uppercase; }.profile-course h3 { margin: 2px 0; font-size: 1.25rem; }.profile-course span { color: #737b8a; font-size: .7rem; }.profile-course .progress-track, .profile-course a { grid-column: 1/-1; }.profile-course a { font-size: .74rem; font-weight: 900; }.profile-course.course-yellow { --card-accent: var(--yellow); }.profile-course.course-violet { --card-accent: var(--violet); }
.prose-page { max-width: 1040px; }.principles-grid { margin-bottom: 70px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }.principles-grid article { padding: 25px; background: #fff; border: 2px solid var(--ink); border-radius: 12px; }.principles-grid span { color: var(--coral-dark); font-family: ui-monospace, monospace; font-size: .72rem; font-weight: 900; }.principles-grid h2 { margin: 14px 0; font-size: 1.45rem; }.principles-grid p { margin: 0; color: var(--ink-soft); font-size: .87rem; }.content-card { padding: clamp(25px, 5vw, 55px); background: #fff; border: 2px solid var(--ink); border-radius: 15px; box-shadow: 7px 7px 0 var(--yellow); }.content-card h2 { font-size: 2rem; }.content-card p { color: var(--ink-soft); }.content-card .button { margin-top: 18px; }.legal-page .content-card h2:not(:first-child), .about-page .content-card h2:not(:first-child) { padding-top: 25px; margin-top: 28px; border-top: 1px solid var(--line); }.empty-state { min-height: 65vh; padding-block: 100px; }.empty-state h1 { font-size: 3.5rem; }

@media (max-width: 980px) {
    .hero { grid-template-columns: 1fr; padding-top: 60px; }.hero-copy { max-width: 760px; }.hero-visual { min-height: 480px; }.mascot { right: 5%; }
    .path-grid { grid-template-columns: 1fr 1fr; }.path-card:last-child { grid-column: 1/-1; min-height: 400px; }
    .method-steps { gap: 28px; }.method-steps li:not(:last-child)::after { display: none; }
    .demo-section { grid-template-columns: 1fr; gap: 55px; }.demo-copy { max-width: 700px; }
    .cta-section { padding: 42px; flex-direction: column; align-items: flex-start; }
    .workshop { overflow-x: hidden; }.workshop-page { overflow-x: hidden; }
    .auth-side { padding-inline: 40px; }.profile-project-grid { grid-template-columns: 1fr 1fr; }.profile-project-card:last-child { grid-column: 1 / -1; }.profile-course-grid { grid-template-columns: 1fr 1fr; }.principles-grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
    .nav-toggle { display: block; }
    .site-nav { position: absolute; z-index: 50; top: 96px; left: 24px; right: 24px; padding: 22px; display: none; flex-direction: column; align-items: stretch; gap: 18px; background: #fff; border: 2px solid var(--ink); border-radius: 10px; box-shadow: 5px 5px 0 var(--ink); }
    .site-nav.open { display: flex; }
    .notification-shell { margin-left: auto; }.nav-toggle { margin-left: 13px; }
    .auth-layout { grid-template-columns: 1fr; }
    .auth-side { min-height: 580px; border-right: 0; border-bottom: 2px solid var(--ink); }
    .auth-side > div { max-width: 650px; }
    .stats-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
    :root { --wrap: min(calc(100% - 28px), var(--wrap-max)); }
    .site-header { height: 80px; }.brand img { width: 44px; height: 44px; }.site-nav { top: 80px; left: 14px; right: 14px; padding: 20px; gap: 16px; }.notification-trigger { width: 44px; height: 44px; border-radius: 13px; }.notification-panel { position: fixed; top: 88px; right: 14px; }.workshop-page .notification-panel { top: 72px; }
    .hero { min-height: 0; padding: 50px 0 70px; gap: 25px; }.hero h1 { font-size: clamp(2.75rem, 14vw, 4.4rem); overflow-wrap: anywhere; }.hero-actions { align-items: stretch; flex-direction: column; }.hero-actions .text-link { text-align: center; }.hero-proof { gap: 10px 18px; }.hero-visual { min-height: 370px; }.code-window { width: 93%; }.code-window pre { min-height: 220px; padding-inline: 18px; }.mascot { width: 110px; right: 0; bottom: -5px; }.orbit-one { width: 360px; height: 360px; }.orbit-two { width: 270px; height: 270px; }
    .path-section { padding-block: 70px; }.section-heading { grid-template-columns: 1fr; gap: 20px; }.path-grid { grid-template-columns: 1fr; }.path-card:last-child { grid-column: auto; }.path-card { min-height: 430px; }
    .method-section { padding-block: 75px; }.method-steps { grid-template-columns: 1fr; gap: 22px; }
    .demo-section { padding-block: 75px; }.demo-code { padding: 24px 15px; font-size: .72rem; }.cta-section { padding: 30px 23px; margin-bottom: 75px; box-shadow: 6px 6px 0 var(--ink); }
    .site-footer { grid-template-columns: 1fr; }.footer-links { flex-wrap: wrap; }
    .page-main { padding-block: 55px 80px; }.page-intro h1 { font-size: clamp(2.45rem, 12vw, 4rem); overflow-wrap: anywhere; }.course-block-header { padding: 23px 18px; grid-template-columns: auto 1fr; }.course-block-header .path-icon { width: 52px; height: 52px; }.course-count { display: none; }.lesson-list { padding-inline: 13px; }.lesson-row { grid-template-columns: 42px 1fr 24px; gap: 12px; }.lesson-tags { display: none; }.lesson-info small { font-size: .7rem; }
    .workshop-page .site-header { height: 64px; }.workshop-page .site-header .site-nav { top: 64px; }.workshop { height: auto; display: flex; flex-direction: column; overflow: visible; }.mission-panel, .editor-panel { width: 100%; height: auto; min-height: 0; }.mission-panel { padding: 25px 20px 30px; overflow: visible; border-right: 0; border-bottom: 2px solid var(--ink); }.editor-panel { min-height: 760px; grid-template-rows: 52px 350px 40px 318px; }.feedback-toast { right: 14px; bottom: 14px; width: calc(100% - 28px); grid-template-columns: 42px 1fr; }.feedback-toast button { grid-column: 1/-1; }.step-dots button { min-height: 50px; }.step-dots button small { display: none; }
    .auth-layout { grid-template-columns: 1fr; }.auth-side { min-height: 610px; padding: 40px 25px; border-right: 0; border-bottom: 2px solid var(--ink); }.auth-side h1 { font-size: clamp(2.7rem, 13vw, 4rem); }.auth-side p:not(.eyebrow) { max-width: calc(100% - 100px); }.auth-side img { right: 18px; width: 110px; }.auth-form-wrap { padding: 55px 20px 75px; }
    .profile-hero { grid-template-columns: auto 1fr; }.profile-hero form { grid-column: 1/-1; }.profile-avatar { width: 70px; height: 70px; border-radius: 20px; }.profile-projects-heading { align-items: stretch; }.profile-projects-heading .button { width: 100%; }.profile-project-grid { grid-template-columns: 1fr; }.profile-project-card:last-child { grid-column: auto; }.stats-grid, .profile-course-grid, .principles-grid { grid-template-columns: 1fr; }.stats-grid { margin-bottom: 65px; }.profile-course { grid-template-columns: auto 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

/* V34 — calendrier réclamable, aides lisibles et mondes vivants */
.notification-shell { display: flex; align-items: center; gap: 8px; }
.reward-calendar-trigger {
    width: 44px;
    height: 44px;
    position: relative;
    display: grid;
    place-items: center;
    color: var(--ink);
    background: #fff;
    border: 2px solid var(--ink);
    border-radius: 12px;
    box-shadow: 3px 3px 0 var(--yellow);
    cursor: pointer;
}
.reward-calendar-trigger:hover { transform: translate(1px, 1px); box-shadow: 2px 2px 0 var(--yellow); }
.reward-calendar-trigger [data-reward-ready-dot] {
    width: 12px;
    height: 12px;
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--coral);
    border: 2px solid var(--ink);
    border-radius: 50%;
    animation: reward-ready-pulse 1.35s ease-in-out infinite;
}
.reward-calendar-trigger [data-reward-ready-dot][hidden] { display: none; }
.streak-modal {
    position: fixed;
    z-index: 30000;
    inset: 0;
    padding: 20px;
    display: grid;
    place-items: center;
}
.streak-modal[hidden] { display: none !important; }
.streak-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 17, 31, .78);
    backdrop-filter: blur(8px);
}
.streak-modal > section {
    width: min(880px, 100%);
    max-height: min(760px, calc(100vh - 40px));
    padding: clamp(22px, 4vw, 38px);
    position: relative;
    overflow: auto;
    color: var(--ink);
    background: var(--paper);
    border: 3px solid var(--ink);
    border-radius: 26px;
    box-shadow: 12px 12px 0 var(--violet);
    animation: streak-modal-land .48s cubic-bezier(.16, 1, .3, 1) both;
}
.streak-modal-close {
    width: 44px;
    height: 44px;
    position: absolute;
    top: 16px;
    right: 16px;
    display: grid;
    place-items: center;
    color: var(--ink);
    background: #fff;
    border: 2px solid var(--ink);
    border-radius: 50%;
    cursor: pointer;
}
.streak-modal > section > header {
    padding-right: 56px;
    display: flex;
    align-items: center;
    gap: 16px;
}
.streak-modal-mark {
    width: 58px;
    height: 58px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    background: var(--yellow);
    border: 2px solid var(--ink);
    border-radius: 17px;
    box-shadow: 4px 4px 0 var(--ink);
}
.streak-modal header p {
    margin: 0 0 3px;
    color: #5d50b1;
    font-family: ui-monospace, monospace;
    font-size: .68rem;
    font-weight: 950;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.streak-modal header h2 { margin: 0; font-size: clamp(1.65rem, 4vw, 2.6rem); }
.streak-modal-track {
    padding: 24px 0 10px;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(7, minmax(82px, 1fr));
    gap: 9px;
    list-style: none;
}
.streak-modal-track li {
    min-width: 0;
    min-height: 145px;
    padding: 10px 7px;
    display: grid;
    grid-template-rows: auto 1fr auto auto;
    justify-items: center;
    gap: 6px;
    color: var(--text-muted);
    background: #ebe8df;
    border: 2px solid #b5b4b0;
    border-radius: 14px;
    text-align: center;
}
.streak-modal-track li > span:first-child {
    justify-self: start;
    font-family: ui-monospace, monospace;
    font-size: .66rem;
    font-weight: 950;
}
.streak-modal-track li > span:nth-child(2) {
    width: 50px;
    height: 50px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, .65);
    border-radius: 50%;
}
.streak-modal-track strong { min-width: 0; font-size: .68rem; line-height: 1.15; }
.streak-modal-track small { font-size: .62rem; font-weight: 800; }
.streak-modal-track li.is-claimed {
    color: var(--success-dark);
    background: #dbf5eb;
    border-color: var(--success);
}
.streak-modal-track li.is-ready {
    color: var(--ink);
    background: #fff4b6;
    border-color: var(--ink);
    box-shadow: 4px 5px 0 var(--coral);
    transform: translateY(-5px);
}
.streak-modal-prize {
    min-height: 105px;
    padding: 17px 20px;
    margin-top: 14px;
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 16px;
    background: #fff;
    border: 2px solid var(--ink);
    border-radius: 17px;
}
.streak-prize-art {
    width: 70px;
    height: 70px;
    display: grid;
    place-items: center;
    background: var(--yellow);
    border: 2px solid var(--ink);
    border-radius: 19px;
    box-shadow: 4px 4px 0 var(--coral);
}
.streak-modal-prize strong { display: block; font-size: 1rem; }
.streak-modal-prize p { margin: 4px 0 0; color: var(--ink-soft); font-size: .72rem; }
.streak-modal-prize.is-arriving .streak-prize-art { animation: reward-prize-arrive .7s cubic-bezier(.16, 1, .3, 1) both; }
.streak-modal-prize.is-claimed { animation: reward-claim-flash .8s ease both; }
.streak-modal-prize.is-celebrating .streak-prize-art {
    animation: reward-prize-celebrate 1.05s cubic-bezier(.16, 1, .3, 1) both;
}
.streak-claim-button {
    min-width: 190px;
    margin: 16px auto 0;
}
.streak-claim-button[data-streak-action="play"] {
    color: #fff;
    background: var(--ink);
    box-shadow: 5px 5px 0 var(--mint);
}
.streak-claim-button:disabled {
    color: #5f6775;
    background: #dedbd3;
    border-color: #81858c;
    box-shadow: none;
    cursor: not-allowed;
    opacity: 1;
}
.streak-modal-error {
    padding: 10px 12px;
    margin: 12px 0 0;
    color: #812632;
    background: #fff0ef;
    border: 1px solid #df9da2;
    border-radius: 9px;
    font-size: .7rem;
}
.streak-modal-inventory {
    width: fit-content;
    padding: 8px 11px;
    margin: 12px auto 0;
    display: flex;
    align-items: center;
    gap: 7px;
    color: var(--success-dark);
    background: #dbf5eb;
    border: 1px solid var(--success-dark);
    border-radius: 999px;
    font-size: .7rem;
    font-weight: 900;
}
.streak-modal-inventory::before {
    width: 9px;
    height: 9px;
    content: "";
    background: var(--success);
    border: 1px solid var(--ink);
    border-radius: 50%;
}
.streak-modal-inventory[hidden] { display: none !important; }
body.streak-modal-open { overflow: hidden; }
@keyframes streak-modal-land { from { opacity: 0; transform: translateY(26px) scale(.96); } }
@keyframes reward-ready-pulse { 50% { transform: scale(1.28); box-shadow: 0 0 0 6px rgba(255,112,88,.17); } }
@keyframes reward-prize-arrive {
    0% { opacity: .2; transform: translateY(-26px) rotate(-12deg) scale(.72); }
    70% { transform: translateY(4px) rotate(3deg) scale(1.08); }
}
@keyframes reward-claim-flash {
    45% { background: #fff1a8; transform: scale(1.015); box-shadow: 0 0 0 9px rgba(255,211,69,.22); }
}
@keyframes reward-prize-celebrate {
    0% { transform: scale(.78) rotate(-9deg); }
    45% { transform: scale(1.18) rotate(5deg); box-shadow: 0 0 0 14px rgba(255,211,69,.24), 5px 5px 0 var(--coral); }
    72% { transform: scale(.97) rotate(-2deg); }
    100% { transform: scale(1) rotate(0); }
}
@media (max-width: 760px) {
    .streak-modal { padding: 10px; }
    .streak-modal > section { max-height: calc(100vh - 20px); padding: 20px 14px; border-radius: 19px; box-shadow: 7px 7px 0 var(--violet); }
    .streak-modal-track { grid-template-columns: repeat(4, 1fr); }
    .streak-modal-track li { min-height: 122px; }
    .streak-modal-prize { grid-template-columns: 1fr; justify-items: center; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
    .reward-calendar-trigger [data-reward-ready-dot],
    .streak-modal > section,
    .streak-modal-prize.is-arriving .streak-prize-art,
    .streak-modal-prize.is-claimed,
    .streak-modal-prize.is-celebrating .streak-prize-art { animation: none !important; }
}

/* Atelier V3 : guidage, récompenses et mouvement */
.mission-game-hud { margin: 10px 0 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.mission-game-hud > span { min-height: 34px; padding: 6px 10px; display: inline-flex; align-items: center; gap: 6px; color: var(--ink); background: #fff; border: 1.5px solid var(--ink); border-radius: 999px; box-shadow: 2px 2px 0 rgba(23,32,51,.16); font-size: .64rem; font-weight: 850; }
.mission-game-hud i { font-style: normal; }.hud-bits i { color: #705d00; }.hud-guest { background: #fff7ca !important; }
.hud-bits.rewarded { animation: hud-reward .7s cubic-bezier(.16,1,.3,1); }
.nova-coach { position: relative; padding: 12px 14px 12px 68px; margin: 15px 0; min-height: 64px; display: flex; align-items: center; color: var(--ink); background: #eafbf5; border: 1.5px solid #287e64; border-radius: 10px 10px 10px 2px; box-shadow: 3px 3px 0 rgba(40,126,100,.22); }
.nova-coach::before { position: absolute; left: -8px; bottom: 0; width: 16px; height: 16px; content: ""; background: #eafbf5; border-left: 1.5px solid #287e64; border-bottom: 1.5px solid #287e64; transform: skew(-28deg); }
.nova-coach img { position: absolute; left: 7px; bottom: 2px; width: 56px; height: 56px; filter: drop-shadow(2px 3px 0 rgba(23,32,51,.18)); }
.nova-coach p { margin: 0; font-size: .7rem; line-height: 1.42; }.nova-coach strong { display: block; margin-bottom: 2px; color: #1c6c54; font-size: .58rem; letter-spacing: .07em; text-transform: uppercase; }
.nova-coach.coach-speaks img { animation: coach-hop .55s cubic-bezier(.16,1,.3,1); }.nova-coach.coach-speaks { animation: coach-bubble .45s ease; }
.tour-replay { padding: 0; margin: 0 0 14px; display: inline-flex; align-items: center; gap: 7px; color: #5145aa; background: none; border: 0; font-size: .64rem; font-weight: 850; cursor: pointer; }.tour-replay span { width: 22px; height: 22px; display: grid; place-items: center; color: #fff; background: var(--violet); border-radius: 50%; }
.code-anatomy { padding: 12px; margin-bottom: 16px; display: flex; justify-content: center; align-items: flex-start; gap: 5px; color: #9a2f42; background: #fff; border: 1px dashed #aeb3bd; border-radius: 8px; font-family: ui-monospace, monospace; font-size: .78rem; font-weight: 850; }
.code-anatomy b { color: var(--ink); }.code-anatomy small { margin-top: 3px; display: block; color: #667085; font-family: system-ui, sans-serif; font-size: .48rem; font-weight: 750; text-align: center; }
.help-actions { margin-top: 17px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.hint-toggle, .example-toggle, .autocomplete-toggle { min-height: 40px; padding: 8px 10px; margin: 0; color: #4f439f; background: #f2efff; border: 1px solid #a69ce8; border-radius: 7px; font-size: .63rem; font-weight: 850; line-height: 1.2; text-align: left; cursor: pointer; }
.example-toggle { color: #5d4a00; background: #fff8d4; border-color: #d5ba44; }.autocomplete-toggle { grid-column: 1 / -1; color: #fff; background: var(--ink); border: 2px solid var(--ink); box-shadow: 3px 4px 0 var(--coral); }.hint-toggle small, .example-toggle small, .autocomplete-toggle small { display: block; margin: 3px 0 0 22px; color: #667085; font-size: .48rem; font-weight: 750; }.autocomplete-toggle small { color: #d7dceb; }
.hint-toggle:hover, .example-toggle:hover, .autocomplete-toggle:hover { transform: translateY(-2px); box-shadow: 2px 3px 0 rgba(23,32,51,.14); }.autocomplete-toggle:hover { box-shadow: 5px 6px 0 var(--coral); }.hint-toggle:disabled, .example-toggle:disabled, .autocomplete-toggle:disabled { cursor: wait; opacity: .65; }.hint-toggle.help-suggested { animation: guided-pulse 1.2s ease-in-out infinite; }
.hint, .example-hint { padding: 12px; margin-top: 9px; color: #514870 !important; background: #f0edff; border-left: 4px solid var(--violet); border-radius: 7px; font-size: .72rem; animation: help-open .3s cubic-bezier(.16,1,.3,1); }
.example-hint { color: #534400 !important; background: #fff8d4; border-left-color: #caa91e; }.hint-error { padding: 9px 11px; margin: 8px 0 0; color: #8c2638; background: #fff0ed; border-radius: 6px; font-size: .64rem; font-weight: 750; }
.integration-example > span { display: block; color: #8a6c00; font-family: ui-monospace, monospace; font-size: .54rem; font-weight: 950; letter-spacing: .12em; }.integration-example > strong { display: block; margin-top: 4px; color: var(--ink); }.integration-example > p { margin: 7px 0 10px; color: #625b3f; }.integration-example pre { max-width: 100%; padding: 11px 12px; overflow-x: auto; color: #f7f3e9; background: var(--ink); border: 1px solid #0d1422; border-radius: 7px; }.integration-example code { color: inherit; font-family: ui-monospace, monospace; font-size: .66rem; white-space: pre; }
.autocomplete-status { padding: 12px 14px; margin-top: 10px; display: grid; grid-template-columns: 24px 1fr; column-gap: 8px; color: var(--ink); background: #e7faf3; border: 1.5px solid #2b765f; border-radius: 9px; animation: help-open .3s cubic-bezier(.16,1,.3,1); }.autocomplete-status[hidden] { display: none; }.autocomplete-status .ui-icon { grid-row: 1 / 3; align-self: center; }.autocomplete-status strong, .autocomplete-status span { display: block; }.autocomplete-status strong { font-size: .68rem; }.autocomplete-status span { color: #3f6257; font-size: .58rem; }.autocomplete-status.is-writing .ui-icon { animation: coach-hop .55s ease-in-out infinite; }.autocomplete-status.is-done { background: #fff7ca; border-color: #ad9022; }
.autocomplete-coach { position: fixed; z-index: 2600; inset: 0; display: grid; place-items: center; padding: 22px; }.autocomplete-coach[hidden] { display: none; }.autocomplete-coach-backdrop { position: absolute; inset: 0; background: rgba(12,18,30,.82); backdrop-filter: blur(5px); }.autocomplete-coach-card { position: relative; width: min(560px, 100%); padding: 34px 36px 30px; color: var(--ink); background: var(--paper); border: 3px solid var(--ink); border-radius: 22px; box-shadow: 12px 12px 0 var(--violet); animation: tour-card-in .45s cubic-bezier(.16,1,.3,1); }.autocomplete-coach-nova { position: absolute; top: -44px; right: 28px; width: 92px; height: 92px; display: grid; place-items: center; background: var(--yellow); border: 3px solid var(--ink); border-radius: 28px; box-shadow: 5px 5px 0 var(--coral); transform: rotate(3deg); }.autocomplete-coach-nova img { width: 72px; height: 72px; }.autocomplete-coach-kicker { margin: 0 100px 8px 0; color: #5a4abb; font-family: ui-monospace, monospace; font-size: .66rem; font-weight: 950; letter-spacing: .14em; }.autocomplete-coach-card h2 { margin: 0 100px 18px 0; font-size: clamp(1.8rem, 5vw, 2.8rem); }.autocomplete-coach-card code { display: block; padding: 16px; overflow-x: auto; color: #fff4a6; background: var(--ink); border: 2px solid #0d1422; border-radius: 11px; font-size: .74rem; white-space: pre-wrap; }.autocomplete-coach-card > p:not(.autocomplete-coach-kicker) { color: var(--ink-soft); font-size: .84rem; }.autocomplete-coach-extra { padding: 13px 15px; color: var(--ink) !important; background: #fff5be; border-left: 5px solid var(--yellow); border-radius: 8px; }.autocomplete-coach-actions { margin-top: 22px; display: flex; align-items: center; justify-content: flex-end; gap: 13px; }.autocomplete-coach-open { overflow: hidden; }
.code-editor.is-autocompleting { background-image: linear-gradient(90deg, transparent, rgba(109,212,173,.09), transparent); background-size: 220% 100%; animation: autocomplete-scan .9s linear infinite; }.code-editor.autocomplete-finished { box-shadow: inset 0 0 0 3px var(--mint); }
.feedback-bits { display: inline-block; padding: 3px 7px; margin: 8px 0 0 5px; color: #4c3e00; background: #fff5b8; border: 1px solid #9f8419; border-radius: 20px; font-size: .58rem; font-weight: 950; }.feedback-bits[hidden] { display: none; }
.flying-bit { position: fixed; z-index: 9999; left: var(--bit-left); top: var(--bit-top); color: #d3a900; font-style: normal; font-size: 20px; pointer-events: none; text-shadow: 1px 1px 0 #5c4b00; animation: bit-flight 1.35s cubic-bezier(.12,.7,.2,1) var(--bit-delay) both; }
.preview-frame.preview-success { animation: preview-win .8s cubic-bezier(.16,1,.3,1); }
.step-dots li.active span { animation: active-step 1.3s ease-in-out infinite; }.editor-tabs button.active .dot { animation: tab-dot 1.1s ease-in-out infinite; }.run-button { position: relative; overflow: hidden; }.run-button::after { position: absolute; inset: 0; content: ""; background: linear-gradient(105deg, transparent 25%, rgba(255,255,255,.28), transparent 70%); transform: translateX(-130%); animation: run-shine 4s ease-in-out infinite; }
.workshop-tour { position: fixed; z-index: 2000; inset: 0; padding: 0; pointer-events: none; }.workshop-tour[hidden] { display: none; }.tour-backdrop { position: absolute; inset: 0; background: rgba(12,18,30,.70); backdrop-filter: blur(2px); animation: tour-fade .35s ease; pointer-events: auto; }.tour-focus-ring { position: fixed; z-index: 1; border: 4px solid var(--yellow); border-radius: 18px; box-shadow: 0 0 0 5px rgba(255,112,88,.75), 0 0 0 9999px rgba(12,18,30,.18), 0 0 36px 12px rgba(255,216,77,.62); transition: left .38s cubic-bezier(.16,1,.3,1), top .38s cubic-bezier(.16,1,.3,1), width .38s cubic-bezier(.16,1,.3,1), height .38s cubic-bezier(.16,1,.3,1); pointer-events: none; }.tour-focus-ring span { position: absolute; inset: 10%; border: 2px dashed rgba(255,255,255,.9); border-radius: inherit; animation: guided-pulse 1.4s ease-in-out infinite; }.tour-card { position: fixed; z-index: 3; width: min(420px, calc(100% - 32px)); min-height: 0; padding: 27px 30px; overflow: visible; color: var(--ink); background: var(--paper); border: 2px solid var(--ink); border-radius: 20px; box-shadow: 10px 10px 0 var(--coral); animation: tour-card-in .55s cubic-bezier(.16,1,.3,1); pointer-events: auto; transition: left .38s cubic-bezier(.16,1,.3,1), top .38s cubic-bezier(.16,1,.3,1); }.tour-pointer { position: absolute; z-index: -1; width: 28px; height: 28px; background: var(--paper); border: solid var(--ink); transform: rotate(45deg); }.tour-card.points-left .tour-pointer { left: -15px; top: calc(50% - 14px); border-width: 0 0 2px 2px; }.tour-card.points-right .tour-pointer { right: -15px; top: calc(50% - 14px); border-width: 2px 2px 0 0; }.tour-card.points-up .tour-pointer { top: -15px; left: calc(50% - 14px); border-width: 2px 0 0 2px; }.tour-card.points-down .tour-pointer { bottom: -15px; left: calc(50% - 14px); border-width: 0 2px 2px 0; }
.tour-card::before { position: absolute; width: 220px; height: 220px; right: -90px; top: -110px; content: ""; background: var(--yellow); border: 2px solid var(--ink); border-radius: 50%; }.tour-close { position: absolute; z-index: 3; top: 15px; right: 17px; width: 36px; height: 36px; color: var(--ink); background: #fff; border: 1.5px solid var(--ink); border-radius: 50%; font-size: 1.2rem; cursor: pointer; }
.tour-orbit { position: relative; width: 86px; height: 86px; margin: 0 auto 12px; display: grid; place-items: center; }.tour-orbit i { position: absolute; inset: 4px; border: 2px dashed var(--violet); border-radius: 50%; animation: tour-spin 8s linear infinite; }.tour-orbit i:nth-child(2) { inset: 14px; border-color: var(--coral); animation-direction: reverse; animation-duration: 5s; }.tour-orbit img { position: relative; z-index: 2; width: 70px; height: 70px; animation: coach-float 2.3s ease-in-out infinite; }
.tour-kicker { margin: 0 0 8px; color: #5a4abb; font-family: ui-monospace, monospace; font-size: .62rem; font-weight: 950; letter-spacing: .13em; }.tour-card h2 { max-width: 360px; margin: 0 0 10px; font-size: clamp(1.65rem, 3vw, 2.2rem); line-height: 1; }.tour-card > p:not(.tour-kicker) { min-height: 54px; margin: 0; color: var(--ink-soft); font-size: .78rem; }
.tour-map { margin: 16px 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 7px; }.tour-map span { height: 6px; background: #d7d4cb; border-radius: 999px; transition: background .25s, transform .25s; }.tour-map span.active { background: var(--coral); transform: scaleY(1.5); }.tour-actions { display: flex; justify-content: flex-end; align-items: center; gap: 10px; }.tour-actions .reset-button { margin: 0; }.tour-actions .button { border: 2px solid var(--ink); }
.tour-open { overflow: hidden; }

@keyframes hud-reward { 0%,100% { transform: scale(1); } 35% { transform: scale(1.18) rotate(-3deg); background: var(--yellow); } }
@keyframes coach-hop { 0% { transform: translateY(0) rotate(0); } 45% { transform: translateY(-9px) rotate(-5deg); } 100% { transform: translateY(0) rotate(0); } }
@keyframes coach-bubble { from { transform: scale(.97); opacity: .65; } to { transform: scale(1); opacity: 1; } }
@keyframes help-open { from { opacity: 0; transform: translateY(-7px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes bit-flight { 0% { opacity: 0; transform: translate(-50%, 70px) scale(.4) rotate(0); } 20% { opacity: 1; } 100% { opacity: 0; transform: translate(calc(-50% + var(--bit-drift)), -95px) scale(1.15) rotate(400deg); } }
@keyframes preview-win { 0%,100% { box-shadow: none; } 35% { box-shadow: inset 0 0 0 7px rgba(109,212,173,.9), inset 0 0 45px rgba(109,212,173,.35); } }
@keyframes active-step { 50% { transform: scale(1.12); box-shadow: 0 0 0 6px rgba(255,112,88,.18); } }
@keyframes tab-dot { 50% { transform: scale(1.65); box-shadow: 0 0 0 4px rgba(255,255,255,.12); } }
@keyframes run-shine { 0%,70% { transform: translateX(-130%); } 90%,100% { transform: translateX(130%); } }
@keyframes tour-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes tour-card-in { from { opacity: 0; transform: translateY(35px) scale(.92) rotate(-1deg); } to { opacity: 1; transform: none; } }
@keyframes tour-spin { to { transform: rotate(360deg); } }
@keyframes coach-float { 50% { transform: translateY(-8px) rotate(3deg); } }

@media (max-width: 760px) {
    .help-actions { grid-template-columns: 1fr; }.tour-card { min-height: 0; max-height: min(58vh, 520px); padding: 22px 21px; overflow-y: auto; }.tour-card::before { width: 150px; height: 150px; right: -65px; top: -75px; }.tour-orbit { width: 70px; height: 70px; margin-bottom: 8px; }.tour-orbit img { width: 58px; height: 58px; }.tour-card h2 { max-width: calc(100% - 35px); font-size: 1.55rem; }.tour-card > p:not(.tour-kicker) { min-height: 0; font-size: .72rem; }.tour-focus-ring { border-radius: 12px; }.autocomplete-coach { padding: 14px; }.autocomplete-coach-card { padding: 70px 20px 22px; box-shadow: 7px 7px 0 var(--violet); }.autocomplete-coach-nova { top: -24px; right: 20px; width: 78px; height: 78px; }.autocomplete-coach-nova img { width: 60px; height: 60px; }.autocomplete-coach-kicker, .autocomplete-coach-card h2 { margin-right: 0; }.autocomplete-coach-actions { align-items: stretch; flex-direction: column-reverse; }.autocomplete-coach-actions .button, .autocomplete-coach-actions .reset-button { width: 100%; justify-content: center; }.mission-game-hud > span { font-size: .6rem; }
}

@media (prefers-reduced-motion: reduce) {
    .nova-coach, .nova-coach img, .step-dots li.active span, .editor-tabs button.active .dot, .run-button::after, .tour-orbit i, .tour-orbit img, .flying-bit { animation: none !important; }
}

/* Mouvement et finitions de production */
.scroll-progress { position: fixed; z-index: 999; top: 0; left: 0; width: 100%; height: 4px; pointer-events: none; }
.scroll-progress span { display: block; width: 100%; height: 100%; background: linear-gradient(90deg, var(--coral), var(--yellow), var(--mint)); transform: scaleX(0); transform-origin: left; will-change: transform; }

.reveal-ready [data-reveal] { opacity: 0; transform: translateY(32px) scale(.985); transition: opacity .7s cubic-bezier(.2,.75,.25,1), transform .7s cubic-bezier(.2,.75,.25,1); transition-delay: var(--reveal-delay, 0ms); }
.reveal-ready [data-reveal].is-revealed { opacity: 1; transform: translateY(0) scale(1); }

.hero-visual::before { position: absolute; inset: 5%; z-index: 0; content: ""; pointer-events: none; background: radial-gradient(240px circle at var(--pointer-x, 50%) var(--pointer-y, 50%), rgba(255,112,88,.28), transparent 72%); filter: blur(4px); }
.orbit-one { animation: orbit-spin 34s linear infinite; }
.orbit-two { animation: orbit-spin-reverse 25s linear infinite; }
.mascot { animation: mascot-float 4.6s ease-in-out infinite; }
.code-window { animation: code-window-in .9s cubic-bezier(.16,1,.3,1) both; }
.mission-toast { animation: toast-float 3.6s ease-in-out 1s infinite; }
.floating-token { position: absolute; z-index: 4; padding: 8px 11px; color: var(--ink); background: #fff; border: 2px solid var(--ink); border-radius: 7px; box-shadow: 3px 3px 0 var(--ink); font-family: ui-monospace, monospace; font-size: .7rem; font-weight: 900; }
.token-html { top: 55px; left: 2%; color: #a53242; animation: token-float 5s ease-in-out infinite; }
.token-css { right: 0; top: 115px; color: #2d61aa; animation: token-float 4.3s ease-in-out .7s infinite reverse; }
.token-js { bottom: 80px; left: 4%; color: #745a00; background: var(--yellow); animation: token-float 5.4s ease-in-out 1.2s infinite; }

.tech-marquee { width: 100%; overflow: hidden; color: #fff; background: var(--ink); border-block: 2px solid var(--ink); transform: rotate(-1deg) scale(1.015); }
.tech-marquee-track { width: max-content; display: flex; will-change: transform; animation: marquee 30s linear infinite; }
.tech-marquee-group { min-width: 100vw; padding: 13px 30px; display: flex; flex: 0 0 auto; align-items: center; justify-content: space-around; gap: 28px; }
.tech-marquee span { flex: 0 0 auto; font-family: ui-monospace, monospace; font-size: .72rem; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.tech-marquee img { width: 18px; height: 18px; flex: 0 0 18px; }

.path-card { transform: perspective(900px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)); transform-style: preserve-3d; }
.path-card:hover { transform: perspective(900px) translateY(-6px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)); }
.path-card .path-icon, .path-card h3 { transform: translateZ(18px); }
.button.magnetic { transform: translate(var(--magnet-x, 0), var(--magnet-y, 0)); }
.button.magnetic:hover { transform: translate(calc(var(--magnet-x, 0px) + 2px), calc(var(--magnet-y, 0px) + 2px)); }

.provider-block { min-height: 52px; margin-top: 24px; display: grid; place-items: center; }
.google-button-wrap { width: 100%; min-height: 44px; display: grid; place-items: center; }
.google-placeholder { width: 100%; height: 46px; display: flex; align-items: center; justify-content: center; gap: 12px; color: #374151; background: #fff; border: 1px solid #aeb3bd; border-radius: 6px; font-weight: 750; opacity: .75; }
.google-placeholder span { font-family: Arial, sans-serif; font-size: 1.1rem; font-weight: 900; }
.provider-note { display: block; margin-top: 6px; color: #4a5365; font-size: .62rem; text-align: center; }
.auth-divider { margin: 23px 0 0; display: flex; align-items: center; gap: 12px; color: #4a5365; font-size: .68rem; }
.auth-divider::before, .auth-divider::after { height: 1px; flex: 1; content: ""; background: #d8d5cd; }
.auth-divider span { white-space: nowrap; }
.auth-callout { padding: 11px 13px; margin-top: 17px; color: #4c426f; background: #f0edff; border-left: 4px solid var(--violet); border-radius: 4px; font-size: .74rem; font-weight: 700; }
.forgot-link { display: block; margin-top: 8px; color: #555e70; font-size: .7rem; font-weight: 750; text-align: right; }
.standalone-auth { min-height: 70vh; padding-block: 80px; display: grid; place-items: center; }
.verify-card { width: min(100%, 620px); }
.verify-card h1 { margin-bottom: 22px; font-size: clamp(2.5rem, 6vw, 4.6rem); }
.verify-card > p { color: var(--ink-soft); }
.verify-card form { margin-top: 24px; }
.verify-card .guest-link { display: inline-block; margin-left: 18px; }

.trial-badge { padding: 9px 11px; margin: -4px 0 15px; color: #554500; background: #fff7ca; border: 1px solid #d6b73d; border-radius: 7px; font-size: .68rem; font-weight: 750; }
.trial-badge span { padding: 2px 5px; margin-right: 5px; color: var(--ink); background: var(--yellow); border: 1px solid var(--ink); border-radius: 4px; font-family: ui-monospace, monospace; font-size: .58rem; font-weight: 950; }
.lesson-arrow { min-width: 24px; text-align: center; }

.error-404 { text-align: center; }
.error-404 .error-code { margin: 0; color: var(--coral); font-family: ui-monospace, monospace; font-size: clamp(5rem, 20vw, 12rem); font-weight: 950; line-height: .8; text-shadow: 7px 7px 0 var(--ink); }
.error-404 h1 { margin-top: 45px; }
.error-404 > p:not(.error-code) { color: var(--ink-soft); }
.error-404 > div { display: flex; justify-content: center; align-items: center; gap: 25px; }

@keyframes orbit-spin { to { transform: rotate(360deg); } }
@keyframes orbit-spin-reverse { to { transform: rotate(-360deg); } }
@keyframes mascot-float { 0%,100% { transform: rotate(5deg) translateY(0); } 50% { transform: rotate(2deg) translateY(-12px); } }
@keyframes toast-float { 0%,100% { transform: rotate(-2deg) translateY(0); } 50% { transform: rotate(-1deg) translateY(-5px); } }
@keyframes token-float { 0%,100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-14px) rotate(3deg); } }
@keyframes code-window-in { from { opacity: 0; transform: rotate(1.8deg) translateY(30px) scale(.94); } to { opacity: 1; transform: rotate(1.8deg) translateY(0) scale(1); } }
@keyframes marquee { to { transform: translate3d(-50%,0,0); } }
@keyframes feedback-pop { from { opacity: 0; transform: translateY(22px) scale(.94); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes gentle-shake { 0%,100% { transform: translateX(0); } 25% { transform: translateX(-5px); } 50% { transform: translateX(4px); } 75% { transform: translateX(-2px); } }
@keyframes card-success { 0% { transform: scale(1); } 45% { transform: scale(1.025) rotate(-.3deg); box-shadow: 6px 6px 0 var(--mint); } 100% { transform: scale(1); } }
@keyframes confetti-fall { 0% { opacity: 0; transform: translate3d(0,-5vh,0) rotate(0); } 12% { opacity: 1; } 100% { opacity: 0; transform: translate3d(var(--confetti-drift),110vh,0) rotate(760deg); } }
@keyframes mission-glow { 50% { transform: scale(1.015); filter: drop-shadow(0 0 10px rgba(248,211,79,.8)); } }

@media (max-width: 760px) {
    .floating-token { display: none; }
    .tech-marquee-track { animation-duration: 22s; }
    .error-404 > div { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
    .reveal-ready [data-reveal] { opacity: 1; transform: none; }
    .tech-marquee { transform: none; }
    .celebration-layer { display: none !important; }
}

/* Boucle quotidienne et tableau de bord */
.nav-game-stats { padding: 6px 10px; display: inline-flex !important; align-items: center; gap: 9px; color: var(--ink); background: #fff; border: 1px solid #cbc6b8; border-radius: 999px; text-decoration: none; }.nav-game-stats span { display: inline-flex; align-items: center; gap: 3px; font-size: .66rem; }.nav-game-stats span:last-child { color: #665300; }
.daily-banner { padding: 17px 20px; margin: -15px 0 35px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 15px; color: var(--ink); background: #fff7ca; border: 2px solid var(--ink); border-radius: 12px; box-shadow: 5px 5px 0 var(--yellow); text-decoration: none; }.daily-banner-icon { display: grid; width: 46px; height: 46px; place-items: center; color: #6f5900; background: var(--yellow); border: 1.5px solid var(--ink); border-radius: 50%; animation: daily-gem 2.2s ease-in-out infinite; }.daily-banner small, .daily-banner strong { display: block; }.daily-banner small { margin-bottom: 2px; color: #685700; font-size: .6rem; font-weight: 900; letter-spacing: .07em; text-transform: uppercase; }.daily-banner b { font-size: .75rem; }
.daily-board { margin: 34px 0 28px; display: grid; grid-template-columns: minmax(0,1.45fr) minmax(330px,.75fr); gap: 20px; }.daily-mission, .week-card { min-height: 290px; background: #fff; border: 2px solid var(--ink); border-radius: 15px; }.daily-mission { position: relative; padding: 32px; display: grid; grid-template-columns: 150px 1fr; align-items: center; gap: 28px; overflow: hidden; box-shadow: 7px 7px 0 var(--yellow); }.daily-mission::before { position: absolute; width: 240px; height: 240px; right: -120px; bottom: -150px; content: ""; background: var(--mint); border: 2px solid var(--ink); border-radius: 50%; opacity: .55; }.daily-mission.is-done { box-shadow: 7px 7px 0 var(--mint); }.daily-mission h2 { margin: 3px 0 8px; font-size: clamp(2rem,3.5vw,3.2rem); }.daily-mission p:not(.eyebrow) { max-width: 600px; margin: 0 0 18px; color: var(--ink-soft); font-size: .8rem; }.daily-mission .button { position: relative; z-index: 2; min-height: 46px; padding: 10px 16px; }
.daily-orbit { position: relative; width: 135px; height: 135px; display: grid; place-items: center; }.daily-orbit::before, .daily-orbit i { position: absolute; inset: 0; content: ""; border: 2px dashed var(--violet); border-radius: 50%; animation: tour-spin 9s linear infinite; }.daily-orbit i { inset: 18px; border-color: var(--coral); animation-direction: reverse; animation-duration: 5s; }.daily-orbit span { position: relative; z-index: 2; display: grid; width: 62px; height: 62px; place-items: center; color: var(--ink); background: var(--yellow); border: 2px solid var(--ink); border-radius: 18px; box-shadow: 5px 5px 0 var(--ink); font-size: 1.4rem; font-weight: 950; animation: daily-gem 2.2s ease-in-out infinite; }
.week-card { padding: 26px; box-shadow: 7px 7px 0 var(--coral); }.week-heading { display: flex; align-items: center; justify-content: space-between; }.week-heading span:not(.week-flame), .week-heading strong { display: block; }.week-heading span:not(.week-flame) { color: #697184; font-size: .6rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }.week-heading strong { margin-top: 3px; font-size: 1.1rem; }.week-flame { font-size: 2.1rem; animation: flame-breathe 1.6s ease-in-out infinite; }.week-strip { margin: 26px 0 18px; display: grid; grid-template-columns: repeat(7,1fr); gap: 7px; }.week-strip div { display: grid; justify-items: center; gap: 7px; }.week-strip div > span { width: 34px; height: 34px; display: grid; place-items: center; color: #8b8f98; background: #e9e7e0; border: 1px solid #c9c6bd; border-radius: 50%; font-size: .7rem; font-weight: 900; }.week-strip .active > span { color: #fff; background: #25815f; border-color: var(--ink); }.week-strip .today > span { box-shadow: 0 0 0 4px rgba(255,112,88,.2); }.week-strip small { color: #4a5365; font-size: .5rem; font-weight: 900; text-transform: uppercase; }.week-card > p { margin: 0; color: var(--ink-soft); font-size: .7rem; }
.stats-grid { grid-template-columns: repeat(4,1fr); margin-top: 35px; margin-bottom: 45px; }.stat-bits { background: #fff9d8 !important; box-shadow: 4px 4px 0 var(--yellow); }.stat-bits strong { color: #796000; }.stat-streak { background: #fff1ed !important; box-shadow: 4px 4px 0 var(--coral); }.continue-card { padding: 27px 30px; margin: 0 0 65px; display: flex; align-items: center; justify-content: space-between; gap: 30px; color: #fff; background: var(--ink); border: 2px solid var(--ink); border-radius: 14px; box-shadow: 7px 7px 0 var(--violet); }.continue-card .eyebrow { color: var(--yellow); }.continue-card .eyebrow span { background: var(--yellow); }.continue-card h2 { margin: 3px 0 5px; color: #fff; font-size: 2rem; }.continue-card p:not(.eyebrow) { margin: 0; color: #b9c0cd; }.continue-card > div:last-child { display: grid; grid-template-columns: auto auto auto; align-items: center; gap: 12px; }.continue-card > div:last-child > span, .continue-card > div:last-child > strong { padding: 6px 9px; color: #dce1e9; background: #273248; border-radius: 5px; font-size: .65rem; }.continue-card .button { margin-left: 5px; color: var(--ink); background: var(--yellow); }
.game-loop-section { padding: 110px 0; color: #fff; background: #101827; border-block: 2px solid var(--ink); }.game-loop-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(390px,.78fr); align-items: center; gap: 100px; }.game-loop-copy h2 { margin: 0 0 24px; color: #fff; font-size: clamp(3rem,5vw,5.5rem); }.game-loop-copy > p:not(.eyebrow) { max-width: 690px; color: #b7c0d0; }.game-loop-copy ul { padding: 0; margin: 30px 0 0; list-style: none; }.game-loop-copy li { min-height: 74px; padding: 14px 0; display: grid; grid-template-columns: 48px minmax(0,1fr); align-items: center; gap: 15px; border-top: 1px solid #334057; }.game-loop-copy li > .loop-feature-icon { width: 48px; height: 48px; display: grid; place-items: center; background: var(--yellow); border: 2px solid #0b101b; border-radius: 12px; box-shadow: 3px 3px 0 #0b101b; }.game-loop-copy li:nth-child(2) > .loop-feature-icon { background: var(--coral); }.game-loop-copy li:nth-child(3) > .loop-feature-icon { background: var(--mint); }.loop-feature-icon img { width: 26px; height: 26px; object-fit: contain; }.game-loop-copy strong, .game-loop-copy small { display: block; }.game-loop-copy small { margin-top: 2px; color: #98a5b9; }.game-loop-card { position: relative; padding: 24px; color: var(--ink); background: var(--paper); border: 3px solid var(--ink); border-radius: 22px; box-shadow: 12px 12px 0 var(--coral); transform: rotate(1.5deg); animation: loop-card-float 4s ease-in-out infinite; }.loop-top { display: flex; justify-content: space-between; align-items: center; }.loop-top > span { color: #6656c5; font-family: ui-monospace, monospace; font-size: .62rem; font-weight: 950; letter-spacing: .14em; }.loop-top b { padding: 6px 10px; display: inline-flex; align-items: center; gap: 6px; background: #fff0ec; border-radius: 999px; font-size: .7rem; }.loop-top b img { width: 18px; height: 18px; }.loop-mascot { position: relative; height: 170px; display: grid; place-items: center; }.loop-mascot i { position: absolute; width: 145px; height: 145px; background: var(--yellow); border: 2px dashed var(--ink); border-radius: 50%; animation: tour-spin 10s linear infinite; }.loop-mascot img { position: relative; z-index: 2; animation: coach-float 2.3s ease-in-out infinite; }.game-loop-card > p { margin: 0; color: var(--coral-dark); font-size: .6rem; font-weight: 950; letter-spacing: .08em; text-transform: uppercase; }.game-loop-card h3 { margin: 4px 0 13px; font-size: 1.6rem; }.loop-reward { display: flex; flex-wrap: wrap; gap: 8px; }.loop-reward span { padding: 5px 8px; display: inline-flex; align-items: center; gap: 5px; background: #fff5ba; border: 1px solid #cfb941; border-radius: 999px; font-size: .58rem; font-weight: 900; }.loop-reward img { width: 15px; height: 15px; object-fit: contain; }.loop-progress { margin: 20px 0; display: grid; grid-template-columns: repeat(7,1fr); gap: 6px; }.loop-progress i { height: 7px; background: #dedbd3; border-radius: 9px; }.loop-progress i:nth-child(-n+4) { background: var(--mint); }.game-loop-card button { width: 100%; min-height: 48px; color: #fff; background: var(--ink); border: 0; border-radius: 8px; font-weight: 850; opacity: 1; }
@keyframes daily-gem { 50% { transform: translateY(-4px) rotate(4deg) scale(1.04); } }@keyframes flame-breathe { 50% { transform: scale(1.16) rotate(-3deg); filter: drop-shadow(0 0 8px rgba(255,112,88,.6)); } }@keyframes loop-card-float { 50% { transform: rotate(-.3deg) translateY(-9px); } }

@media (max-width: 1100px) { .daily-board { grid-template-columns: 1fr; }.game-loop-grid { gap: 55px; }.stats-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 900px) { .nav-game-stats { justify-content: center; }.game-loop-grid { grid-template-columns: 1fr; }.game-loop-card { width: min(520px,100%); margin-inline: auto; }.continue-card { align-items: flex-start; flex-direction: column; }.workshop { height: auto; display: flex; flex-direction: column; overflow: visible; }.workshop-page { overflow-x: hidden; }.mission-panel, .editor-panel { width: 100%; height: auto; min-height: 0; }.mission-panel { padding: 30px 28px 36px; overflow: visible; border-right: 0; border-bottom: 2px solid var(--ink); }.editor-panel { min-height: 780px; grid-template-rows: 52px 360px 40px 328px; } }
@media (max-width: 760px) { .daily-banner { grid-template-columns: auto 1fr; }.daily-banner b { grid-column: 1/-1; text-align: right; }.daily-mission { padding: 24px 20px; grid-template-columns: 1fr; }.daily-orbit { width: 100px; height: 100px; }.daily-board { margin-top: 24px; }.stats-grid { grid-template-columns: 1fr; }.continue-card { padding: 24px 20px; }.continue-card > div:last-child { width: 100%; grid-template-columns: 1fr 1fr; }.continue-card .button { grid-column: 1/-1; margin: 0; }.game-loop-section { padding-block: 75px; }.game-loop-grid { gap: 45px; }.game-loop-card { padding: 20px; }.week-strip { gap: 3px; }.week-strip div > span { width: 30px; height: 30px; } }
@media (prefers-reduced-motion: reduce) { .daily-banner-icon, .daily-orbit::before, .daily-orbit i, .daily-orbit span, .week-flame, .game-loop-card, .loop-mascot i, .loop-mascot img { animation: none !important; } }

/* Atelier v5 — une seule scène et son dock d’outils */
.workshop-page .site-header { position: relative; z-index: 120; }
.workshop { display: block; padding-bottom: 92px; background: #111827; overflow: hidden; }
.editor-panel { width: 100%; height: 100%; grid-template-columns: minmax(420px, .95fr) minmax(420px, 1.05fr); grid-template-rows: 50px 1fr; }
.editor-toolbar { grid-column: 1; grid-row: 1; }
.editor-stack { grid-column: 1; grid-row: 2; border-right: 1px solid #3a465a; }
.preview-toolbar { grid-column: 2; grid-row: 1; border-top: 0; }
.preview-frame { grid-column: 2; grid-row: 2; }
.preview-focus .editor-stack, .preview-focus .editor-toolbar { display: none; }
.preview-focus .editor-panel { grid-template-columns: 1fr; }
.preview-focus .preview-toolbar, .preview-focus .preview-frame { grid-column: 1; }
.tool-drawer { position: absolute; z-index: 80; top: 18px; bottom: 112px; left: 20px; width: min(460px, calc(100% - 40px)); height: auto; padding: 28px 30px 36px; overflow: auto; background: rgba(247,243,233,.98); border: 2px solid var(--ink); border-radius: 18px; box-shadow: 12px 14px 0 rgba(7,12,24,.45); opacity: 0; pointer-events: none; transform: translateX(calc(-100% - 35px)) scale(.96); transition: transform .38s cubic-bezier(.16,1,.3,1), opacity .25s ease; }
.tool-drawer.is-open { opacity: 1; pointer-events: auto; transform: translateX(0) scale(1); }
.mission-panel { border-right: 2px solid var(--ink); }
.drawer-close { position: sticky; z-index: 2; top: 0; float: right; width: 38px; height: 38px; display: grid; place-items: center; color: var(--ink); background: #fff; border: 2px solid var(--ink); border-radius: 50%; cursor: pointer; font-size: 1.1rem; font-weight: 900; }
.drawer-kicker { margin: 8px 0 8px; color: #6555c5; font-family: ui-monospace, monospace; font-size: .62rem; font-weight: 950; letter-spacing: .15em; }
.guide-drawer h2, .assets-drawer h2 { margin: 0 0 12px; font-size: 2rem; }
.guide-drawer > p:not(.drawer-kicker), .assets-drawer > p:not(.drawer-kicker) { color: var(--ink-soft); font-size: .78rem; }
.guide-chapters { margin-top: 24px; border-top: 1px solid var(--line); }
.guide-chapters details { border-bottom: 1px solid var(--line); }
.guide-chapters summary { padding: 16px 2px; display: flex; align-items: center; gap: 12px; cursor: pointer; font-size: .78rem; font-weight: 850; list-style: none; }
.guide-chapters summary span { color: #7667df; font-family: ui-monospace, monospace; font-size: .62rem; }
.guide-chapters details p { padding: 0 2px 16px 34px; margin: 0; color: var(--ink-soft); font-size: .72rem; }
.asset-browser { margin-top: 22px; overflow: hidden; background: #151d2c; border: 2px solid var(--ink); border-radius: 12px; }
.asset-list { padding: 8px; display: grid; gap: 4px; background: #202a3d; }
.asset-list button { padding: 9px 10px; display: grid; grid-template-columns: 25px 1fr auto; align-items: center; gap: 8px; color: #c7cedb; background: transparent; border: 0; border-radius: 7px; text-align: left; cursor: pointer; }
.asset-list button.active { color: #fff; background: #35425b; }
.asset-list button span { color: var(--yellow); }.asset-list button b { font-family: ui-monospace, monospace; font-size: .66rem; }.asset-list button small { color: #9ea8ba; font-size: .55rem; }
.asset-content { display: none; min-height: 220px; padding: 20px; margin: 0; overflow: auto; color: #dfe5ef; font-family: ui-monospace, monospace; font-size: .66rem; line-height: 1.7; white-space: pre-wrap; }.asset-content.active { display: block; }
.tool-dock { position: absolute; z-index: 110; bottom: 14px; left: 50%; height: 74px; padding: 8px 12px 6px; display: flex; align-items: flex-end; gap: 7px; color: #fff; background: rgba(27,35,51,.9); border: 1px solid rgba(255,255,255,.26); border-radius: 20px; box-shadow: 0 18px 50px rgba(0,0,0,.4); backdrop-filter: blur(16px); transform: translateX(-50%); }
.dock-app { position: relative; width: 58px; padding: 0; display: grid; justify-items: center; gap: 2px; color: #e9edf5; background: transparent; border: 0; cursor: pointer; transform: scale(var(--dock-scale, 1)); transform-origin: bottom center; transition: transform .16s ease; }
.dock-app small { max-width: 70px; overflow: hidden; font-size: .48rem; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.dock-icon { width: 45px; height: 45px; display: grid; place-items: center; color: var(--ink); background: #f3f0e7; border: 1px solid rgba(255,255,255,.65); border-radius: 13px; box-shadow: inset 0 1px 0 rgba(255,255,255,.8), 0 5px 13px rgba(0,0,0,.25); font-family: ui-monospace, monospace; font-size: .65rem; font-weight: 950; }
.dock-app.active .dock-icon { box-shadow: inset 0 0 0 3px #fff, 0 0 0 2px var(--yellow), 0 7px 16px rgba(0,0,0,.3); }
.dock-app.active::after { position: absolute; bottom: -4px; width: 4px; height: 4px; content: ""; background: #fff; border-radius: 50%; }
.dock-mission { background: var(--coral); }.dock-html { color: #fff; background: #d94d3b; }.dock-css { color: #fff; background: #4f85e8; }.dock-js { background: var(--yellow); }.dock-assets { background: var(--mint); }.dock-guide { color: #fff; background: var(--violet); }.dock-preview { background: #fff; }.dock-check, .dock-check .dock-icon { color: #fff; }.dock-check .dock-icon { background: #21835e; }
.dock-separator { width: 1px; height: 46px; margin: 0 3px 8px; background: rgba(255,255,255,.22); }
.feedback-stars { display: inline-block; padding: 3px 8px; margin: 8px 0 0 5px; color: #664f00; background: #fff4b8; border: 1px solid #c4a52b; border-radius: 20px; font-size: .6rem; font-weight: 950; letter-spacing: .08em; }
.feedback-bits { display: inline-block; padding: 3px 8px; margin-top: 8px; color: #3d356e; background: #ece8ff; border-radius: 20px; font-size: .58rem; font-weight: 900; }
body[data-tour-target="dock"] .tool-dock, body[data-tour-target="check"] .dock-check, body[data-tour-target="preview"] .preview-toolbar { animation: guided-pulse 1.2s ease-in-out infinite; }
@keyframes guided-pulse { 50% { filter: brightness(1.25); box-shadow: 0 0 0 7px rgba(248,211,79,.35), 0 15px 42px rgba(0,0,0,.35); } }

@media (max-width: 900px) {
    .workshop { min-height: calc(100vh - 64px); height: calc(100vh - 64px); display: block; padding-bottom: 84px; }
    .editor-panel { width: 100%; height: 100%; min-height: 0; grid-template-columns: 1fr; grid-template-rows: 48px 46% 34px 1fr; }
    .editor-toolbar { grid-column: 1; grid-row: 1; }.editor-stack { grid-column: 1; grid-row: 2; border-right: 0; }.preview-toolbar { grid-column: 1; grid-row: 3; }.preview-frame { grid-column: 1; grid-row: 4; }
    .preview-focus .preview-toolbar { grid-row: 1; }.preview-focus .preview-frame { grid-row: 2 / 5; }
    .tool-drawer { top: 10px; bottom: 95px; left: 10px; width: calc(100% - 20px); padding: 24px 22px; }
    .tool-dock { right: 8px; bottom: 8px; left: 8px; width: auto; height: 68px; padding-inline: 8px; justify-content: flex-start; overflow-x: auto; transform: none; }
    .dock-app { min-width: 52px; }.dock-icon { width: 40px; height: 40px; }.dock-separator { min-width: 1px; }
}

@media (prefers-reduced-motion: reduce) {
    .tool-drawer { transition: none; }.dock-app { transform: none !important; }
}

/* Carte des routes — progression spatiale sans grille de cartes */
.journey-intro { position: relative; max-width: 1000px; }.journey-intro::after { position: absolute; right: 0; bottom: 5px; width: 130px; height: 80px; content: ""; background: radial-gradient(circle at 20% 70%, var(--coral) 0 7px, transparent 8px), radial-gradient(circle at 75% 25%, var(--violet) 0 9px, transparent 10px); border: 2px dashed #a4a09a; border-radius: 50%; transform: rotate(-12deg); }
.journey-legend { margin-top: 25px; display: flex; gap: 20px; flex-wrap: wrap; }.journey-legend span { display: flex; align-items: center; gap: 7px; color: #596274; font-size: .67rem; font-weight: 800; }.journey-legend i { width: 12px; height: 12px; background: var(--mint); border: 1px solid var(--ink); border-radius: 50%; }.journey-legend .legend-stars { background: var(--yellow); }.journey-legend .legend-premium { background: var(--violet); }
.route-alert { padding: 15px 18px; margin: -10px 0 30px; display: flex; align-items: center; gap: 12px; color: #6f2730; background: #fff0ef; border: 1px solid #df9ba1; border-radius: 10px; }.route-alert > span { width: 30px; height: 30px; display: grid; flex: 0 0 30px; place-items: center; color: #fff; background: var(--coral-dark); border-radius: 50%; font-weight: 950; }.route-alert p { margin: 0; font-size: .76rem; }.route-alert a { margin-left: auto; font-size: .68rem; font-weight: 900; }
.route-filter { position: sticky; z-index: 40; top: 10px; width: fit-content; max-width: 100%; padding: 7px; margin-inline: auto; overflow-x: auto; flex-wrap: nowrap; background: rgba(247,243,233,.88); border: 1px solid rgba(23,32,51,.18); border-radius: 999px; backdrop-filter: blur(12px); }.route-filter a { flex: 0 0 auto; }
.journey-world { display: grid; gap: 85px; }
.journey-route { --route-accent: var(--coral); position: relative; overflow: hidden; background: #f1eee5; border: 2px solid var(--ink); border-radius: 28px; box-shadow: 10px 12px 0 rgba(23,32,51,.13); }
.route-yellow { --route-accent: var(--yellow); }.route-violet, .route-blue { --route-accent: var(--violet); }.route-mint { --route-accent: var(--mint); }
.route-header { position: relative; z-index: 4; padding: 28px 34px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px; background: color-mix(in srgb, var(--route-accent) 22%, #fff); border-bottom: 2px solid var(--ink); }.route-emblem { width: 70px; height: 70px; display: grid; place-items: center; background: var(--route-accent); border: 2px solid var(--ink); border-radius: 22px; box-shadow: 5px 5px 0 var(--ink); font-family: ui-monospace, monospace; font-weight: 950; }.route-header p { margin: 0 0 3px; color: #6256b0; font-family: ui-monospace, monospace; font-size: .6rem; font-weight: 950; letter-spacing: .13em; }.route-header h2 { margin: 0 0 5px; font-size: 2.15rem; }.route-header div > span { color: var(--ink-soft); font-size: .78rem; }.route-status { min-width: 150px; padding-left: 24px; border-left: 1px solid rgba(23,32,51,.2); text-align: right; }.route-status strong, .route-status span, .route-status small { display: block; }.route-status strong { font-size: 1.8rem; line-height: 1; }.route-status strong small { display: inline; color: #756000; font-size: .65rem; }.route-status > span { margin-top: 5px; font-size: .62rem !important; font-weight: 900; text-transform: uppercase; }.route-status > small { margin-top: 3px; color: #625b4a; font-size: .55rem; }
.route-map { position: relative; min-height: calc(var(--route-height) + 210px); padding: 70px 8% 190px; background-image: radial-gradient(circle at 12% 10%, rgba(118,103,223,.12) 0 70px, transparent 72px), radial-gradient(circle at 90% 55%, rgba(109,212,173,.16) 0 110px, transparent 112px), linear-gradient(rgba(255,255,255,.35),rgba(255,255,255,.35)); }
.route-map > svg { position: absolute; z-index: 0; top: 28px; left: 14%; width: 72%; height: var(--route-height); overflow: visible; }.route-map > svg path { fill: none; stroke: #8d928e; stroke-width: 1.4; stroke-dasharray: 2.5 2.5; stroke-linecap: round; vector-effect: non-scaling-stroke; }.route-traveler { fill: var(--route-accent); stroke: var(--ink); stroke-width: 2px; vector-effect: non-scaling-stroke; filter: drop-shadow(0 4px 2px rgba(23,32,51,.2)); }
.route-steps { position: relative; z-index: 2; height: calc(var(--route-height) - 50px); padding: 0; margin: 0; display: grid; grid-auto-rows: 165px; list-style: none; }
.route-step { width: 55%; }.route-step.step-left { justify-self: start; padding-right: 70px; text-align: right; }.route-step.step-right { justify-self: end; padding-left: 70px; text-align: left; }.route-step > a, .route-step > div { display: flex; align-items: center; gap: 20px; color: var(--ink); text-decoration: none; }.route-step.step-left > a, .route-step.step-left > div { flex-direction: row-reverse; }
.route-node { position: relative; width: 68px; height: 68px; display: grid; flex: 0 0 68px; place-items: center; background: var(--route-accent); border: 3px solid var(--ink); border-radius: 50%; box-shadow: 5px 6px 0 rgba(23,32,51,.25); transition: transform .22s cubic-bezier(.16,1,.3,1); }.route-node b { font-family: ui-monospace, monospace; font-size: .76rem; }.route-node i { position: absolute; inset: -9px; border: 2px dashed color-mix(in srgb, var(--route-accent) 75%, var(--ink)); border-radius: 50%; opacity: 0; animation: route-orbit 7s linear infinite; }.route-step a:hover .route-node { transform: translateY(-5px) scale(1.08); }.route-step a:hover .route-node i { opacity: 1; }
.route-copy { min-width: 0; display: block; }.route-copy > small, .route-copy > strong, .route-copy > em, .node-stars { display: block; }.route-copy > small { color: #6b7180; font-family: ui-monospace, monospace; font-size: .54rem; font-weight: 900; letter-spacing: .05em; text-transform: uppercase; }.route-copy > strong { margin: 3px 0; font-size: 1rem; }.route-copy > em { color: #586171; font-size: .65rem; font-style: normal; line-height: 1.35; }.node-stars { margin-top: 5px; color: #8b6e00; font-size: .75rem; letter-spacing: .05em; }.route-copy mark { display: inline-block; padding: 2px 7px; margin-top: 5px; color: #51478e; background: #e8e4ff; border-radius: 999px; font-size: .52rem; font-weight: 900; }
.route-step.is-complete .route-node { color: #fff; background: #23835f; }.route-step.is-complete .route-node::after { position: absolute; right: -6px; bottom: -4px; width: 22px; height: 22px; display: grid; place-items: center; content: ""; color: var(--ink); background: var(--yellow); border: 2px solid var(--ink); border-radius: 50%; font-size: .5rem; }.route-step.is-locked { opacity: .68; }.route-step.is-locked .route-node { color: #767c85; background: #d4d2cc; box-shadow: none; }.route-step.is-locked .route-node::before { position: absolute; content: ""; inset: 0; background: repeating-linear-gradient(135deg, transparent 0 8px, rgba(23,32,51,.06) 9px 11px); border-radius: inherit; }
.route-chest { position: absolute; z-index: 3; right: 50%; bottom: 28px; width: min(680px, calc(100% - 40px)); padding: 18px 22px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px; background: #fffefa; border: 2px solid var(--ink); border-radius: 16px; box-shadow: 7px 8px 0 var(--route-accent); transform: translateX(50%); }.chest-art { position: relative; width: 70px; height: 56px; display: grid; place-items: center; background: #9b6634; border: 3px solid var(--ink); border-radius: 8px 8px 14px 14px; }.chest-art i { position: absolute; top: -16px; width: 60px; height: 25px; background: #c88b45; border: 3px solid var(--ink); border-radius: 22px 22px 3px 3px; }.chest-art span { position: relative; z-index: 2; width: 23px; height: 23px; display: grid; place-items: center; background: var(--yellow); border: 2px solid var(--ink); border-radius: 50%; font-size: .52rem; }.route-chest small, .route-chest strong { display: block; }.route-chest small { color: #7667df; font-size: .55rem; font-weight: 950; letter-spacing: .12em; }.route-chest strong { font-size: .9rem; }.route-chest p { margin: 2px 0 0; color: #687184; font-size: .62rem; }.route-chest .button { min-height: 42px; padding-inline: 16px; font-size: .68rem; }.route-chest > a { font-size: .62rem; font-weight: 900; }.route-chest.is-ready { animation: chest-ready 1.8s ease-in-out infinite; }.route-chest.is-open .chest-art i { transform: translateY(-11px) rotate(-10deg); }
.route-guides { background: #fffefa; border-top: 2px solid var(--ink); }.route-guides summary { padding: 17px 24px; display: flex; justify-content: space-between; cursor: pointer; font-size: .7rem; font-weight: 900; }.route-guides summary span { color: #4a5365; font-size: .55rem; font-weight: 600; }.route-guides > div { padding: 0 24px 20px; display: grid; grid-template-columns: repeat(2,1fr); gap: 0 25px; }.route-guides a { padding: 10px 0; display: flex; justify-content: space-between; border-top: 1px solid var(--line); font-size: .64rem; font-weight: 750; text-decoration: none; }
@keyframes route-orbit { to { transform: rotate(360deg); } }@keyframes chest-ready { 50% { transform: translateX(50%) translateY(-5px); box-shadow: 7px 13px 0 var(--route-accent); } }

@media (max-width: 760px) {
    .journey-intro::after { display: none; }.route-filter { margin-inline: 0; }
    .route-header { padding: 22px 18px; grid-template-columns: auto 1fr; }.route-emblem { width: 54px; height: 54px; border-radius: 16px; }.route-header h2 { font-size: 1.55rem; }.route-status { grid-column: 1 / -1; padding: 12px 0 0; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid rgba(23,32,51,.2); border-left: 0; text-align: left; }.route-status strong { font-size: 1.25rem; }
    .route-map { padding-inline: 16px; }.route-map > svg { left: 7%; width: 86%; opacity: .65; }.route-step { width: 100%; }.route-step.step-left, .route-step.step-right { padding: 0 4px; text-align: left; }.route-step.step-left > a, .route-step.step-left > div { flex-direction: row; }.route-node { width: 57px; height: 57px; flex-basis: 57px; }.route-copy > em { display: none; }
    .route-chest { padding: 16px; grid-template-columns: auto 1fr; }.route-chest .button, .route-chest > a { grid-column: 1/-1; }.route-alert { align-items: flex-start; flex-wrap: wrap; }.route-alert a { width: 100%; margin-left: 42px; }
    .route-guides summary span { display: none; }.route-guides > div { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) { .route-traveler { display: none; }.route-node i, .route-chest.is-ready { animation: none; } }

/* Offre Illimité — prête à brancher, achat désactivé par défaut */
.premium-main { max-width: 1200px; }.premium-hero { min-height: 420px; display: grid; grid-template-columns: 1fr 330px; align-items: center; gap: 60px; }.premium-hero h1 { margin-bottom: 20px; }.premium-hero > div > p:last-child { max-width: 700px; color: var(--ink-soft); font-size: 1rem; }.premium-orbit { position: relative; width: 280px; height: 280px; display: grid; place-content: center; justify-items: center; background: var(--ink); border: 3px solid var(--ink); border-radius: 50%; box-shadow: 11px 11px 0 var(--violet); }.premium-orbit i { position: absolute; inset: 22px; border: 2px dashed var(--yellow); border-radius: 50%; animation: orbit-spin 12s linear infinite; }.premium-orbit i:nth-child(2) { inset: 48px; border-color: var(--mint); animation-direction: reverse; animation-duration: 7s; }.premium-orbit img { width: 58px; height: 58px; margin-bottom: 4px; object-fit: contain; animation: premium-tool-float 2.8s ease-in-out infinite; }.premium-orbit b { color: #fff; font-size: 4rem; line-height: 1; }.premium-orbit small { color: #b9c2d2; font-size: .62rem; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; }
.premium-comparison { margin: 35px 0 55px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; align-items: stretch; }.premium-comparison article { padding: 32px; display: flex; flex-direction: column; background: #fff; border: 2px solid var(--ink); border-radius: 18px; }.premium-comparison article > p { margin: 0; color: #6b5fc3; font-size: .62rem; font-weight: 950; letter-spacing: .15em; }.premium-comparison h2 { margin: 8px 0 5px; font-size: 2.2rem; }.premium-comparison article > strong { display: block; font-size: 2rem; }.premium-comparison article > strong small { color: #4a5365; font-size: .7rem; }
/* La carte Illimite est sur fond sombre : le gris assombri pour les fonds
   clairs y tomberait a 2,1:1. On l'eclaircit specifiquement (5,27:1). */
.premium-comparison .premium-plan > strong small { color: #8a93a6; }.premium-comparison ul { padding: 22px 0 15px; margin: 20px 0; flex: 1; border-top: 1px solid var(--line); list-style: none; }.premium-comparison li { padding: 8px 0; color: var(--ink-soft); font-size: .78rem; }.premium-comparison li::before { margin-right: 9px; content: ""; color: #187c5b; font-weight: 950; }.plus-plan { background: #fff8d6 !important; box-shadow: 8px 8px 0 var(--yellow); }.plus-plan .button, .free-plan .button, .premium-plan .button { width: 100%; margin-top: 12px; }.premium-plan { color: #fff; background: var(--ink) !important; box-shadow: 10px 10px 0 var(--violet); transform: translateY(-12px); }.premium-plan h2, .premium-plan > strong { color: #fff; }.premium-plan li { color: #c7cfdb; }.premium-plan ul { border-color: #3c485c; }.plan-waiting, .plan-active { display: block; padding: 12px; margin-top: 15px; color: #453a79; background: #eeebff; border-radius: 8px; font-size: .65rem; font-weight: 800; }.plan-active { color: #0f6246; background: #daf6e8; }.premium-note { padding: 30px; margin-bottom: 50px; display: grid; grid-template-columns: auto 1fr; gap: 20px; background: #fff5c9; border: 2px solid var(--ink); border-radius: 14px; box-shadow: 7px 7px 0 var(--yellow); }.premium-note p { margin: 0; color: var(--ink-soft); }
@media (max-width: 980px) { .premium-comparison { grid-template-columns: 1fr; }.premium-plan { transform: none; } }
@media (max-width: 760px) { .premium-hero { grid-template-columns: 1fr; }.premium-orbit { width: 220px; height: 220px; margin-inline: auto; }.premium-note { grid-template-columns: 1fr; } }

/* Accueil : les sept parcours proviennent du catalogue, sans nœud décoratif inventé. */
.home-world { min-height: 650px; display: grid; grid-template-columns: minmax(360px,.78fr) minmax(570px,1.22fr); overflow: hidden; background: #fffefa; border: 3px solid var(--ink); border-radius: 24px; box-shadow: 12px 14px 0 var(--mint); }
.home-world nav { padding: 18px; display: grid; align-content: center; background: #f1eee5; border-right: 2px solid var(--ink); }
.home-world nav a { min-height: 68px; padding: 12px; display: grid; grid-template-columns: 34px minmax(0,1fr) auto 20px; align-items: center; gap: 9px; color: var(--ink); text-decoration: none; border-bottom: 1px solid #d4d0c6; transition: padding .18s ease, background .18s ease; }
.home-world nav a:hover, .home-world nav a:focus-visible { padding-left: 18px; background: #fffefa; }
.home-world nav a > span { color: #6657c9; font-family: ui-monospace, monospace; font-size: .66rem; font-weight: 950; }
.home-world nav b { font-size: .82rem; }
.home-world nav small { color: var(--text-muted); font-size: .66rem; white-space: nowrap; }
.home-world nav i { font-style: normal; }
.home-route-map { position: relative; min-height: 650px; overflow: hidden; background: radial-gradient(circle at 18% 18%, rgba(248,211,79,.23), transparent 24%), radial-gradient(circle at 81% 70%, rgba(118,103,223,.14), transparent 30%), #dff8ef; }
.home-route-map > svg { position: absolute; z-index: 0; inset: 0; width: 100%; height: 100%; overflow: visible; }
.home-route-map > svg path { fill: none; stroke: var(--ink); stroke-width: 3; stroke-dasharray: 8 11; stroke-linecap: round; opacity: .45; vector-effect: non-scaling-stroke; }
.home-map-courses { position: absolute; z-index: 1; inset: 0; padding: 0; margin: 0; list-style: none; }
.home-map-course { --world-color: var(--coral); width: min(280px,46%); position: absolute; }
.home-map-course:nth-child(1) { top: 20px; left: 25px; }
.home-map-course:nth-child(2) { top: 105px; right: 25px; }
.home-map-course:nth-child(3) { top: 190px; left: 44px; }
.home-map-course:nth-child(4) { top: 275px; right: 30px; }
.home-map-course:nth-child(5) { top: 360px; left: 44px; }
.home-map-course:nth-child(6) { top: 445px; right: 31px; }
.home-map-course:nth-child(7) { top: 530px; left: 88px; }
.home-map-course > a { min-height: 72px; padding: 7px 10px 7px 7px; display: grid; grid-template-columns: 58px minmax(0,1fr); align-items: center; gap: 10px; color: var(--ink); background: rgba(255,254,250,.96); border: 2px solid var(--ink); border-radius: 14px; box-shadow: 4px 5px 0 color-mix(in srgb,var(--world-color) 74%,var(--ink)); text-decoration: none; transition: transform .18s ease, box-shadow .18s ease; }
.home-map-course > a:hover, .home-map-course > a:focus-visible { transform: translateY(-3px); box-shadow: 5px 8px 0 color-mix(in srgb,var(--world-color) 74%,var(--ink)); }
.home-map-course.world-yellow { --world-color: var(--yellow); }.home-map-course.world-violet { --world-color: var(--violet); }.home-map-course.world-blue { --world-color: #75b8ef; }.home-map-course.world-mint { --world-color: var(--mint); }.home-map-course.world-coral { --world-color: var(--coral); }
.home-map-thumb { width: 58px; height: 54px; position: relative; display: grid; place-items: center; overflow: hidden; background: var(--world-scene) center / cover no-repeat; border: 2px solid var(--ink); border-radius: 10px; }
.home-map-thumb::after { position: absolute; inset: 0; content: ""; background: linear-gradient(rgba(23,32,51,.06),rgba(23,32,51,.33)); }
.home-map-thumb b { z-index: 1; min-width: 32px; min-height: 28px; padding: 4px; display: grid; place-items: center; color: #fff; background: var(--ink); border: 1px solid #fff; border-radius: 8px; font-family: ui-monospace, monospace; font-size: .66rem; }
.home-map-thumb i { z-index: 2; right: 3px; bottom: 3px; min-width: 18px; height: 18px; padding: 0 4px; position: absolute; display: grid; place-items: center; color: var(--ink); background: var(--world-color); border: 1px solid var(--ink); border-radius: 999px; font-family: ui-monospace, monospace; font-size: .58rem; font-style: normal; font-weight: 950; }
.home-map-copy { min-width: 0; display: grid; }
.home-map-copy small { overflow: hidden; color: #5c51aa; font-family: ui-monospace, monospace; font-size: .66rem; font-weight: 950; letter-spacing: .035em; text-overflow: ellipsis; white-space: nowrap; }
.home-map-copy strong { overflow: hidden; font-size: .76rem; text-overflow: ellipsis; white-space: nowrap; }
.home-map-copy em { overflow: hidden; color: var(--text-muted); font-size: .66rem; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }
.home-map-destination { position: absolute; z-index: 2; right: 20px; bottom: 11px; display: flex; align-items: center; gap: 9px; }
.home-map-destination img { filter: drop-shadow(4px 4px 0 rgba(23,32,51,.12)); animation: coach-float 2.5s ease-in-out infinite; }
.home-map-destination strong { max-width: 190px; font-size: .7rem; line-height: 1.3; }
.stats-grid { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }.stat-stars { background: #fff8d6 !important; box-shadow: 4px 4px 0 var(--yellow); }.stat-stars strong { color: #735c00; }
@media (max-width: 960px) { .home-world { grid-template-columns: 1fr; }.home-world nav { border-right: 0; border-bottom: 2px solid var(--ink); }.home-world nav a { grid-template-columns: 28px minmax(0,1fr) auto 20px; } }
@media (max-width: 620px) {
    .home-world { min-height: 0; border-radius: 19px; box-shadow: 7px 9px 0 var(--mint); }
    .home-world nav { padding: 12px; }.home-world nav a { min-height: 62px; grid-template-columns: 27px minmax(0,1fr) 20px; }.home-world nav a small { grid-column: 2; margin-top: -7px; white-space: normal; }.home-world nav a i { grid-column: 3; grid-row: 1 / 3; }
    .home-route-map { min-height: 770px; }.home-route-map > svg { display: none; }
    .home-map-courses { padding: 18px; display: grid; gap: 12px; align-content: start; }
    .home-map-course { width: min(285px,88%); position: static; }.home-map-course:nth-child(even) { justify-self: end; }.home-map-course:nth-child(odd) { justify-self: start; }
    .home-map-course > a { min-height: 76px; }.home-map-destination { right: 17px; bottom: 12px; }.home-map-destination img { width: 72px; height: 72px; }.home-map-destination strong { max-width: 170px; font-size: .66rem; }
}
@media (prefers-reduced-motion: reduce) { .home-map-destination img { animation: none; } }

/* Pages publiques de leçon pour comprendre avant d’ouvrir l’atelier */
.lesson-main { max-width: 1200px; }.lesson-public-hero { min-height: 560px; display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 80px; }.lesson-public-hero h1 { margin-bottom: 22px; }.lesson-public-hero > div:first-child > p:not(.eyebrow) { max-width: 700px; color: var(--ink-soft); font-size: 1rem; }.lesson-public-meta { margin: 24px 0; display: flex; gap: 8px; flex-wrap: wrap; }.lesson-public-meta span { padding: 5px 10px; color: #555f70; background: #fff; border: 1px solid var(--line); border-radius: 999px; font-size: .6rem; font-weight: 850; }
.lesson-file-stack { position: relative; min-height: 360px; display: grid; place-items: center; }.lesson-file-stack > span { position: absolute; width: min(340px,90%); min-height: 165px; padding: 22px; display: grid; grid-template-columns: 42px 1fr; align-content: center; gap: 2px 12px; background: #fff; border: 2px solid var(--ink); border-radius: 14px; box-shadow: 8px 9px 0 var(--ink); transform: translate(calc((var(--file-index) - 1) * 28px), calc((var(--file-index) - 1) * 42px)) rotate(calc((var(--file-index) - 1) * 3deg)); }.lesson-file-stack > span:first-child { z-index: 3; background: #fff6c6; }.lesson-file-stack i { grid-row: 1/3; display: grid; width: 42px; height: 42px; place-items: center; color: #fff; background: var(--violet); border-radius: 10px; font-style: normal; }.lesson-file-stack b { align-self: end; font-family: ui-monospace, monospace; font-size: .8rem; }.lesson-file-stack small { color: #707786; font-size: .58rem; }
.lesson-outcomes { padding: 55px 0; display: grid; grid-template-columns: .8fr 1.2fr; gap: 70px; border-block: 1px solid var(--line); }.lesson-outcomes h2 { margin: 0; font-size: 2.4rem; }.lesson-outcomes ol { padding: 0; margin: 0; display: grid; gap: 8px; list-style: none; }.lesson-outcomes li { padding: 15px; display: flex; align-items: center; gap: 13px; background: #fff; border-bottom: 1px solid var(--line); font-weight: 800; }.lesson-outcomes li span { width: 30px; height: 30px; display: grid; place-items: center; color: #fff; background: #21835e; border-radius: 50%; font-size: .6rem; }.lesson-process { max-width: 850px; padding: 85px 0; }.lesson-process h2 { font-size: 3.2rem; }.lesson-process > p:not(.eyebrow) { color: var(--ink-soft); }.lesson-process > a { font-weight: 900; text-underline-offset: 5px; }
@media (max-width: 760px) { .lesson-public-hero { grid-template-columns: 1fr; gap: 20px; }.lesson-file-stack { min-height: 300px; }.lesson-outcomes { grid-template-columns: 1fr; gap: 25px; }.lesson-process h2 { font-size: 2.4rem; } }

/* Atelier v6 — IDE permanent et boîte à outils pédagogique latérale */
.workshop { padding-bottom: 0; }
.editor-panel { height: 100%; }
.editor-toolbar-actions { height: 100%; display: flex; align-items: center; gap: 8px; }
.editor-toolbar-actions .run-button { margin-right: 0; }
.toolbar-check { min-height: 34px; padding: 7px 13px; margin-right: 12px; color: #102c23; background: var(--mint); border: 1px solid #9de5c9; border-radius: 6px; font-size: .66rem; font-weight: 900; cursor: pointer; transition: transform .16s ease, box-shadow .16s ease; }
.toolbar-check:hover { transform: translateY(-2px); box-shadow: 0 4px 0 #1d6f55; }
.learning-toolbox { position: absolute; z-index: 105; top: 50%; left: 12px; width: 76px; height: 92px; pointer-events: none; transform: translateY(-50%); }
.toolbox-trigger { position: absolute; z-index: 3; inset: 0; width: 76px; height: 92px; padding: 9px 6px 7px; display: grid; place-items: center; align-content: center; gap: 5px; color: #fff; background: rgba(18,26,40,.96); border: 1px solid #5a6577; border-radius: 15px; box-shadow: 7px 9px 0 rgba(0,0,0,.3); cursor: pointer; pointer-events: auto; transition: transform .35s cubic-bezier(.16,1,.3,1), box-shadow .25s ease, filter .25s ease; }
.toolbox-trigger:hover { transform: translateX(4px) rotate(-1deg); box-shadow: 4px 7px 0 rgba(0,0,0,.34); }
.toolbox-case { position: relative; width: 48px; height: 35px; display: block; background: var(--coral); border: 2px solid #f8b09f; border-radius: 5px 5px 9px 9px; box-shadow: inset 0 -9px 0 #d64d3c, 0 3px 0 #070c18; }
.toolbox-case::before { position: absolute; top: -11px; left: 12px; width: 20px; height: 10px; content: ""; border: 3px solid var(--yellow); border-bottom: 0; border-radius: 8px 8px 0 0; }
.toolbox-case::after { position: absolute; top: 12px; left: 0; width: 100%; content: ""; border-top: 2px solid #172033; }
.toolbox-case i, .toolbox-case b { position: absolute; z-index: 2; top: 9px; width: 6px; height: 6px; background: var(--yellow); border: 1px solid #172033; border-radius: 2px; }
.toolbox-case i { left: 8px; }.toolbox-case b { right: 8px; }.toolbox-case em { position: absolute; z-index: 2; right: 50%; bottom: 4px; width: 10px; height: 8px; background: var(--mint); border: 1px solid #172033; border-radius: 2px; transform: translateX(50%); }
.toolbox-trigger-copy strong { display: none; }.toolbox-trigger-copy small { display: block; color: #e8edf5; font-size: .48rem; font-weight: 900; letter-spacing: .07em; text-transform: uppercase; }
.toolbox-chevron { position: absolute; right: -7px; width: 18px; height: 25px; display: grid; place-items: center; color: var(--ink); background: var(--yellow); border: 2px solid var(--ink); border-radius: 0 8px 8px 0; font-size: 1rem; font-weight: 950; transition: transform .35s ease; }
.learning-toolbox.is-open .toolbox-trigger { transform: translateX(-2px); }.learning-toolbox.is-open .toolbox-chevron { transform: rotate(180deg); }
.learning-toolbox.needs-help .toolbox-trigger { animation: toolbox-help 1s ease-in-out 2; }.learning-toolbox.has-new-page .toolbox-case { animation: toolbox-page-ready 1.1s ease-in-out infinite; }
.learning-toolbox.has-new-page .toolbox-trigger::after { position: absolute; top: -8px; right: -8px; width: 25px; height: 25px; display: grid; place-items: center; content: "+1"; color: var(--ink); background: var(--yellow); border: 2px solid var(--ink); border-radius: 50%; font-size: .48rem; font-weight: 950; }
.toolbox-drawer { position: absolute; z-index: 2; top: 50%; left: 88px; width: min(470px, calc(100vw - 125px)); height: min(760px, calc(100vh - 105px)); display: flex; flex-direction: column; overflow: hidden; color: var(--ink); background: rgba(248,245,236,.985); border: 2px solid var(--ink); border-radius: 20px; box-shadow: 14px 17px 0 rgba(0,0,0,.35); opacity: 0; pointer-events: none; transform: translate(-35px,-50%) scale(.94); transform-origin: left center; transition: opacity .22s ease, transform .4s cubic-bezier(.16,1,.3,1); }
.learning-toolbox.is-open .toolbox-drawer { opacity: 1; pointer-events: auto; transform: translate(0,-50%) scale(1); }
.toolbox-heading { min-height: 68px; padding: 14px 16px 12px 20px; display: flex; align-items: center; justify-content: space-between; color: #fff; background: #172033; border-bottom: 1px solid #3f4a60; }
.toolbox-heading p { margin: 0 0 2px; color: var(--yellow); font-family: ui-monospace, monospace; font-size: .5rem; font-weight: 950; letter-spacing: .14em; }.toolbox-heading strong { font-size: 1rem; }
.toolbox-close { width: 35px; height: 35px; display: grid; place-items: center; color: #fff; background: #2a354a; border: 1px solid #667188; border-radius: 50%; cursor: pointer; font-size: 1rem; }
.toolbox-tabs { min-height: 74px; padding: 8px 10px; display: grid; grid-template-columns: repeat(4,1fr); gap: 5px; background: #e8e3d8; border-bottom: 1px solid #c7c1b5; }
.toolbox-tabs button { position: relative; min-width: 0; padding: 6px 3px; display: grid; place-items: center; gap: 3px; color: #5e6675; background: transparent; border: 1px solid transparent; border-radius: 10px; cursor: pointer; opacity: 0; transform: translateY(-10px); }
.learning-toolbox.is-open .toolbox-tabs button { animation: toolbox-tab-in .38s cubic-bezier(.16,1,.3,1) forwards; }.learning-toolbox.is-open .toolbox-tabs button:nth-child(2) { animation-delay: .05s; }.learning-toolbox.is-open .toolbox-tabs button:nth-child(3) { animation-delay: .1s; }.learning-toolbox.is-open .toolbox-tabs button:nth-child(4) { animation-delay: .15s; }
.toolbox-tabs button > span { width: 31px; height: 31px; display: grid; place-items: center; color: var(--ink); background: #fff; border: 1px solid #bbb6ac; border-radius: 9px; font-family: ui-monospace, monospace; font-size: .65rem; font-weight: 950; }.toolbox-tabs button b { max-width: 100%; overflow: hidden; font-size: .52rem; text-overflow: ellipsis; white-space: nowrap; }
.toolbox-tabs button i { position: absolute; top: 2px; right: calc(50% - 25px); min-width: 17px; height: 17px; padding: 0 3px; display: grid; place-items: center; color: #fff; background: #6556c6; border: 1px solid #fff; border-radius: 20px; font-size: .42rem; font-style: normal; font-weight: 950; }
.toolbox-tabs button.active { color: var(--ink); background: #fffefa; border-color: #9f9a91; box-shadow: 2px 3px 0 rgba(23,32,51,.12); }.toolbox-tabs button.active > span { background: var(--yellow); border-color: var(--ink); }
.toolbox-pages { min-height: 0; flex: 1; overflow: hidden; }.tool-page { width: 100%; height: 100%; padding: 24px 26px 34px; overflow-y: auto; background: var(--paper); }.tool-page[hidden] { display: none !important; }.tool-page.active { animation: toolbox-page-in .28s ease both; }
.toolbox-drawer .mission-panel { position: static; width: 100%; height: 100%; padding: 24px 26px 34px; overflow-y: auto; background: var(--paper); border: 0; }.toolbox-drawer .mission-panel h1 { font-size: 2.15rem; }
.tool-page-kicker { margin: 0 0 6px !important; color: #6555c5 !important; font-family: ui-monospace, monospace; font-size: .56rem !important; font-weight: 950; letter-spacing: .15em; }.guide-page h2, .tips-page h2, .dictionary-page h2 { margin: 0 0 10px; font-size: 1.8rem; }.guide-page > p:not(.tool-page-kicker), .tips-page > p:not(.tool-page-kicker), .dictionary-heading p { color: var(--ink-soft); font-size: .72rem; }
.guide-files { padding-top: 28px; margin-top: 30px; border-top: 2px dashed #c7c2b8; }.guide-files h3 { margin: 0 0 5px; }.guide-files > p:not(.tool-page-kicker) { color: var(--ink-soft); font-size: .7rem; }
.tips-current-step { padding: 13px 15px; margin: 22px 0 16px; background: #fff; border: 1px solid #c9c4ba; border-radius: 10px; }.tips-current-step span, .tips-current-step strong { display: block; }.tips-current-step span { color: #7164c9; font-size: .5rem; font-weight: 950; letter-spacing: .1em; text-transform: uppercase; }.tips-current-step strong { margin-top: 4px; font-size: .82rem; }
.tips-page .help-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }.tips-page .hint-toggle, .tips-page .example-toggle, .tips-page .autocomplete-toggle { min-height: 58px; }.tips-page .hint, .tips-page .example-hint { padding: 15px; margin-top: 12px; font-size: .72rem; line-height: 1.55; }
.tips-note { padding: 14px; margin-top: 22px; display: grid; grid-template-columns: 32px 1fr; gap: 10px; background: #e6faf2; border: 1px solid #8ccbb3; border-radius: 10px; }.tips-note > span { width: 30px; height: 30px; display: grid; place-items: center; background: var(--mint); border: 1px solid var(--ink); border-radius: 50%; }.tips-note p { margin: 0; color: #395a50; font-size: .66rem; }
.dictionary-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }.dictionary-heading h2 { margin-bottom: 4px; }.dictionary-heading p { margin: 0; }.dictionary-heading > span { width: 48px; height: 48px; display: grid; flex: 0 0 48px; place-items: center; background: var(--yellow); border: 2px solid var(--ink); border-radius: 50%; box-shadow: 3px 3px 0 var(--ink); font-family: ui-monospace, monospace; font-size: .85rem; font-weight: 950; }
.dictionary-book { position: relative; min-height: 365px; margin-top: 20px; background: #fffdf4; border: 2px solid var(--ink); border-radius: 8px 16px 16px 8px; box-shadow: inset 15px 0 0 #f0ead9, 7px 8px 0 rgba(23,32,51,.16); }.dictionary-book::before { position: absolute; z-index: 2; top: 0; bottom: 0; left: 15px; content: ""; border-left: 1px solid #d5c8b1; }.dictionary-book::after { position: absolute; top: 12px; right: -8px; bottom: 12px; width: 7px; content: ""; background: repeating-linear-gradient(to bottom,#e6dfce 0 3px,#fff 3px 5px); border: 1px solid #aaa397; border-left: 0; border-radius: 0 5px 5px 0; }
.dictionary-empty { min-height: 365px; padding: 42px 36px; display: grid; place-items: center; align-content: center; text-align: center; }.dictionary-empty[hidden] { display: none; }.dictionary-empty > span { width: 58px; height: 58px; display: grid; place-items: center; color: #7a6acb; background: #ede9ff; border-radius: 50%; font-size: 1.4rem; }.dictionary-empty strong { margin-top: 14px; }.dictionary-empty p { max-width: 280px; margin: 6px 0 0; color: var(--ink-soft); font-size: .67rem; }
.dictionary-sheet { min-height: 365px; padding: 24px 24px 30px 39px; }.dictionary-sheet[hidden] { display: none; }.dictionary-sheet > header { padding-bottom: 14px; border-bottom: 1px solid #d9d1c2; }.dictionary-sheet > header span { color: #6556c6; font-family: ui-monospace, monospace; font-size: .5rem; font-weight: 950; letter-spacing: .11em; }.dictionary-sheet h3 { margin: 4px 0; font-size: 1.28rem; }.dictionary-sheet > header p { margin: 0; color: var(--ink-soft); font-size: .65rem; }
.dictionary-terms { margin-top: 13px; display: grid; gap: 8px; }.dictionary-terms section { padding: 9px 10px; background: rgba(255,255,255,.75); border-left: 3px solid var(--mint); }.dictionary-terms strong { font-size: .67rem; }.dictionary-terms p { margin: 3px 0 0; color: #626a77; font-size: .58rem; line-height: 1.45; }
.dictionary-syntax { padding-top: 13px; margin-top: 13px; display: flex; flex-wrap: wrap; gap: 5px; border-top: 1px dashed #cfc6b6; }.dictionary-syntax > strong { width: 100%; font-size: .6rem; }.dictionary-syntax code { padding: 4px 6px; color: #8a3040; background: #f6e5e8; border-radius: 4px; font-family: ui-monospace, monospace; font-size: .54rem; }
.dictionary-pagination { margin-top: 17px; display: flex; align-items: center; justify-content: space-between; }.dictionary-pagination[hidden] { display: none; }.dictionary-pagination button { width: 44px; height: 44px; color: #fff; background: var(--ink); border: 0; border-radius: 8px; cursor: pointer; }.dictionary-pagination button:disabled { cursor: not-allowed; opacity: .3; }.dictionary-pagination span { color: #666f7e; font-size: .6rem; font-weight: 850; }
.dictionary-unlock-toast { position: absolute; z-index: 5; top: -65px; left: 88px; width: 235px; padding: 10px 13px; display: flex; align-items: center; gap: 10px; color: var(--ink); background: var(--yellow); border: 2px solid var(--ink); border-radius: 12px; box-shadow: 5px 6px 0 rgba(0,0,0,.28); animation: dictionary-toast .5s cubic-bezier(.16,1,.3,1); }.dictionary-unlock-toast[hidden] { display: none; }.dictionary-unlock-toast span { width: 31px; height: 31px; display: grid; place-items: center; color: #fff; background: #6556c6; border-radius: 50%; font-size: .55rem; font-weight: 950; }.dictionary-unlock-toast strong { font-size: .68rem; }
body[data-tour-target="ide"] .editor-panel, body[data-tour-target="preview"] .preview-toolbar { animation: guided-pulse 1.2s ease-in-out infinite; } body[data-tour-target="toolbox"] .toolbox-trigger, body[data-tour-target="mission"] [data-tool-page="mission"], body[data-tour-target="tips"] [data-tool-page="tips"], body[data-tour-target="dictionary"] [data-tool-page="dictionary"] { animation: guided-pulse 1.2s ease-in-out infinite !important; opacity: 1; }
@keyframes toolbox-tab-in { to { opacity: 1; transform: translateY(0); } } @keyframes toolbox-page-in { from { opacity: 0; transform: translateX(12px); } } @keyframes toolbox-help { 50% { transform: translateX(6px) rotate(-2deg); filter: brightness(1.2); } } @keyframes toolbox-page-ready { 50% { transform: translateY(-4px) rotate(2deg); filter: drop-shadow(0 0 7px rgba(248,211,79,.8)); } } @keyframes dictionary-toast { from { opacity: 0; transform: translateY(14px) scale(.8); } }
@keyframes autocomplete-scan { to { background-position: -220% 0; } }
.dictionary-sheet.page-turn { animation: dictionary-page-turn .42s cubic-bezier(.16,1,.3,1); transform-origin: left center; } @keyframes dictionary-page-turn { from { opacity: .3; transform: perspective(700px) rotateY(-11deg) translateX(8px); } }
@media (max-width: 900px) {
    .workshop { padding-bottom: 0; }.editor-toolbar-actions { gap: 4px; }.toolbar-check, .editor-toolbar-actions .run-button { padding-inline: 9px; margin-right: 5px; font-size: .56rem; }
    .learning-toolbox { position: fixed; top: 0; left: 0; width: 0; height: 0; transform: none; }.toolbox-trigger { position: fixed; top: 50%; left: 6px; width: 65px; height: 82px; transform: translateY(-50%); }.toolbox-trigger:hover { transform: translate(3px,-50%); }.toolbox-case { width: 42px; height: 31px; }.toolbox-case::before { left: 10px; width: 18px; }
    .toolbox-drawer { position: fixed; top: 72px; right: 8px; bottom: 8px; left: 8px; width: auto; height: auto; max-height: none; transform: translateY(25px) scale(.97); transform-origin: center bottom; }.learning-toolbox.is-open .toolbox-drawer { transform: translateY(0) scale(1); }.learning-toolbox.is-open .toolbox-trigger { opacity: 0; pointer-events: none; }
    .toolbox-tabs { min-height: 67px; }.toolbox-tabs button > span { width: 28px; height: 28px; }.tool-page, .toolbox-drawer .mission-panel { padding: 20px 18px 28px; }.dictionary-unlock-toast { position: fixed; top: 76px; left: 50%; transform: translateX(-50%); }
}
@media (max-width: 520px) { .compact-file-tabs button { padding-inline: 10px; font-size: .58rem; }.compact-file-tabs button .dot { display: none; }.editor-toolbar-actions .run-button { display: none; }.toolbar-check { min-width: 78px; }.toolbox-heading { min-height: 58px; }.toolbox-tabs { padding-inline: 6px; gap: 2px; }.toolbox-tabs button b { font-size: .47rem; }.tips-page .help-actions { grid-template-columns: 1fr; }.dictionary-book, .dictionary-empty, .dictionary-sheet { min-height: 320px; } }
@media (prefers-reduced-motion: reduce) { .toolbox-trigger, .toolbox-drawer, .toolbox-tabs button, .tool-page, .dictionary-sheet, .dictionary-unlock-toast { animation: none !important; transition: none !important; }.learning-toolbox.is-open .toolbox-tabs button { opacity: 1; transform: none; } }

/* Atelier v7 — grandes bandes paysage, dispositions réglables et vrais assets de jeu */
.editor-panel {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: 50px minmax(340px, 1.18fr) 38px minmax(240px, .82fr);
}
.editor-toolbar { grid-column: 1; grid-row: 1; }
.editor-stack { grid-column: 1; grid-row: 2; border-right: 0; border-bottom: 1px solid #3a465a; }
.preview-toolbar { grid-column: 1; grid-row: 3; border-top: 0; }
.preview-frame { grid-column: 1; grid-row: 4; }
.layout-picker { position: relative; height: 100%; display: flex; align-items: center; }
.layout-toggle { min-height: 34px; padding: 6px 10px; margin-right: 11px; display: flex; align-items: center; gap: 7px; color: #e8edf5; background: #273248; border: 1px solid #536079; border-radius: 7px; cursor: pointer; font-size: .61rem; font-weight: 850; }
.layout-toggle:hover, .layout-toggle[aria-expanded="true"] { color: #fff; background: #35425b; border-color: #8591a7; }
.layout-toggle img { width: 18px; height: 18px; filter: invert(96%); }
.layout-menu { position: absolute; z-index: 150; top: calc(100% + 9px); right: 11px; width: 285px; padding: 10px; color: var(--ink); background: #f8f5ec; border: 2px solid var(--ink); border-radius: 13px; box-shadow: 8px 9px 0 rgba(0,0,0,.34); }
.layout-menu[hidden] { display: none; }
.layout-menu::before { position: absolute; top: -8px; right: 20px; width: 13px; height: 13px; content: ""; background: #f8f5ec; border-top: 2px solid var(--ink); border-left: 2px solid var(--ink); transform: rotate(45deg); }
.layout-menu > p { padding: 3px 5px 8px; margin: 0; color: #6c7482; font-family: ui-monospace, monospace; font-size: .5rem; font-weight: 950; letter-spacing: .12em; }
.layout-menu button { width: 100%; min-height: 52px; padding: 7px 8px; display: grid; grid-template-columns: 43px 1fr; grid-template-rows: auto auto; align-items: center; column-gap: 9px; color: var(--ink); background: transparent; border: 1px solid transparent; border-radius: 9px; text-align: left; cursor: pointer; }
.layout-menu button:hover { background: #fff; }
.layout-menu button.active { background: #fff7c9; border-color: #b89c2b; }
.layout-menu button > span { position: relative; grid-row: 1 / 3; width: 39px; height: 34px; display: grid; place-items: center; color: #fff; background: #1c2535; border-radius: 6px; font-family: ui-monospace, monospace; font-size: .55rem; font-weight: 950; letter-spacing: -.12em; }
.layout-menu button:first-of-type > span { grid-template-rows: 1fr 1fr; gap: 2px; padding: 5px; color: var(--mint); }
.layout-menu button:first-of-type > span i { color: #fff; font-style: normal; }
.layout-menu button b { align-self: end; font-size: .68rem; }
.layout-menu button small { align-self: start; color: #6a7280; font-size: .54rem; }
.layout-code-focus .editor-panel { grid-template-rows: 50px minmax(0, 1fr); }
.layout-code-focus .editor-stack { grid-row: 2; border-bottom: 0; }
.layout-code-focus .preview-toolbar, .layout-code-focus .preview-frame { display: none; }
.layout-preview-focus .editor-panel { grid-template-rows: 50px 38px minmax(0, 1fr); }
.layout-preview-focus .editor-tabs, .layout-preview-focus .run-button, .layout-preview-focus .toolbar-check, .layout-preview-focus .editor-stack { display: none; }
.layout-preview-focus .editor-toolbar { justify-content: flex-end; }
.layout-preview-focus .editor-toolbar-actions { margin-left: auto; }
.layout-preview-focus .preview-toolbar { display: flex; grid-column: 1; grid-row: 2; }
.layout-preview-focus .preview-frame { display: block; grid-column: 1; grid-row: 3; }
@media (min-width: 901px) {
    .layout-side-by-side .editor-panel { grid-template-columns: minmax(430px, .95fr) minmax(430px, 1.05fr); grid-template-rows: 50px minmax(0, 1fr); }
    .layout-side-by-side .editor-toolbar { grid-column: 1; grid-row: 1; }
    .layout-side-by-side .editor-stack { grid-column: 1; grid-row: 2; border-right: 1px solid #3a465a; border-bottom: 0; }
    .layout-side-by-side .preview-toolbar { grid-column: 2; grid-row: 1; }
    .layout-side-by-side .preview-frame { grid-column: 2; grid-row: 2; }
}

.learning-toolbox { left: 10px; width: 94px; height: 132px; }
.toolbox-trigger { width: 94px; height: 132px; padding: 7px 5px 9px; gap: 1px; border-radius: 17px; }
.toolbox-case { position: relative; width: 70px; height: 70px; object-fit: contain; background: transparent; border: 0; border-radius: 0; box-shadow: none; filter: drop-shadow(0 4px 1px rgba(0,0,0,.38)); animation: toolbox-idle 3.2s ease-in-out infinite; }
.toolbox-trigger-copy { max-width: 80px; line-height: 1.05; text-align: center; }
.toolbox-trigger-copy strong { display: block; color: #fff; font-size: .48rem; font-weight: 950; letter-spacing: .045em; text-transform: uppercase; }
.toolbox-trigger-copy small { margin-top: 3px; color: #aab4c5; font-size: .39rem; }
.toolbox-chevron { right: -8px; }
.toolbox-drawer { left: 106px; }
.learning-toolbox.has-new-page .toolbox-case { animation: toolbox-page-ready 1.1s ease-in-out infinite; }
.toolbox-tabs button > span img { width: 19px; height: 19px; object-fit: contain; }
.toolbox-tabs button.active > span img { animation: tab-icon-bounce .42s cubic-bezier(.16,1,.3,1); }
.asset-source-note { padding-top: 16px; margin: 22px 0 0 !important; color: var(--text-muted) !important; border-top: 1px dashed #c7c2b8; font-size: .55rem !important; }
body[data-tour-target="layout"] .layout-toggle { animation: guided-pulse 1.2s ease-in-out infinite; }
@keyframes toolbox-idle { 0%,100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-4px) rotate(1deg); } }
@keyframes tab-icon-bounce { 0% { transform: scale(.55) rotate(-12deg); } 70% { transform: scale(1.12) rotate(3deg); } 100% { transform: scale(1); } }

@media (min-width: 1100px) {
    .editor-panel { transition: width .4s cubic-bezier(.16,1,.3,1), margin-left .4s cubic-bezier(.16,1,.3,1); }
    .toolbox-drawer { left: 106px; width: 430px; }
    .workshop.toolbox-open .editor-panel { width: calc(100% - 555px); margin-left: 555px; }
    .workshop.toolbox-open.layout-side-by-side .editor-panel { grid-template-columns: minmax(0, 1fr); grid-template-rows: 50px minmax(340px, 1.18fr) 38px minmax(240px, .82fr); }
    .workshop.toolbox-open.layout-side-by-side .editor-toolbar { grid-column: 1; grid-row: 1; }
    .workshop.toolbox-open.layout-side-by-side .editor-stack { grid-column: 1; grid-row: 2; border-right: 0; border-bottom: 1px solid #3a465a; }
    .workshop.toolbox-open.layout-side-by-side .preview-toolbar { grid-column: 1; grid-row: 3; }
    .workshop.toolbox-open.layout-side-by-side .preview-frame { grid-column: 1; grid-row: 4; }
}

@media (max-width: 900px) {
    .editor-panel { min-height: 900px; grid-template-columns: 1fr; grid-template-rows: 50px 430px 38px 382px; }
    .layout-side-by-side .editor-panel { grid-template-columns: 1fr; grid-template-rows: 50px 430px 38px 382px; }
    .layout-code-focus .editor-panel { min-height: 720px; grid-template-rows: 50px 670px; }
    .layout-preview-focus .editor-panel { min-height: 720px; grid-template-rows: 50px 38px 632px; }
    .learning-toolbox { width: 0; height: 0; }
    .toolbox-trigger { width: 80px; height: 122px; }
    .toolbox-case { width: 61px; height: 61px; }
    .toolbox-trigger-copy strong { font-size: .43rem; }
    .toolbox-drawer { left: 8px; }
}
@media (max-width: 600px) {
    .layout-toggle { width: 36px; padding: 7px; justify-content: center; }
    .layout-toggle > span { display: none; }
    .layout-menu { position: fixed; top: 70px; right: 8px; left: 8px; width: auto; }
    .layout-menu::before { right: 27px; }
    .editor-panel, .layout-side-by-side .editor-panel { min-height: 810px; grid-template-rows: 50px 370px 38px 352px; }
}

@media (prefers-reduced-motion: reduce) {
    .toolbox-case, .toolbox-tabs button.active > span img { animation: none !important; }
}

/* Lisibilité et cibles tactiles de l’atelier */
.course-filter a { min-height: 44px; display: inline-flex; align-items: center; }
.hint-toggle, .example-toggle, .autocomplete-toggle, .reset-button { min-height: 44px; }
.reset-button { display: inline-flex; align-items: center; }
.step-dots button span,
.step-dots button small,
.code-anatomy small,
.hint-toggle small,
.example-toggle small,
.feedback-xp,
.feedback-bits,
.toolbox-trigger-copy strong,
.toolbox-trigger-copy small,
.toolbox-heading p,
.toolbox-tabs button b,
.toolbox-tabs button i,
.tool-page-kicker,
.tips-current-step span,
.dictionary-sheet > header span,
.dictionary-terms p,
.dictionary-syntax code,
.dictionary-unlock-toast span,
.asset-source-note,
.layout-menu > p,
.layout-menu button > span,
.layout-menu button small,
.nova-coach strong,
.trial-badge span,
.week-strip small,
.loop-reward span,
.asset-list button small,
.dock-app small,
.route-status > small,
.route-copy > small,
.route-copy mark,
.route-step.is-complete .route-node::after,
.chest-art span,
.route-chest small,
.route-guides summary span,
.home-world nav a > span,
.home-world nav small,
.lesson-file-stack small,
.learning-toolbox.has-new-page .toolbox-trigger::after,
.toolbar-check,
.editor-toolbar-actions .run-button,
.compact-file-tabs button { font-size: .6rem !important; }
.toolbox-tabs button i { min-width: 20px; height: 20px; }
.asset-source-note { color: var(--text-muted) !important; }
.hint, .example-hint { border-radius: var(--radius-s); }
.course-block, .content-card { border-radius: var(--radius-l); }
.lesson-row.completed .lesson-index,
.step-dots li.done button span,
.feedback-icon,
.lesson-outcomes li span { background: var(--success); }
.step-dots li.done button { color: var(--success-dark); }
.run-button { background: var(--success); }
.hero-proof span,
.premium-comparison li::before { color: var(--success); }
.billing-test-banner { padding: 22px 26px; margin: 0 0 34px; display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: center; color: var(--ink); background: #ffd43b; border: 3px solid var(--ink); border-radius: var(--radius-m); box-shadow: 9px 9px 0 var(--coral); }.billing-test-badge { padding: 13px 15px; color: #fff; background: var(--ink); border: 2px solid var(--ink); border-radius: var(--radius-s); font-size: .72rem; font-weight: 950; letter-spacing: .14em; white-space: nowrap; transform: rotate(-2deg); }.billing-test-banner h2 { margin: 0 0 7px; font-size: clamp(1.15rem, 2.4vw, 1.65rem); }.billing-test-banner p { margin: 4px 0; max-width: 900px; }.billing-test-card { padding-top: 7px; font-size: .72rem; }.billing-test-card code { padding: 3px 6px; background: #fff; border: 1px solid var(--ink); border-radius: 5px; font-weight: 850; }
@media (max-width: 680px) { .billing-test-banner { grid-template-columns: 1fr; padding: 19px; }.billing-test-badge { width: max-content; }.billing-test-card code { display: inline-block; margin-top: 4px; } }

/* Plancher lisible pour les informations nécessaires à l’apprentissage. */
.tool-page-kicker,
.mission-panel .course-tag,
.mission-summary,
.step-dots small,
.dictionary-sheet > header span,
.dictionary-terms p,
.dictionary-syntax code,
.dictionary-unlock-toast span,
.asset-source-note,
.layout-menu > p,
.layout-menu button small,
.nova-coach strong,
.trial-badge span,
.asset-list button small { font-size: .66rem !important; }

/* Parcours v13 — carte d’expédition, panoramas thématiques et vrai chemin */
.journey-page { width: min(1580px, calc(100% - 24px)); max-width: none; min-width: 0; }
.world-picker { margin: 18px 0 50px; }
.world-picker-heading { margin-bottom: 18px; }
.world-picker-heading h2 { margin: 0; font-size: clamp(1.65rem, 3vw, 2.7rem); }
.world-picker-rail { padding: 10px 8px 22px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 20px 17px; overflow: visible; }
.world-card { --world-color: var(--coral); min-height: 225px; padding: 0 16px 15px; position: relative; display: grid; grid-template-columns: auto 1fr auto; grid-template-rows: 84px auto 1fr auto; gap: 8px 10px; overflow: hidden; color: var(--ink); background: var(--white); border: 2px solid var(--ink); border-radius: var(--radius-l); box-shadow: 5px 6px 0 color-mix(in srgb, var(--world-color) 72%, var(--ink)); text-decoration: none; transition: transform .2s cubic-bezier(.16,1,.3,1), box-shadow .2s ease; }
.world-card:hover { transform: translateY(-5px) rotate(-.35deg); box-shadow: 7px 10px 0 color-mix(in srgb, var(--world-color) 72%, var(--ink)); }
.world-card.is-active { background: color-mix(in srgb, var(--world-color) 13%, var(--white)); outline: 4px solid var(--world-color); outline-offset: 3px; transform: translateY(-4px); }
.world-yellow { --world-color: var(--yellow); }.world-violet { --world-color: var(--violet); }.world-blue { --world-color: #75b8ef; }.world-mint { --world-color: var(--mint); }.world-coral { --world-color: var(--coral); }
.world-card-art { grid-column: 1 / -1; width: calc(100% + 32px); height: 84px; margin-left: -16px; position: relative; display: block; overflow: hidden; background: var(--world-scene) center 36% / cover no-repeat; border-bottom: 2px solid var(--ink); }
.world-card-art::after { position: absolute; inset: 0; content: ""; background: linear-gradient(90deg, transparent 20%, color-mix(in srgb, var(--world-color) 28%, transparent)); }
.world-card-art i { position: absolute; right: -18px; bottom: -34px; width: 100px; height: 100px; background: var(--world-color); border: 2px solid var(--ink); border-radius: 50%; opacity: .88; }
.world-card-art b { position: absolute; z-index: 1; right: 20px; bottom: 13px; min-width: 44px; height: 38px; display: grid; place-items: center; color: #fff; background: var(--ink); border: 2px solid var(--ink); border-radius: 11px; font-family: ui-monospace, monospace; font-size: .7rem; }
.world-card-number { width: 35px; height: 35px; display: grid; place-items: center; background: var(--world-color); border: 2px solid var(--ink); border-radius: 50%; font-family: ui-monospace, monospace; font-size: .66rem; font-weight: 950; }
.world-card-current { align-self: center; justify-self: end; padding: 3px 8px; color: var(--ink); background: var(--yellow); border: 1px solid var(--ink); border-radius: 999px; font-size: .66rem; font-weight: 900; }
.world-card-copy { grid-column: 1 / -1; min-width: 0; display: grid; align-content: end; }
.world-card-copy small { color: #5e57a1; font-family: ui-monospace, monospace; font-size: .66rem; font-weight: 950; letter-spacing: .045em; }
.world-card-copy strong { min-height: 2.25em; font-size: .96rem; line-height: 1.16; }
.world-card-copy em { color: var(--text-muted); font-size: .68rem; font-style: normal; }
.world-card-difficulty { height: 14px; margin-top: 8px; display: flex; align-items: end; gap: 4px; }
.world-card-difficulty i { width: 16px; height: 4px; display: block; background: #d7d5cf; border: 1px solid rgba(23,32,51,.28); border-radius: 2px; }
.world-card-difficulty i:nth-child(2) { height: 6px; }.world-card-difficulty i:nth-child(3) { height: 9px; }.world-card-difficulty i:nth-child(4) { height: 12px; }
.difficulty-tier-1 { --difficulty-color: var(--mint); }.difficulty-tier-2 { --difficulty-color: var(--yellow); }.difficulty-tier-3 { --difficulty-color: #75b8ef; }.difficulty-tier-4 { --difficulty-color: var(--violet); }
.world-card-difficulty i.is-filled { background: var(--difficulty-color); border-color: var(--ink); }
.world-card-progress { grid-column: 1 / -1; height: 8px; overflow: hidden; background: #dedbd2; border: 1px solid var(--ink); border-radius: 999px; }
.world-card-progress i { height: 100%; display: block; background: var(--world-color); }

.level-world { --route-accent: var(--coral); position: relative; overflow: hidden; isolation: isolate; background: #e9f5f5; border: 3px solid var(--ink); border-radius: 30px; box-shadow: 11px 13px 0 color-mix(in srgb, var(--route-accent) 62%, var(--ink)); }
.level-world.route-yellow { --route-accent: var(--yellow); }.level-world.route-violet { --route-accent: var(--violet); }.level-world.route-blue { --route-accent: #75b8ef; }.level-world.route-mint { --route-accent: var(--mint); }.level-world.route-coral { --route-accent: var(--coral); }
.level-world-scene { position: absolute; z-index: -2; inset: 0 0 auto; height: 440px; overflow: hidden; background: var(--world-scene) center 36% / cover no-repeat; }
.level-world-scene span { position: absolute; top: 20px; right: 4%; width: 116px; height: 116px; background: color-mix(in srgb, var(--route-accent) 75%, #fff); border: 3px solid var(--ink); border-radius: 50%; box-shadow: 7px 8px 0 rgba(23,32,51,.18); opacity: .88; }
.level-world::before { position: absolute; z-index: -1; inset: 0; content: ""; background: linear-gradient(to bottom, rgba(247,243,233,.05) 0 27%, rgba(233,245,245,.48) 39%, rgba(233,245,245,.88) 57%, #e9f5f5 76%); pointer-events: none; }
.level-world-header { margin: 25px; padding: 21px 24px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 21px; background: rgba(255,254,250,.94); border: 2px solid var(--ink); border-radius: 20px; box-shadow: 7px 7px 0 var(--route-accent); backdrop-filter: blur(8px); }
.level-world-emblem { width: 66px; height: 66px; display: grid; place-items: center; background: var(--route-accent); border: 2px solid var(--ink); border-radius: 19px; box-shadow: 4px 4px 0 var(--ink); font-family: ui-monospace, monospace; font-weight: 950; }
.level-world-copy p { margin: 0 0 3px; color: #5e57a1; font-family: ui-monospace, monospace; font-size: .66rem; font-weight: 950; letter-spacing: .1em; }
.level-world-copy h2 { margin: 0 0 5px; font-size: clamp(1.6rem, 3vw, 2.5rem); }
.level-world-copy > span { display: block; color: var(--ink-soft); font-size: .76rem; }
.level-world-status { min-width: 160px; padding-left: 22px; border-left: 1px solid rgba(23,32,51,.18); text-align: right; }
.level-world-status strong, .level-world-status > span, .level-world-status > small { display: block; }
.level-world-status strong { font-size: 1.65rem; line-height: 1; }.level-world-status strong small { font-size: .66rem; }
.level-world-status > span { margin-top: 6px; font-size: .66rem; font-weight: 900; text-transform: uppercase; }.level-world-status > small { color: var(--text-muted); font-size: .66rem; }
.level-picker-heading { padding: 16px 28px; margin-top: 56px; display: flex; align-items: end; justify-content: space-between; gap: 20px; background: rgba(233,245,245,.91); border-top: 2px solid rgba(23,32,51,.16); border-bottom: 2px solid rgba(23,32,51,.16); backdrop-filter: blur(6px); }
.level-picker-heading h3 { margin: 0; font-size: clamp(1.3rem, 2.6vw, 2rem); }
.level-route-tools { display: grid; align-items: center; justify-items: end; gap: 8px; }
.level-route-tools > strong { grid-column: 1 / -1; color: var(--ink); font-family: ui-monospace, monospace; font-size: .66rem; letter-spacing: .04em; }
.level-route-legend { margin: 0; gap: 11px; }.level-route-legend span { font-size: .66rem; }
.level-rail-viewport { margin: 6px 0 10px; padding: 22px 20px 30px; overflow: visible; }
.level-rail { min-height: var(--route-height); height: auto; padding: 0; margin: 0; position: relative; display: grid; grid-template-columns: repeat(var(--route-columns), minmax(0, 1fr)); grid-template-rows: repeat(var(--route-rows), 360px); list-style: none; }
.level-route-line { position: absolute; z-index: 0; inset: 0; width: 100%; height: var(--route-height); overflow: visible; pointer-events: none; }
.level-route-line path { fill: none; stroke: var(--route-accent); stroke-width: 9; stroke-linecap: round; stroke-dasharray: 17 15; vector-effect: non-scaling-stroke; }
.level-route-line .level-route-shadow { stroke: var(--ink); stroke-width: 15; stroke-dasharray: none; opacity: .72; }
.level-card { min-width: 0; height: 350px; padding-inline: 10px; position: relative; z-index: 1; grid-column: var(--map-column); grid-row: var(--map-row); }
.level-card > a, .level-card > div { height: 100%; display: block; color: var(--ink); text-decoration: none; }
.level-node { width: 86px; height: 86px; position: absolute; z-index: 2; top: 64px; left: 50%; display: grid; place-items: center; background: var(--route-accent); border: 3px solid var(--ink); border-radius: 50%; box-shadow: 6px 7px 0 rgba(23,32,51,.24); transform: translate(-50%,-50%); transition: transform .2s cubic-bezier(.16,1,.3,1); }
.level-node b { font-family: ui-monospace, monospace; font-size: .78rem; }.level-node i { position: absolute; inset: -10px; border: 2px dashed var(--route-accent); border-radius: 50%; opacity: 0; animation: route-orbit 7s linear infinite; }
.level-card a:hover .level-node { transform: translate(-50%,calc(-50% - 6px)) scale(1.05); }.level-card a:hover .level-node i, .level-card.is-current .level-node i { opacity: 1; }
.level-traveler { position: absolute; z-index: 4; width: 74px; height: 74px; top: -27px; left: 62px; filter: drop-shadow(3px 4px 0 rgba(23,32,51,.18)); animation: level-traveler-bob 1.7s ease-in-out infinite; }
.level-copy { min-height: 204px; padding: 17px; position: absolute; inset: 128px 10px auto; display: flex; flex-direction: column; background: rgba(255,254,250,.97); border: 2px solid var(--ink); border-radius: 16px; box-shadow: 5px 6px 0 rgba(23,32,51,.18); }
.level-card .level-copy { border-top: 7px solid var(--difficulty-color); }
.level-card.difficulty-tier-1 .level-node { background: var(--mint); }
.level-card.difficulty-tier-2 .level-node { background: var(--yellow); }
.level-card.difficulty-tier-3 .level-node { background: #75b8ef; }
.level-card.difficulty-tier-4 .level-node { color: #fff; background: var(--violet); border-radius: 24px; box-shadow: 7px 8px 0 var(--coral); }
.level-card.is-project .level-copy { background: linear-gradient(145deg,#fffefa,#f0edff); box-shadow: 7px 8px 0 var(--violet); }
.level-card.is-project .level-copy > small::before { content: "PROJET FINAL · "; color: #5e50b5; }
.level-copy > small { color: var(--text-muted); font-family: ui-monospace, monospace; font-size: .66rem; font-weight: 900; letter-spacing: .025em; text-transform: uppercase; }
.level-copy > strong { margin: 6px 0; font-size: .94rem; line-height: 1.18; }
.level-copy > em { color: var(--ink-soft); font-size: .68rem; font-style: normal; line-height: 1.42; }
.level-copy .node-stars { margin-top: auto; padding-top: 10px; color: #705800; font-size: .7rem; }.node-stars b { font-size: .82rem; }
.level-copy mark { width: fit-content; padding: 4px 8px; margin-top: 6px; color: #4e448e; background: #e9e5ff; border-radius: 999px; font-size: .66rem; font-weight: 900; }
.level-play-label { position: absolute; z-index: 4; top: 0; left: 50%; padding: 4px 9px; color: var(--ink); background: var(--yellow); border: 2px solid var(--ink); border-radius: 999px; box-shadow: 2px 2px 0 var(--ink); transform: translateX(-50%); font-family: ui-monospace, monospace; font-size: .66rem; font-weight: 950; letter-spacing: .045em; white-space: nowrap; }
.level-card.is-current .level-copy { box-shadow: 7px 8px 0 var(--route-accent); }
.level-card.is-complete .level-node { color: #fff; background: var(--success); }.level-card.is-complete .level-node::after { position: absolute; right: -6px; bottom: -4px; width: 26px; height: 26px; display: grid; place-items: center; content: ""; color: var(--ink); background: var(--yellow); border: 2px solid var(--ink); border-radius: 50%; font-size: .66rem; }
.level-card.is-locked .level-node { color: #4a5365; background: #d0cec7; box-shadow: 4px 5px 0 rgba(23,32,51,.15); }.level-card.is-locked .level-node::before { position: absolute; inset: 19px 25px; content: ""; border: 4px solid #4a5365; border-top-width: 10px; border-radius: 11px 11px 4px 4px; opacity: .55; }.level-card.is-locked .level-copy { background: rgba(240,239,234,.97); border-style: dashed; }
.level-card-chest { min-width: 0; }
.level-card-chest > .level-world-chest { height: auto; }
.chest-destination-node { background: var(--yellow); }
.chest-destination-node .chest-art { width: 66px; height: 50px; border-radius: 8px 8px 14px 14px; box-shadow: none; }.chest-destination-node .chest-art i { top: -13px; width: 55px; height: 23px; }.chest-destination-node .chest-art span { font-size: .66rem !important; }
.level-world-chest { width: auto; min-height: 204px; padding: 17px; position: absolute; inset: 128px 10px auto; display: flex; align-items: stretch; flex-direction: column; gap: 9px; margin: 0; border-radius: 16px; box-shadow: 7px 8px 0 var(--route-accent); transform: none; }
.level-world-chest small { color: #5d50b1; font-size: .66rem !important; }.level-world-chest strong { font-size: .92rem; }.level-world-chest p, .level-world-chest > a { font-size: .66rem; line-height: 1.4; }.level-world-chest > a { margin-top: auto; font-weight: 900; }.level-world-chest .button { margin-top: auto; }
.level-world-chest.is-ready { animation: world-chest-ready 1.8s ease-in-out infinite; }
.level-world-guides { position: relative; border-radius: 0; }.level-world-guides summary, .level-world-guides a { font-size: .7rem !important; }
@keyframes world-chest-ready { 50% { transform: translateY(-5px); box-shadow: 7px 13px 0 var(--route-accent); } }
@keyframes level-traveler-bob { 50% { transform: translateY(-5px) rotate(2deg); } }

.billing-notice { padding: 14px 18px; margin: 24px 0 0; border: 2px solid var(--ink); border-radius: var(--radius-m); font-size: .72rem; font-weight: 800; }
.billing-notice.is-success { color: var(--success-dark); background: #daf6e8; }.billing-notice.is-info { background: #fff5c9; }.billing-notice.is-error { color: #7b2831; background: #fff0ef; }
.billing-form { margin: 0; }.billing-form .button { width: 100%; }
.billing-reassurance { display: block; margin-top: 10px; color: #c7cfdb; font-size: .6rem; line-height: 1.45; }
.plan-active small { display: block; margin-top: 3px; font-size: .6rem; }
.billing-legal-copy { max-width: 760px; margin: -26px auto 60px; color: var(--text-muted); font-size: .66rem; text-align: center; }
.legal-warning { padding: 16px; color: #6f2730; background: #fff0ef; border: 1px solid #df9ba1; border-radius: var(--radius-m); }

@media (max-width: 900px) {
    .level-world-header { grid-template-columns: auto 1fr; }
    .level-world-status { grid-column: 1 / -1; padding: 13px 0 0; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid rgba(23,32,51,.18); border-left: 0; text-align: left; }
    .level-picker-heading { margin-top: 36px; }
    .level-route-tools { grid-template-columns: 1fr; }.level-route-tools > strong { grid-column: auto; }.level-route-legend { display: none; }
    .level-rail { min-height: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: none; grid-auto-rows: 360px; }
    .level-card { grid-column: auto !important; grid-row: auto !important; }
    .level-route-line { display: none; }
}
@media (max-width: 650px) {
    .journey-page { width: min(calc(100% - 16px), 1580px); }
    .world-picker-rail { padding-inline: 4px; }
    .world-card { min-height: 214px; }
    .level-world { border-radius: 21px; box-shadow: 7px 9px 0 color-mix(in srgb, var(--route-accent) 62%, var(--ink)); }
    .level-world-scene { height: 360px; background-position: center 42%; }
    .level-world-scene span { display: none; }
    .level-world-header { padding: 17px; margin: 15px; gap: 14px; }
    .level-world-emblem { width: 52px; height: 52px; border-radius: 14px; }
    .level-world-copy > span { font-size: .68rem; }
    .level-world-status { flex-wrap: wrap; gap: 7px 12px; }
    .level-picker-heading { padding: 15px 16px; margin-top: 24px; align-items: start; }
    .level-picker-heading h3 { max-width: 280px; }
    .level-rail-viewport { padding: 14px 12px 24px; }
    .level-copy { min-height: 214px; padding: 15px; }
    .level-world-chest { min-height: 214px; }
}
@media (max-width: 520px) {
    .level-rail { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
    .world-card, .level-node { transition: none; }
    .level-node i, .level-world-chest.is-ready, .level-traveler { animation: none; }
}

/* V17 — mouvement global, notifications Google et administration privée */
body::after {
    position: fixed;
    z-index: -2;
    inset: -25vh -15vw;
    content: "";
    pointer-events: none;
    background:
        radial-gradient(circle at 20% 25%, rgba(109,212,173,.18), transparent 21%),
        radial-gradient(circle at 78% 72%, rgba(118,103,223,.12), transparent 23%);
    animation: ambient-drift 18s ease-in-out infinite alternate;
}
.page-ready .site-header { animation: header-arrival .55s cubic-bezier(.16,1,.3,1) both; }
.brand img { transition: transform .3s cubic-bezier(.16,1,.3,1); }
.brand:hover img { transform: translateY(-4px) rotate(-5deg); }
.notification-count:not([hidden]) { animation: notification-pulse 2.4s ease-in-out infinite; }
.notification-list { max-height: min(480px, 58vh); overflow-y: auto; }
.notification-item.is-remote { animation: notification-item-in .42s cubic-bezier(.16,1,.3,1) both; }
.notification-push { padding: 12px 14px 14px; display: grid; gap: 5px; background: #f4f1e9; border-top: 1px solid var(--line); }
.notification-push-button, .notification-push > span { width: 100%; min-height: 44px; padding: 9px 12px; display: flex; align-items: center; justify-content: center; color: var(--ink); background: var(--yellow); border: 2px solid var(--ink); border-radius: 10px; font-size: .68rem; font-weight: 900; text-align: center; }
.notification-push-button { cursor: pointer; box-shadow: 3px 3px 0 var(--ink); }
.notification-push-button:hover { transform: translate(1px,1px); box-shadow: 2px 2px 0 var(--ink); }
.notification-push-button[data-state="enabled"] { color: var(--success-dark); background: #dff7ee; box-shadow: none; }
.notification-push-button[data-state="unsupported"] { color: #7b2831; background: #fff0ef; box-shadow: none; }
.notification-push small { color: var(--text-muted); font-size: .62rem; line-height: 1.35; text-align: center; }
.notification-toast { width: min(390px, calc(100vw - 28px)); padding: 16px 18px; position: fixed; z-index: 950; right: 24px; bottom: 24px; display: grid; gap: 3px; color: var(--ink); background: var(--white); border: 2px solid var(--ink); border-radius: 14px; box-shadow: 7px 7px 0 var(--mint); text-align: left; cursor: pointer; animation: notification-toast-in .5s cubic-bezier(.16,1,.3,1) both; }
.notification-toast strong { font-size: .78rem; }.notification-toast small { color: var(--ink-soft); font-size: .66rem; }

.admin-notifications-main { max-width: 1280px; }
.admin-notification-hero { padding: 38px 0 44px; display: grid; grid-template-columns: minmax(0,1fr) minmax(390px,.7fr); align-items: end; gap: 45px; border-bottom: 1px solid var(--line); }
.admin-notification-hero > *, .admin-notification-layout > * { min-width: 0; }
.admin-notification-hero h1 { margin-bottom: 14px; font-size: clamp(2.7rem, 6vw, 5rem); }
.admin-notification-hero > div > p:last-child { max-width: 720px; margin: 0; color: var(--ink-soft); }
.admin-notification-stats { margin: 0; display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; }
.admin-notification-stats div { padding: 14px; background: #fff; border: 2px solid var(--ink); border-radius: 12px; }
.admin-notification-stats dt { color: var(--text-muted); font-size: .62rem; font-weight: 850; }.admin-notification-stats dd { margin: 4px 0 0; font-size: 1rem; font-weight: 950; }
.admin-notification-layout { margin: 34px 0 70px; display: grid; grid-template-columns: minmax(0,.82fr) minmax(0,1.18fr); gap: 24px; align-items: start; }
.admin-notification-card { padding: clamp(24px,4vw,38px); background: #fff; border: 2px solid var(--ink); border-radius: 20px; box-shadow: 7px 8px 0 var(--yellow); }
.admin-notification-card:nth-child(2) { box-shadow-color: var(--mint); }
.admin-notification-card h2 { margin: 7px 0 24px; font-size: clamp(1.7rem,3vw,2.5rem); }
.admin-notification-form { display: grid; gap: 18px; }.admin-notification-form label { display: grid; gap: 7px; font-size: .72rem; font-weight: 900; }.admin-notification-form label span { color: var(--text-muted); font-size: .62rem; font-weight: 650; }
.admin-notification-form input, .admin-notification-form textarea { width: 100%; padding: 13px 14px; color: var(--ink); background: #fffefa; border: 2px solid var(--ink); border-radius: 10px; }.admin-notification-form textarea { resize: vertical; line-height: 1.5; }
.admin-notification-safety { padding: 12px; margin: 0; color: var(--ink-soft); background: #fff6ce; border-left: 4px solid var(--yellow); font-size: .66rem; }
.admin-notification-history { display: grid; }.admin-notification-history > p { color: var(--text-muted); }
.admin-notification-history article { padding: 17px 0; display: grid; grid-template-columns: 1fr auto; gap: 20px; border-top: 1px solid var(--line); }.admin-notification-history strong { display: block; font-size: .8rem; }.admin-notification-history p { margin: 3px 0 0; color: var(--ink-soft); font-size: .68rem; }.admin-notification-history small { color: var(--text-muted); font-size: .6rem; text-align: right; }
.admin-denied { max-width: 900px; margin: 30px auto; }

@keyframes ambient-drift { to { transform: translate3d(4vw,-3vh,0) scale(1.06); } }
@keyframes header-arrival { from { opacity: 0; transform: translateY(-18px); } }
@keyframes notification-pulse { 50% { transform: scale(1.13); box-shadow: 0 0 0 5px rgba(255,112,88,.16); } }
@keyframes notification-item-in { from { opacity: 0; transform: translateY(-9px) scale(.98); } }
@keyframes notification-toast-in { from { opacity: 0; transform: translateY(24px) scale(.96); } }
@keyframes premium-tool-float { 50% { transform: translateY(-7px) rotate(3deg); } }

@media (max-width: 900px) {
    .admin-notification-hero, .admin-notification-layout { grid-template-columns: 1fr; }
    .admin-notification-stats { max-width: 650px; }
}
@media (max-width: 600px) {
    .notification-toast { right: 14px; bottom: 14px; }
    .admin-notification-stats { grid-template-columns: 1fr; }
    .admin-notification-hero h1 { overflow-wrap: anywhere; }
    .admin-notification-history article { grid-template-columns: 1fr; }.admin-notification-history small { text-align: left; }
}

/* Les notifications doivent rester au-dessus des cartes, chemins et outils de
   l'atelier. L'animation d'arrivée du header crée son propre stacking context :
   on relève donc ce contexte entier, puis on réserve une couche supérieure à
   la modale et aux toasts. */
.site-header,
.workshop-page .site-header {
    position: relative;
    z-index: 10000;
}
.notification-shell { z-index: 10010; }
.notification-panel { z-index: 10020; }
.notification-toast { z-index: 21000; }
.site-status-modal { z-index: 22000; }

/* V21 — interface clarifiée et pictogrammes open source */
.ui-icon { width: 1.1em; height: 1.1em; display: inline-block; flex: 0 0 auto; object-fit: contain; vertical-align: -.16em; }
.button, .back-link, .run-button, .toolbar-check, .hint-toggle, .example-toggle,
.reset-button, .daily-banner b, .route-guides summary, .route-guides a,
.learning-goals summary { align-items: center; gap: 8px; }
.button, .back-link, .run-button, .toolbar-check, .reset-button,
.hint-toggle, .example-toggle, .autocomplete-toggle, .learning-goals summary { display: inline-flex; }
.button-dark .ui-icon, .premium-plan .button .ui-icon { filter: brightness(0) invert(1); }
.site-nav-toggle .ui-icon, .notification-trigger .ui-icon, .site-status-modal-close .ui-icon,
.notification-panel-close .ui-icon, .toolbox-close .ui-icon, .tour-close .ui-icon { width: 20px; height: 20px; }
.site-nav-stat .ui-icon { width: 17px; height: 17px; }
.site-nav-stat .ui-icon-flame { filter: invert(49%) sepia(91%) saturate(1230%) hue-rotate(327deg) brightness(104%); }
.site-nav-stat .ui-icon-gem { filter: invert(67%) sepia(90%) saturate(480%) hue-rotate(7deg); }
.notification-panel-heading > div { display: grid; gap: 2px; }
.notification-panel-heading > div > strong { font-size: .82rem; }
.site-status-point > img { width: 24px; height: 24px; }

.editor-toolbar-actions button { gap: 7px; }
.editor-toolbar-actions .ui-icon { filter: brightness(0) invert(1); }
.layout-menu button > span { display: grid; place-items: center; }
.layout-menu button > span .ui-icon { width: 22px; height: 22px; }
.toolbox-chevron { display: grid; place-items: center; }
.mission-game-hud > span { gap: 6px; }
.mission-game-hud .ui-icon { width: 17px; height: 17px; }
.learning-goals summary .ui-icon { width: 17px; height: 17px; }
.asset-list button > span { display: grid; place-items: center; }
.asset-list button > span .ui-icon { width: 19px; height: 19px; }
.help-actions button { justify-content: flex-start; }
.help-actions button small { margin-left: auto; }
.dictionary-empty > span { display: grid; place-items: center; }
.feedback-icon { display: grid; place-items: center; }
.feedback-stars { display: inline-flex; align-items: center; gap: 4px; }
.feedback-stars .ui-icon-star { opacity: .28; }
.feedback-stars .ui-icon-star.is-earned { opacity: 1; filter: invert(68%) sepia(78%) saturate(700%) hue-rotate(4deg); }
.feedback-stars > span { margin-left: 5px; }
.flying-bit { font-size: 0 !important; }
.flying-bit .ui-icon { width: 18px; height: 18px; filter: invert(68%) sepia(78%) saturate(700%) hue-rotate(4deg); }
.tips-note, .asset-source-note { display: none !important; }

.method-details { margin: 46px 0 70px; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); }
.method-details > div { padding: 28px 26px; border-right: 1px solid var(--line); }
.method-details > div:nth-child(3) { border-right: 0; }
.method-details h2 { margin: 0 0 10px; font-size: 1.25rem; }
.method-details p { margin: 0; color: var(--ink-soft); font-size: .78rem; }
.method-details > .button { grid-column: 1 / -1; justify-self: start; margin: 0 26px 26px; }

.premium-comparison li { padding-left: 27px; position: relative; }
.premium-comparison li::before { width: 18px; height: 18px; margin: 0; position: absolute; left: 0; top: 8px; content: ""; background: url('../img/ui/check.svg') center / contain no-repeat; }
.premium-plan li::before { filter: invert(73%) sepia(30%) saturate(830%) hue-rotate(108deg); }
.billing-legal-copy { margin: 8px auto 60px; }

.premium-faq { max-width: 760px; margin: 0 auto 90px; }
.premium-faq > h2 { margin-bottom: 22px; font-size: 1.7rem; text-align: center; }
.faq-list { display: grid; gap: 12px; }
.faq-list details { padding: 4px 22px; background: var(--white); border: 2px solid var(--ink); border-radius: var(--radius-m); }
.faq-list summary { padding: 16px 0; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; font-weight: 850; font-size: .95rem; cursor: pointer; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; flex: 0 0 auto; display: grid; width: 22px; height: 22px; place-items: center; color: var(--ink); border: 2px solid var(--ink); border-radius: 50%; font-size: 1rem; line-height: 1; }
.faq-list details[open] summary::after { content: "\2212"; }
.faq-list details[open] summary { border-bottom: 1px solid var(--line); }
.faq-list p { margin: 0; padding: 14px 0 18px; color: var(--ink-soft); font-size: .85rem; line-height: 1.6; }

.level-rail { grid-template-rows: repeat(var(--route-rows), 270px); }
.level-card { height: 260px; padding-inline: 8px; }
.level-node { width: 72px; height: 72px; top: 54px; }
.level-traveler { width: 62px; height: 62px; top: -24px; left: 53px; }
.level-copy { min-height: 142px; padding: 15px; inset: 98px 8px auto; border-width: 0 0 2px; border-radius: 12px; box-shadow: 0 5px 0 rgba(23,32,51,.14); }
.level-copy > strong { margin: 6px 0 2px; }
.level-copy .node-stars { padding-top: 7px; display: inline-flex; align-items: center; gap: 4px; }
.level-copy mark { margin-top: 5px; }
.level-card.is-current .level-copy { box-shadow: 0 6px 0 var(--route-accent); }
.level-card.is-locked .level-copy { border-style: solid; opacity: .82; }
.level-world-chest { min-height: 142px; padding: 15px; inset: 98px 8px auto; border-width: 0 0 2px; border-radius: 12px; box-shadow: 0 6px 0 var(--route-accent); }
.level-world-chest p { margin: 3px 0 0; }
.level-world-chest > a, .level-world-chest .button { min-height: 34px; margin-top: 4px; }
.level-card.is-complete .level-node::after, .route-step.is-complete .route-node::after { content: ""; background: var(--yellow) url('../img/ui/star.svg') center / 14px no-repeat; }

.stats-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); }
.stats-grid article, .stats-grid .stat-bits, .stats-grid .stat-streak, .stats-grid .stat-stars { border: 0; border-right: 1px solid var(--line); border-radius: 0; box-shadow: none; }
.stats-grid article:last-child { border-right: 0; }
.stats-grid article > .ui-icon { width: 25px; height: 25px; margin-bottom: 8px; }
.lesson-outcomes li > span { display: grid; place-items: center; }
.lesson-process a { display: inline-flex; align-items: center; gap: 8px; }

@media (max-width: 900px) {
    .method-details { grid-template-columns: 1fr; }
    .method-details > div { border-right: 0; border-bottom: 1px solid var(--line); }
    .level-rail { grid-auto-rows: 270px; }
}
@media (max-width: 650px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-grid article { border-bottom: 1px solid var(--line); }
    .stats-grid article:nth-child(2n) { border-right: 0; }
    .stats-grid article:last-child { grid-column: 1 / -1; border-bottom: 0; }
    .level-copy, .level-world-chest { min-height: 142px; }
}

/* V22 — page Méthode ludique et sélecteur de langue */
.language-switcher {
    min-height: 44px;
    padding: 4px;
    margin-left: 18px;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    background: #fff;
    border: 2px solid var(--ink);
    border-radius: 999px;
    box-shadow: 3px 3px 0 var(--yellow);
}
.language-switcher > .ui-icon {
    width: 19px;
    height: 19px;
    margin: 0 5px 0 6px;
}
.language-switcher a {
    min-width: 42px;
    min-height: 34px;
    padding: 0 8px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    font-size: .68rem;
    font-weight: 950;
    line-height: 1;
    text-decoration: none;
}
.language-switcher a:hover { background: #f3efe5; }
.language-switcher a[aria-current="true"] {
    color: #fff;
    background: var(--ink);
}

.method-page { overflow-x: hidden; }
.method-main {
    max-width: 1260px;
    padding-block: clamp(48px, 7vw, 92px) 90px;
}
.method-hero {
    min-height: 590px;
    display: grid;
    grid-template-columns: minmax(0, .88fr) minmax(500px, 1.12fr);
    align-items: center;
    gap: clamp(45px, 8vw, 110px);
}
.method-hero-copy { position: relative; z-index: 2; }
.method-badge {
    width: fit-content;
    min-height: 42px;
    padding: 7px 14px 7px 9px;
    margin-bottom: 22px;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--ink);
    background: var(--yellow);
    border: 2px solid var(--ink);
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 950;
}
.method-badge .ui-icon {
    width: 27px;
    height: 27px;
    padding: 5px;
    color: #fff;
    background: var(--ink);
    border-radius: 50%;
    filter: brightness(0) invert(1);
}
.method-hero h1 {
    margin: 0 0 22px;
    display: grid;
    font-size: clamp(4.1rem, 8vw, 7.4rem);
    line-height: .83;
    letter-spacing: -.075em;
}
.method-hero h1 span { display: block; }
.method-hero h1 .is-coral {
    width: fit-content;
    color: var(--coral);
    transform: rotate(-2deg);
    text-shadow: 4px 4px 0 var(--ink);
    -webkit-text-stroke: 2px var(--ink);
}
.method-hero-copy > p {
    margin: 0 0 28px;
    color: var(--ink-soft);
    font-size: 1.05rem;
    font-weight: 700;
}

.method-quest {
    min-height: 480px;
    padding: 24px;
    position: relative;
    color: #fff;
    background: var(--ink);
    border: 3px solid var(--ink);
    border-radius: 30px;
    box-shadow: 13px 13px 0 var(--mint);
    transform: rotate(1.25deg);
}
.method-quest::before {
    position: absolute;
    inset: 76px 22px 22px;
    content: "";
    pointer-events: none;
    background:
        radial-gradient(circle at 20% 20%, rgba(248,211,79,.19), transparent 28%),
        radial-gradient(circle at 82% 74%, rgba(118,103,223,.28), transparent 30%);
}
.method-quest-top {
    padding-bottom: 18px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #46536a;
}
.method-quest-top strong {
    font-size: .82rem;
    font-weight: 950;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.method-quest-top > span { display: flex; gap: 7px; }
.method-quest-top i {
    width: 11px;
    height: 11px;
    display: block;
    background: var(--coral);
    border: 1px solid #fff;
    border-radius: 50%;
}
.method-quest-top i:nth-child(2) { background: var(--yellow); }
.method-quest-top i:nth-child(3) { background: var(--mint); }
.method-quest ol {
    padding: 46px 0 0;
    margin: 0;
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    list-style: none;
}
.method-quest ol::before {
    height: 4px;
    position: absolute;
    top: 76px;
    left: 16%;
    right: 16%;
    content: "";
    background: repeating-linear-gradient(90deg, #738096 0 12px, transparent 12px 21px);
}
.method-quest li {
    position: relative;
    display: grid;
    justify-items: center;
    gap: 12px;
    text-align: center;
}
.method-quest li > span {
    width: 66px;
    height: 66px;
    display: grid;
    place-items: center;
    color: var(--ink);
    background: #fff;
    border: 3px solid var(--ink);
    border-radius: 20px;
    box-shadow: 5px 5px 0 #516078;
    transform: rotate(-3deg);
}
.method-quest li:nth-child(2) > span { background: var(--yellow); transform: rotate(3deg); }
.method-quest li:nth-child(3) > span { background: var(--mint); transform: rotate(-2deg); }
.method-quest li.is-active > span { animation: method-node-pulse 2.2s ease-in-out infinite; }
.method-quest li strong { font-size: .78rem; }
.method-quest-reward {
    width: fit-content;
    min-height: 62px;
    padding: 10px 92px 10px 15px;
    position: absolute;
    right: 24px;
    bottom: 34px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--ink);
    background: var(--yellow);
    border: 3px solid var(--ink);
    border-radius: 16px;
    box-shadow: 5px 5px 0 var(--coral);
    transform: rotate(-2deg);
}
.method-quest-reward strong { font-size: 1.25rem; }
.method-quest-nova {
    width: 118px;
    height: 118px;
    position: absolute;
    right: -24px;
    bottom: -22px;
    object-fit: contain;
    filter: drop-shadow(5px 8px 0 rgba(0,0,0,.2));
    animation: method-nova-float 3s ease-in-out infinite;
}

.method-levels {
    padding: 80px 0 74px;
    margin: 0;
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(30px, 6vw, 84px);
    list-style: none;
}
.method-levels::before {
    height: 5px;
    position: absolute;
    top: 164px;
    left: 14%;
    right: 14%;
    content: "";
    background: repeating-linear-gradient(90deg, var(--ink) 0 16px, transparent 16px 27px);
    opacity: .35;
}
.method-levels li {
    min-width: 0;
    position: relative;
    display: grid;
    justify-items: center;
    text-align: center;
}
.method-level-art {
    width: 172px;
    height: 172px;
    margin-bottom: 28px;
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    background: var(--yellow);
    border: 3px solid var(--ink);
    border-radius: 42px;
    box-shadow: 9px 9px 0 var(--ink);
    transform: rotate(-3deg);
    transition: transform .25s cubic-bezier(.16,1,.3,1), box-shadow .25s ease;
}
.method-levels li:nth-child(2) .method-level-art { transform: rotate(3deg); }
.method-levels li:nth-child(3) .method-level-art { transform: rotate(-2deg); }
.method-levels li:hover .method-level-art {
    box-shadow: 5px 5px 0 var(--ink);
    transform: translate(4px, 4px) rotate(0);
}
.method-level-art.is-mint { background: var(--mint); }
.method-level-art.is-violet { background: #c8c0ff; }
.method-level-art > span {
    width: 42px;
    height: 42px;
    position: absolute;
    top: -14px;
    left: -13px;
    display: grid;
    place-items: center;
    color: #fff;
    background: var(--ink);
    border: 2px solid #fff;
    border-radius: 50%;
    font-family: ui-monospace, monospace;
    font-size: .7rem;
    font-weight: 950;
}
.method-level-art img { width: 92px; height: 92px; object-fit: contain; }
.method-levels h2 { margin: 0 0 9px; font-size: 1.55rem; }
.method-levels p {
    max-width: 260px;
    margin: 0;
    color: var(--ink-soft);
    font-size: .85rem;
    font-weight: 650;
}
.method-level-arrow {
    width: 31px;
    height: 31px;
    position: absolute;
    z-index: 2;
    top: 70px;
    right: calc(clamp(30px, 6vw, 84px) / -2 - 15px);
    padding: 6px;
    background: var(--paper);
    border: 2px solid var(--ink);
    border-radius: 50%;
}

.method-loadout {
    min-height: 104px;
    padding: 15px 15px 15px 24px;
    display: grid;
    grid-template-columns: repeat(3, auto) 1fr;
    align-items: center;
    gap: 18px;
    background: #fff;
    border: 3px solid var(--ink);
    border-radius: 22px;
    box-shadow: 9px 9px 0 var(--coral);
}
.method-loadout > div {
    min-height: 54px;
    padding: 0 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-right: 1px solid var(--line);
}
.method-loadout > div:nth-child(3) { border-right: 0; }
.method-loadout > div .ui-icon { width: 25px; height: 25px; }
.method-loadout > div strong { font-size: .76rem; white-space: nowrap; }
.method-loadout > .button { justify-self: end; }

@keyframes method-node-pulse {
    50% { transform: translateY(-7px) rotate(2deg); box-shadow: 7px 10px 0 #516078; }
}
@keyframes method-nova-float {
    50% { transform: translateY(-9px) rotate(2deg); }
}

@media (max-width: 1080px) {
    .method-hero { grid-template-columns: 1fr 1fr; gap: 42px; }
    .method-loadout { grid-template-columns: repeat(3, 1fr); }
    .method-loadout > .button { grid-column: 1 / -1; width: 100%; justify-self: stretch; justify-content: center; }
}
@media (max-width: 900px) {
    .language-switcher { margin-left: auto; }
    .notification-shell { margin-left: 10px; }
    .method-hero { min-height: 0; grid-template-columns: 1fr; }
    .method-hero-copy { text-align: center; }
    .method-badge, .method-hero-copy > .button { margin-inline: auto; }
    .method-hero h1 { justify-items: center; }
    .method-quest { width: min(680px, 100%); margin: 0 auto; }
}
@media (max-width: 700px) {
    .method-main { padding-top: 36px; }
    .method-hero h1 { font-size: clamp(3.35rem, 18vw, 5.3rem); }
    .method-quest { min-height: 430px; padding: 18px; border-radius: 22px; box-shadow: 8px 8px 0 var(--mint); transform: none; }
    .method-quest ol { padding-top: 36px; }
    .method-quest ol::before { top: 66px; }
    .method-quest li strong { font-size: .68rem; }
    .method-quest li > span { width: 60px; height: 60px; }
    .method-quest-reward { right: 16px; bottom: 28px; padding-right: 80px; }
    .method-quest-nova { width: 102px; height: 102px; right: 4px; bottom: -17px; }
    .method-levels { padding-block: 70px 60px; grid-template-columns: 1fr; gap: 52px; }
    .method-levels::before {
        width: 5px;
        height: auto;
        top: 120px;
        bottom: 120px;
        left: 50%;
        right: auto;
        background: repeating-linear-gradient(180deg, var(--ink) 0 16px, transparent 16px 27px);
    }
    .method-levels li { padding-bottom: 0; }
    .method-level-arrow { display: none; }
    .method-level-art { margin-bottom: 22px; }
    .method-levels li > div:last-of-type {
        position: relative;
        z-index: 2;
        padding: 10px 16px;
        background: var(--paper);
        border-radius: 12px;
    }
    .method-loadout { padding: 14px; grid-template-columns: 1fr; gap: 0; }
    .method-loadout > div { border-right: 0; border-bottom: 1px solid var(--line); }
    .method-loadout > .button { margin-top: 14px; }
}
@media (max-width: 520px) {
    .language-switcher { min-height: 44px; box-shadow: none; }
    .language-switcher > .ui-icon { display: none; }
    .language-switcher a { min-width: 37px; padding-inline: 6px; }
    .method-quest { min-height: 405px; }
    .method-quest-top strong { font-size: .7rem; }
    .method-quest li > span { width: 54px; height: 54px; border-radius: 16px; }
    .method-quest li > span .ui-icon { width: 24px; height: 24px; }
    .method-quest li strong { font-size: .61rem; }
}
@media (prefers-reduced-motion: reduce) {
    .method-quest,
    .method-quest-reward,
    .method-hero h1 .is-coral,
    .method-level-art { transform: none; }
    .method-quest li.is-active > span,
    .method-quest-nova { animation: none; }
}

/* v23 — inscription remise à l’échelle et boîte à outils réellement agrandie */
.auth-layout {
    grid-template-columns: minmax(560px, .94fr) minmax(660px, 1.06fr);
}
.auth-side {
    min-height: min(860px, calc(100svh - 4px));
    padding-top: clamp(42px, 6vh, 72px);
    padding-bottom: clamp(42px, 6vh, 72px);
}
.auth-side > div,
.auth-side h1 { max-width: 680px; }
.auth-side > div { transform: translateY(-72px); }
.auth-side p:not(.eyebrow) {
    max-width: calc(100% - 220px);
    font-size: 1.08rem;
    line-height: 1.55;
}
.auth-side img {
    right: clamp(24px, 4vw, 64px);
    bottom: 72px;
    width: clamp(170px, 13vw, 220px);
    height: auto;
}
.auth-form-wrap {
    padding: clamp(28px, 4vh, 44px) clamp(40px, 5vw, 76px);
}
.auth-form { width: min(100%, 620px); }
.auth-form h2 {
    margin-bottom: 12px;
    font-size: clamp(2.85rem, 3.5vw, 3.45rem);
}
.auth-form > p { font-size: .92rem; }
.form-kicker { font-size: .72rem !important; }
.auth-form label {
    margin-top: 22px;
    font-size: .82rem;
}
.auth-form input {
    height: 64px;
    padding-inline: 19px;
    font-size: .84rem;
    border-radius: 10px;
}
.auth-form label small {
    margin-top: 7px;
    font-size: .7rem;
}
.auth-form .button {
    min-height: 62px;
    font-size: .92rem;
}
.provider-block {
    min-height: 58px;
    margin-top: 28px;
}
.google-button-wrap,
.google-button-wrap > div { max-width: 100%; }
.google-button-wrap { width: 100%; overflow: hidden; }
.auth-divider {
    margin-top: 25px;
    font-size: .74rem;
}
.form-legal {
    max-width: 560px;
    margin-inline: auto;
    font-size: .7rem !important;
    line-height: 1.5;
}

.workshop { --toolbox-drawer-width: clamp(620px, 46vw, 720px); }
.toolbox-drawer {
    width: min(var(--toolbox-drawer-width), calc(100vw - 135px));
    height: min(900px, calc(100vh - 24px));
}
.toolbox-heading {
    min-height: 80px;
    padding: 16px 20px 14px 24px;
}
.toolbox-heading p { font-size: .66rem !important; }
.toolbox-heading strong { font-size: 1.22rem; }
.toolbox-close {
    width: 44px;
    height: 44px;
}
.toolbox-tabs {
    min-height: 88px;
    padding: 10px 14px;
    gap: 8px;
}
.toolbox-tabs button {
    min-height: 66px;
    padding: 7px 5px;
}
.toolbox-tabs button > span {
    width: 39px;
    height: 39px;
}
.toolbox-tabs button > span img {
    width: 24px;
    height: 24px;
}
.toolbox-tabs button b { font-size: .7rem !important; }
.toolbox-drawer .mission-panel,
.tool-page { padding: 30px 34px 38px; }
.toolbox-drawer .mission-panel h1 {
    font-size: clamp(2.35rem, 3vw, 2.9rem);
}
.toolbox-drawer .mission-story {
    font-size: .86rem;
    line-height: 1.55;
}
.toolbox-drawer .nova-coach p,
.toolbox-drawer .learning-goals summary,
.toolbox-drawer .learning-goals ul {
    font-size: .74rem;
}
.toolbox-drawer .mission-progress > div:first-child {
    font-size: .72rem;
}
.toolbox-drawer .step-dots {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}
.toolbox-drawer .step-dots li,
.toolbox-drawer .step-dots button { min-width: 0; }
.toolbox-drawer .step-dots button {
    min-height: 86px;
    padding: 9px 8px;
}
.toolbox-drawer .step-dots button span {
    width: 30px;
    height: 30px;
    flex-basis: 30px;
}
.toolbox-drawer .step-dots button small {
    overflow: visible;
    font-size: .68rem !important;
    line-height: 1.25;
    text-overflow: clip;
    white-space: normal;
}
.toolbox-drawer .instruction-card {
    padding: 25px 27px;
    border-radius: 15px;
}
.toolbox-drawer .instruction-label { font-size: .68rem; }
.toolbox-drawer .instruction-card h2 { font-size: 1.48rem; }
.toolbox-drawer .instruction-card > div {
    font-size: .9rem;
    line-height: 1.55;
}
.toolbox-drawer .button-check {
    min-height: 58px;
    font-size: .86rem;
}

@media (min-width: 1400px) {
    .workshop.toolbox-open .editor-panel {
        width: calc(100% - var(--toolbox-drawer-width) - 125px);
        margin-left: calc(var(--toolbox-drawer-width) + 125px);
    }
}
@media (min-width: 1100px) and (max-width: 1399px) {
    .toolbox-drawer { width: min(620px, calc(100vw - 135px)); }
    .workshop.toolbox-open .editor-panel {
        width: 100%;
        margin-left: 0;
    }
}
@media (max-width: 1180px) {
    .auth-layout { grid-template-columns: 1fr; }
    .auth-side {
        min-height: 560px;
        border-right: 0;
        border-bottom: 2px solid var(--ink);
    }
    .auth-form-wrap { padding-block: 58px 74px; }
    .auth-side > div { transform: translateY(-42px); }
    .auth-side img { bottom: 46px; }
}
@media (min-width: 901px) and (max-width: 1100px) {
    .site-header { gap: 16px; }
    .site-nav { gap: 20px; }
    .notification-shell { margin-left: 8px; }
}
@media (max-width: 900px) {
    .toolbox-drawer {
        top: 64px;
        right: 0;
        bottom: 0;
        left: 0;
        width: auto;
        height: auto;
        border-radius: 18px 18px 0 0;
    }
    .toolbox-tabs { min-height: 82px; }
    .toolbox-drawer .mission-panel,
    .tool-page { padding: 26px 24px 34px; }
}
@media (max-width: 600px) {
    .auth-side {
        min-height: 510px;
        padding-inline: 24px;
    }
    .auth-side h1 { font-size: clamp(2.9rem, 14vw, 4.2rem); }
    .auth-side p:not(.eyebrow) {
        max-width: calc(100% - 105px);
        font-size: .9rem;
    }
    .auth-side img { width: 118px; right: 12px; }
    .auth-side > div { transform: translateY(-24px); }
    .auth-side img { bottom: 30px; }
    .auth-form-wrap { padding: 48px 20px 70px; }
    .auth-form h2 { font-size: 2.55rem; }
    .auth-form input { height: 60px; }
    .toolbox-heading { min-height: 72px; }
    .toolbox-tabs {
        min-height: 78px;
        padding-inline: 8px;
        gap: 4px;
    }
    .toolbox-tabs button { min-height: 60px; }
    .toolbox-tabs button > span {
        width: 34px;
        height: 34px;
    }
    .toolbox-tabs button b { font-size: .64rem !important; }
    .toolbox-drawer .mission-panel,
    .tool-page { padding: 23px 18px 30px; }
    .toolbox-drawer .step-dots {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* v25 — boîte à outils concise */
.toolbox-tabs {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    min-height: 74px;
}
.toolbox-tabs button {
    min-height: 54px;
    padding-block: 5px;
}
.toolbox-tabs button > span {
    width: 33px;
    height: 33px;
}
.toolbox-drawer .mission-panel,
.tool-page {
    padding: 22px 28px 30px;
}
.toolbox-drawer .mission-panel h1 {
    margin-block: 8px 5px;
    font-size: clamp(1.8rem, 2.5vw, 2.25rem);
}
.toolbox-drawer .mission-story {
    margin-bottom: 10px;
    overflow: hidden;
    font-size: .74rem;
    line-height: 1.4;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.mission-game-hud {
    margin-block: 7px 10px;
}
.mission-game-hud > span {
    min-height: 30px;
    padding: 4px 9px;
    font-size: .59rem;
}
.toolbox-drawer .mission-progress {
    padding-block: 10px 12px;
}
.toolbox-drawer .step-dots {
    grid-template-columns: repeat(6, minmax(38px, 1fr));
    gap: 7px;
    padding-block: 12px;
}
.toolbox-drawer .step-dots button {
    min-height: 47px;
    padding: 5px;
}
.toolbox-drawer .step-dots button span {
    width: 27px;
    height: 27px;
    flex-basis: 27px;
}
.toolbox-drawer .instruction-card {
    padding: 18px 20px;
}
.toolbox-drawer .instruction-card h2 {
    margin-bottom: 8px;
    font-size: 1.22rem;
}
.toolbox-drawer .instruction-card > div {
    font-size: .78rem;
    line-height: 1.45;
}
.instruction-explanation {
    padding-top: 10px;
    margin-top: 11px;
    color: var(--ink-soft);
    border-top: 1px solid var(--line);
    font-size: .69rem;
    line-height: 1.4;
}
.toolbox-drawer .button-check {
    min-height: 52px;
    font-size: .78rem;
}
.toolbox-drawer .reset-button {
    margin-top: 8px;
    font-size: .64rem;
}
@media (max-width: 600px) {
    .toolbox-tabs { min-height: 68px; }
    .toolbox-drawer .mission-panel,
    .tool-page { padding: 18px 16px 26px; }
    .toolbox-drawer .step-dots {
        grid-template-columns: repeat(6, minmax(36px, 1fr));
        gap: 5px;
    }
    .toolbox-drawer .instruction-card { padding: 16px; }
}

/* v36 — cibles tactiles et navigation clavier de l’atelier */
.editor-tabs button,
.run-button,
.toolbar-check,
.layout-toggle,
.tour-replay,
.toolbox-close {
    min-height: 44px;
}
.editor-tabs button[aria-selected="true"],
.toolbox-tabs button[aria-selected="true"] {
    outline-offset: -3px;
}
.editor-tabs button > span:not(.dot) {
    display: grid;
    justify-items: start;
    line-height: 1.05;
}
.editor-tabs button small {
    margin-top: 3px;
    color: #aeb8c8;
    font-family: Inter, system-ui, sans-serif;
    font-size: .48rem;
    font-weight: 750;
    letter-spacing: .02em;
    text-transform: none;
}
.editor-tabs button.is-guided {
    animation: guided-file-tab .55s ease-in-out 2;
}
.instruction-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 7px;
}
.instruction-heading .instruction-label { margin: 0; }
.instruction-target {
    flex: 0 0 auto;
    padding: 5px 8px;
    color: var(--ink);
    background: var(--yellow);
    border: 1.5px solid var(--ink);
    border-radius: 999px;
    font-size: .58rem;
    font-weight: 900;
    letter-spacing: .04em;
    text-transform: uppercase;
}
@keyframes guided-file-tab {
    50% { background: #33425a; box-shadow: inset 0 4px 0 var(--yellow); }
}
.code-editor:focus-visible,
.asset-content:focus-visible {
    outline: 3px solid var(--yellow);
    outline-offset: -4px;
}
.layout-menu button:focus-visible,
.asset-list button:focus-visible {
    outline-offset: -3px;
}

/* v28 — résultat de validation central, indépendant de l'ancienne grille toast */
body.feedback-open { overflow: hidden; }
.feedback-toast,
.feedback-toast.error {
    position: fixed !important;
    z-index: 2500;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    min-width: 100vw !important;
    max-width: none !important;
    height: 100vh;
    height: 100dvh;
    min-height: 100vh;
    margin: 0 !important;
    padding: clamp(18px, 4vw, 52px);
    display: grid;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-rows: minmax(0, 1fr) !important;
    place-items: center;
    grid-column: auto !important;
    grid-row: auto !important;
    overflow: auto;
    color: var(--ink);
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    transform: none !important;
    contain: none !important;
    isolation: isolate;
    animation: none;
}
.feedback-toast[hidden] { display: none !important; }
.feedback-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 18, 33, .76);
    backdrop-filter: blur(7px);
}
.feedback-card {
    width: min(760px, 100%);
    min-width: 0;
    max-height: min(760px, calc(100svh - 36px));
    position: relative;
    z-index: 1;
    grid-column: 1 !important;
    grid-row: 1 !important;
    place-self: center;
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    overflow: auto;
    background: var(--paper);
    border: 3px solid var(--ink);
    border-radius: 26px;
    box-shadow: 12px 12px 0 var(--coral);
    animation: feedback-modal-enter .38s cubic-bezier(.16, 1, .3, 1);
}
.feedback-toast.error .feedback-card { box-shadow: 12px 12px 0 #be3f36; }
.feedback-toast.world-finished .feedback-card { box-shadow: 12px 12px 0 var(--yellow); }
.feedback-toast .feedback-close {
    width: 44px;
    height: 44px;
    position: absolute;
    z-index: 3;
    top: 14px;
    right: 14px;
    display: grid;
    place-items: center;
    color: var(--ink);
    background: rgba(255, 255, 255, .9);
    border: 2px solid var(--ink);
    border-radius: 50%;
    cursor: pointer;
    transition: transform .18s ease, background .18s ease;
}
.feedback-toast .feedback-close:hover,
.feedback-toast .feedback-close:focus-visible {
    background: #fff;
    transform: rotate(5deg) scale(1.06);
}
.feedback-stage {
    min-height: 420px;
    position: relative;
    display: grid;
    place-items: end center;
    overflow: hidden;
    background:
        radial-gradient(circle at 28% 24%, rgba(255,255,255,.95) 0 7px, transparent 8px),
        radial-gradient(circle at 76% 34%, rgba(255,255,255,.8) 0 5px, transparent 6px),
        linear-gradient(155deg, #f8d34f 0 48%, #6dd4ad 48% 100%);
    border-right: 3px solid var(--ink);
}
.feedback-toast.error .feedback-stage {
    background:
        radial-gradient(circle at 28% 24%, rgba(255,255,255,.8) 0 7px, transparent 8px),
        linear-gradient(155deg, #ff9f8f 0 48%, #ff7058 48% 100%);
}
.feedback-toast.world-finished .feedback-stage {
    background:
        radial-gradient(circle at 28% 24%, rgba(255,255,255,.95) 0 7px, transparent 8px),
        linear-gradient(155deg, #ffe979 0 48%, #7667df 48% 100%);
}
.feedback-stage::before,
.feedback-stage::after {
    position: absolute;
    content: "";
    border: 3px solid var(--ink);
    border-radius: 50%;
    opacity: .22;
}
.feedback-stage::before {
    width: 230px;
    height: 230px;
    top: 44px;
    left: -72px;
}
.feedback-stage::after {
    width: 120px;
    height: 120px;
    top: 108px;
    right: -58px;
}
.feedback-stage > img {
    width: 150px;
    height: 150px;
    position: relative;
    z-index: 2;
    margin-bottom: 38px;
    object-fit: contain;
    filter: drop-shadow(7px 9px 0 rgba(23, 32, 51, .22));
    animation: feedback-mascot-bounce 2.3s ease-in-out infinite;
}
.feedback-icon,
.feedback-toast.error .feedback-icon {
    width: 68px;
    height: 68px;
    position: absolute;
    z-index: 3;
    top: 48px;
    left: 50%;
    display: grid;
    place-items: center;
    color: #fff;
    background: var(--success-dark);
    border: 3px solid var(--ink);
    border-radius: 20px;
    box-shadow: 6px 6px 0 var(--ink);
    transform: translateX(-50%) rotate(-4deg);
}
.feedback-toast.error .feedback-icon { background: #be3f36; }
.feedback-toast.world-finished .feedback-icon { background: #7667df; }
.feedback-stage > i {
    width: 16px;
    height: 16px;
    position: absolute;
    z-index: 1;
    background: #fff;
    border: 2px solid var(--ink);
    transform: rotate(45deg);
}
.feedback-stage > i:nth-of-type(1) { top: 190px; left: 28px; }
.feedback-stage > i:nth-of-type(2) { top: 226px; right: 26px; width: 11px; height: 11px; }
.feedback-stage > i:nth-of-type(3) { bottom: 48px; left: 34px; width: 9px; height: 9px; }
.feedback-copy {
    min-width: 0;
    padding: 52px 48px 42px;
}
.feedback-kicker {
    margin: 0 0 8px !important;
    color: #6153cf !important;
    font-size: .63rem !important;
    font-weight: 950;
    letter-spacing: .16em;
}
.feedback-toast.error .feedback-kicker { color: #a6342c !important; }
.feedback-progress {
    display: inline-flex;
    min-height: 29px;
    padding: 4px 10px;
    align-items: center;
    color: var(--ink);
    background: #fff4b8;
    border: 1.5px solid var(--ink);
    border-radius: 999px;
    font-family: ui-monospace, monospace;
    font-size: .6rem;
    font-weight: 900;
}
.feedback-copy h2,
.feedback-toast strong#feedback-title {
    margin: 18px 50px 10px 0;
    font-size: clamp(2rem, 4.5vw, 3rem);
    line-height: .98;
    letter-spacing: -.045em;
}
.feedback-toast p#feedback-text {
    margin: 0;
    color: var(--ink-soft);
    font-size: .84rem;
    font-weight: 650;
    line-height: 1.55;
}
.feedback-rewards {
    min-height: 38px;
    margin-top: 17px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}
.feedback-rewards > span {
    min-height: 31px;
    padding: 5px 10px;
    margin: 0;
    align-items: center;
    border: 1.5px solid var(--ink);
    border-radius: 999px;
    font-size: .61rem;
}
.feedback-details {
    margin-top: 16px;
    overflow: hidden;
    background: #fff;
    border: 2px solid var(--ink);
    border-radius: 13px;
}
.feedback-details[hidden] { display: none; }
.feedback-details summary {
    min-height: 49px;
    padding: 12px 42px 12px 15px;
    position: relative;
    display: flex;
    align-items: center;
    font-size: .7rem;
    font-weight: 900;
    cursor: pointer;
    list-style: none;
}
.feedback-details summary::-webkit-details-marker { display: none; }
.feedback-details summary::after {
    width: 24px;
    height: 24px;
    position: absolute;
    right: 12px;
    display: grid;
    place-items: center;
    content: "+";
    color: #fff;
    background: var(--ink);
    border-radius: 50%;
    font-size: .9rem;
}
.feedback-details[open] summary::after { content: "−"; }
.feedback-toast .feedback-help {
    padding: 13px 15px 15px;
    margin: 0;
    color: #4f596b;
    border-top: 1px solid var(--line);
    font-size: .7rem;
    line-height: 1.55;
}
.feedback-actions {
    margin-top: 20px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px;
}
.feedback-actions button {
    min-height: 50px;
    padding: 10px 15px;
    border: 2px solid var(--ink);
    border-radius: 10px;
    font-size: .7rem;
    font-weight: 900;
    cursor: pointer;
    grid-column: auto;
}
.feedback-actions .feedback-dismiss {
    color: var(--ink);
    background: #fff;
}
.feedback-actions .feedback-primary {
    color: #fff;
    background: var(--ink);
    box-shadow: 4px 4px 0 var(--coral);
}
.feedback-toast.error .feedback-actions .feedback-primary { display: none; }
.feedback-actions .feedback-primary:hover,
.feedback-actions .feedback-primary:focus-visible {
    box-shadow: 2px 2px 0 var(--coral);
    transform: translate(2px, 2px);
}
.feedback-actions .feedback-dismiss:hover,
.feedback-actions .feedback-dismiss:focus-visible { background: #f3f0e8; }

@keyframes feedback-modal-enter {
    from { opacity: 0; transform: translateY(28px) scale(.94) rotate(-1deg); }
    to { opacity: 1; transform: translateY(0) scale(1) rotate(0); }
}
@keyframes feedback-mascot-bounce {
    50% { transform: translateY(-8px) rotate(2deg); }
}
@media (max-width: 680px) {
    .feedback-toast { padding: 12px; }
    .feedback-card {
        max-height: calc(100svh - 24px);
        grid-template-columns: 1fr;
        border-radius: 20px;
        box-shadow: 7px 7px 0 var(--coral);
    }
    .feedback-stage {
        min-height: 128px;
        place-items: center start;
        border-right: 0;
        border-bottom: 3px solid var(--ink);
    }
    .feedback-stage > img {
        width: 104px;
        height: 104px;
        position: absolute;
        right: 28px;
        bottom: -4px;
        margin: 0;
    }
    .feedback-icon {
        top: 28px;
        left: 48px;
        transform: rotate(-4deg);
    }
    .feedback-stage > i,
    .feedback-stage::before,
    .feedback-stage::after { display: none; }
    .feedback-copy { padding: 26px 20px 22px; }
    .feedback-copy h2,
    .feedback-toast strong#feedback-title {
        margin-top: 14px;
        font-size: clamp(1.9rem, 10vw, 2.6rem);
    }
    .feedback-actions { grid-template-columns: 1fr; }
    .feedback-actions button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
    .feedback-card,
    .feedback-stage > img { animation: none; }
}

/* v32 — aides lisibles, compactes et pilotées par les droits serveur */
.tips-page .help-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}
.tips-page .hint-toggle,
.tips-page .example-toggle,
.tips-page .autocomplete-toggle {
    min-height: 70px;
    padding: 12px 14px;
    grid-column: auto;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 3px 3px 0 rgba(23,32,51,.14);
    font-size: .72rem;
}
.tips-page .help-actions button > span {
    min-width: 0;
    display: grid;
    gap: 3px;
}
.tips-page .help-actions button b {
    color: var(--text-muted);
    font-size: .61rem;
    font-weight: 800;
}
.tips-page .autocomplete-toggle b { color: #d7dceb; }
.dictionary-sheet { min-height: 0; }
.dictionary-examples {
    padding-top: 15px;
    margin-top: 15px;
    display: grid;
    gap: 11px;
    border-top: 1px dashed #cfc6b6;
}
.dictionary-examples article {
    padding: 12px;
    background: #fffdf8;
    border: 1px solid var(--line);
    border-radius: 9px;
}
.dictionary-examples strong,
.dictionary-examples p,
.dictionary-examples code { display: block; }
.dictionary-examples strong { font-size: .72rem; }
.dictionary-examples p {
    margin: 4px 0 9px;
    color: var(--ink-soft);
    font-size: .65rem;
    line-height: 1.45;
}
.dictionary-examples code {
    padding: 9px;
    overflow-x: auto;
    color: #8a3040;
    background: #f7e9ec;
    border-radius: 6px;
    font-family: ui-monospace, monospace;
    font-size: .62rem;
    line-height: 1.45;
    white-space: pre-wrap;
}
@media (max-width: 720px) {
    .tips-page .help-actions { grid-template-columns: 1fr; }
}

/* v32 — bêta visible, pass Plus et suppression des micro-textes décoratifs */
.site-status-backdrop { cursor: default; }
.site-status-modal > section {
    isolation: isolate;
    text-align: center;
}
.site-status-modal > section::before {
    width: 132px;
    height: 132px;
    position: absolute;
    z-index: -1;
    top: 24px;
    left: 50%;
    content: "";
    background: var(--yellow);
    border: 2px solid var(--ink);
    border-radius: 50%;
    transform: translateX(-50%) rotate(-4deg);
}
.site-status-modal > section > img { margin-inline: auto; position: relative; }
.site-status-modal h2 + p { max-width: 480px; margin-inline: auto; line-height: 1.55; }
.site-status-modal h2 + p a { color: var(--ink); font-weight: 900; }
.site-status-modal [data-beta-accept] { min-width: min(100%, 290px); margin-top: 24px; }
.site-status-modal [data-beta-accept]:disabled {
    color: #626b7d;
    background: #e9e6df;
    box-shadow: none;
    cursor: wait;
    opacity: 1;
}

.route-alert.is-success { background: #dcf7ed; border-color: var(--success-dark); }
.course-pass-panel {
    margin: 18px 22px 0;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    background: #fff6c8;
    border: 2px solid var(--ink);
    border-radius: var(--radius-m);
    box-shadow: 5px 5px 0 var(--violet);
}
.course-pass-panel p {
    margin: 0 0 3px;
    color: #6254bb;
    font-family: ui-monospace, monospace;
    font-size: .62rem;
    font-weight: 950;
    letter-spacing: .09em;
}
.course-pass-panel h3 { margin: 0; font-size: 1.2rem; }
.course-pass-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 10px;
}
.course-pass-actions form { margin: 0; }
.course-pass-actions .button { min-height: 46px; padding-inline: 16px; font-size: .7rem; }
.course-pass-actions > span {
    min-height: 42px;
    padding: 9px 12px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--ink-soft);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 9px;
    font-size: .66rem;
    font-weight: 800;
}
.course-pass-actions .course-pass-active {
    color: var(--success-dark);
    background: #dcf7ed;
    border-color: var(--success-dark);
}
.plan-trial {
    width: fit-content;
    margin: -6px 0 2px;
    padding: 7px 9px;
    color: var(--success-dark);
    background: #dcf7ed;
    border: 1px solid var(--success-dark);
    border-radius: 8px;
    font-size: .63rem;
    font-weight: 900;
}
.layout-menu button { min-height: 48px; }
.toolbox-trigger-copy { align-content: center; }

@media (max-width: 760px) {
    .course-pass-panel { margin-inline: 12px; align-items: stretch; flex-direction: column; }
    .course-pass-actions { align-items: stretch; flex-direction: column; }
    .course-pass-actions form,
    .course-pass-actions .button,
    .course-pass-actions > span { width: 100%; }
}

/* v33 · Notes de version */
.patchnotes-main { max-width: 1120px; }
.patchnotes-hero { max-width: 850px; padding: 70px 0 38px; }
.patchnotes-hero h1 { margin: 8px 0 15px; font-size: clamp(3rem, 7vw, 6.6rem); line-height: .94; letter-spacing: -.065em; }
.patchnotes-hero > p:last-child { max-width: 670px; color: var(--ink-soft); font-size: .88rem; line-height: 1.6; }
.release-list { padding-bottom: 90px; }
.release-card {
    overflow: hidden;
    background: #fff;
    border: 2px solid var(--ink);
    border-radius: 22px;
    box-shadow: 10px 10px 0 var(--coral);
}
.release-card > header { padding: 34px; background: linear-gradient(125deg, #fff6c8, #eefbf6); border-bottom: 2px solid var(--ink); }
.release-card > header > span,
.release-card > header > time {
    margin-right: 7px;
    padding: 6px 9px;
    display: inline-block;
    background: #fff;
    border: 1px solid var(--ink);
    border-radius: 999px;
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: .62rem;
    font-weight: 900;
}
.release-card h2 { margin: 20px 0 8px; font-size: clamp(2rem, 4vw, 3.5rem); }
.release-card > header > p { max-width: 740px; margin: 0; color: var(--ink-soft); font-size: .82rem; line-height: 1.55; }
.release-change-grid { padding: 26px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.release-change-grid section { min-height: 125px; padding: 18px; display: grid; grid-template-columns: 52px 1fr; gap: 14px; background: var(--paper); border: 1px solid var(--line); border-radius: 13px; }
.release-change-grid section > span { width: 50px; height: 50px; display: grid; place-items: center; background: var(--yellow); border: 2px solid var(--ink); border-radius: 13px; }
.release-change-grid h3 { margin: 2px 0 5px; font-size: .95rem; }
.release-change-grid p { margin: 0; color: var(--ink-soft); font-size: .69rem; line-height: 1.45; }
@media (max-width: 680px) {
    .patchnotes-hero { padding-top: 44px; }
    .release-card > header { padding: 24px 20px; }
    .release-change-grid { padding: 16px; grid-template-columns: 1fr; }
}

.blog-hero { max-width: 850px; padding: 70px 0 38px; }
.blog-hero h1 { margin: 8px 0 15px; font-size: clamp(2.6rem, 6vw, 4.6rem); line-height: 1; letter-spacing: -.03em; }
.blog-hero > p:last-child { max-width: 620px; color: var(--ink-soft); font-size: .95rem; line-height: 1.6; }
.blog-list { padding-bottom: 90px; display: grid; gap: 18px; }
.blog-card {
    padding: 28px 30px;
    display: block;
    background: #fff;
    border: 2px solid var(--ink);
    border-radius: var(--radius-l);
    box-shadow: 8px 8px 0 var(--mint);
    text-decoration: none;
    color: var(--ink);
    transition: transform .18s ease, box-shadow .18s ease;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: 10px 12px 0 var(--mint); }
.blog-card time { display: inline-block; margin-bottom: 10px; padding: 6px 9px; background: var(--paper); border: 1px solid var(--ink); border-radius: 999px; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .62rem; font-weight: 900; }
.blog-card h2 { margin: 0 0 8px; font-size: 1.5rem; }
.blog-card p { margin: 0 0 14px; color: var(--ink-soft); font-size: .88rem; line-height: 1.55; }
.blog-card-cta { display: inline-flex; align-items: center; gap: 6px; font-weight: 900; font-size: .82rem; }

.blog-back { display: inline-flex; align-items: center; gap: 6px; margin: 34px 0 24px; color: var(--ink-soft); font-weight: 800; font-size: .82rem; text-decoration: none; }
.blog-article { max-width: 700px; margin: 0 auto; padding: 40px; background: #fff; border: 2px solid var(--ink); border-radius: var(--radius-l); box-shadow: 10px 10px 0 var(--mint); }
.blog-article > header time { display: inline-block; margin-bottom: 14px; padding: 6px 9px; background: var(--paper); border: 1px solid var(--ink); border-radius: 999px; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .62rem; font-weight: 900; }
.blog-article h1 { margin: 0 0 14px; font-size: clamp(1.9rem, 4vw, 2.7rem); line-height: 1.08; }
.blog-article-lead { margin: 0 0 30px; color: var(--ink-soft); font-size: 1rem; line-height: 1.6; }
.blog-article section { margin-top: 30px; padding-top: 26px; border-top: 1px solid var(--line); }
.blog-article h2 { margin: 0 0 12px; font-size: 1.25rem; }
.blog-article p { margin: 0 0 14px; color: var(--ink-soft); font-size: .92rem; line-height: 1.65; }
.blog-article p:last-child { margin-bottom: 0; }
.blog-article code { padding: 2px 6px; background: var(--paper); border: 1px solid var(--line); border-radius: 5px; font-size: .85em; }
.blog-cta { max-width: 700px; margin: 26px auto 90px; padding: 26px 30px; display: flex; align-items: center; justify-content: space-between; gap: 16px; background: var(--yellow); border: 2px solid var(--ink); border-radius: var(--radius-l); box-shadow: 8px 8px 0 var(--ink); text-decoration: none; color: var(--ink); }
.blog-cta span { display: block; font-size: .72rem; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }
.blog-cta strong { font-size: 1.05rem; }
@media (max-width: 680px) {
    .blog-article { padding: 26px 20px; }
    .blog-cta { flex-direction: column; align-items: flex-start; }
}

.leaderboard-hero { max-width: 850px; padding: 70px 0 30px; }
.leaderboard-hero h1 { margin: 8px 0 15px; font-size: clamp(2.6rem, 6vw, 4.6rem); line-height: 1; letter-spacing: -.03em; }
.leaderboard-hero > p:last-child { max-width: 620px; color: var(--ink-soft); font-size: .95rem; line-height: 1.6; }
.leaderboard-empty { padding: 40px 0 90px; color: var(--ink-soft); font-size: .95rem; }
.leaderboard-list { margin: 0 0 20px; padding: 0; list-style: none; display: grid; gap: 10px; }
.leaderboard-row { padding: 14px 20px; display: grid; grid-template-columns: 44px 40px 1fr auto; align-items: center; gap: 14px; background: #fff; border: 2px solid var(--ink); border-radius: var(--radius-m); }
.leaderboard-row.is-me { background: var(--mint); box-shadow: 5px 5px 0 var(--ink); }
.leaderboard-rank { color: var(--ink-soft); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-weight: 900; font-size: .85rem; }
.leaderboard-avatar { width: 40px; height: 40px; display: grid; place-items: center; color: #fff; background: var(--violet); border: 2px solid var(--ink); border-radius: 50%; font-weight: 900; }
.leaderboard-name { font-weight: 850; }
.leaderboard-name small { color: var(--ink-soft); font-weight: 700; }
.leaderboard-score { color: var(--ink-soft); font-size: .8rem; font-weight: 800; white-space: nowrap; }
.leaderboard-own-rank { margin: 0 0 90px; padding: 16px 20px; background: var(--paper); border: 1.5px dashed var(--ink); border-radius: var(--radius-m); font-size: .9rem; }
@media (max-width: 560px) {
    .leaderboard-row { grid-template-columns: 32px 34px 1fr; }
    .leaderboard-score { grid-column: 2 / -1; }
}

.share-main { display: grid; place-items: center; min-height: 60vh; padding-block: 70px; }
.share-card { max-width: 480px; padding: 46px 38px; text-align: center; background: #fff; border: 2px solid var(--ink); border-radius: var(--radius-l); box-shadow: 10px 10px 0 var(--mint); }
.share-avatar { width: 64px; height: 64px; margin: 0 auto 18px; font-size: 1.5rem; }
.share-card .eyebrow { justify-content: center; }
.share-card h1 { margin: 10px 0 8px; font-size: clamp(1.6rem, 4vw, 2.2rem); line-height: 1.15; }
.share-card > p { margin: 0 0 26px; color: var(--ink-soft); }

/* v38.1 · Les Bits rejoignent réellement le stock */
.bits-flight-particle {
    position: fixed;
    z-index: 10060;
    width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
    pointer-events: none;
    filter: drop-shadow(2px 3px 0 rgba(23,32,51,.28));
    will-change: transform, opacity;
}
.bits-flight-particle img { width: 100%; height: 100%; object-fit: contain; }
.bits-flight-particle.is-major { width: 30px; height: 30px; filter: drop-shadow(0 0 9px rgba(255,214,77,.92)) drop-shadow(3px 4px 0 rgba(23,32,51,.32)); }
.bits-source-burst {
    position: fixed;
    z-index: 10055;
    width: 58px;
    height: 58px;
    pointer-events: none;
    border: 4px solid var(--yellow);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: bits-source-pop .72s cubic-bezier(.16,1,.3,1) both;
}
.bits-source-burst::before,
.bits-source-burst::after {
    position: absolute;
    inset: -15px;
    content: "";
    border: 3px dashed var(--coral);
    border-radius: inherit;
}
.bits-source-burst::after { inset: -28px; border-color: var(--violet); animation-delay: .08s; }
.bits-source-burst.is-major { width: 92px; height: 92px; border-width: 7px; box-shadow: 0 0 0 13px rgba(255,214,77,.2); animation-duration: 1.05s; }
.nav-game-stats.bits-stock-receiving,
.mission-game-hud > span.bits-stock-receiving,
.bits-stock-receiving {
    position: relative;
    z-index: 4;
    animation: bits-stock-catch .7s cubic-bezier(.16,1,.3,1);
}
.nav-game-stats.bits-stock-receiving span:last-child,
.mission-game-hud > span.bits-stock-receiving {
    background: var(--yellow);
    border-radius: 999px;
    box-shadow: 0 0 0 6px rgba(255,214,77,.28);
}
.nav-game-stats.bits-stock-major {
    animation: bits-stock-jackpot 1.1s cubic-bezier(.16,1,.3,1);
}
.nav-game-stats.bits-stock-major::after {
    position: absolute;
    inset: -10px;
    content: "";
    pointer-events: none;
    border: 3px solid var(--yellow);
    border-radius: 999px;
    animation: bits-stock-ring .95s ease-out both;
}
.nav-game-stats.is-bits-full { border-color: var(--coral); box-shadow: 3px 3px 0 var(--coral); }
.nav-game-stats.is-bits-full span:last-child { position: relative; color: #7f2631; background: #fff0ed; border-radius: 999px; }
.nav-game-stats.is-bits-full span:last-child::after {
    position: absolute;
    width: 7px;
    height: 7px;
    right: -5px;
    top: -5px;
    content: "";
    background: var(--coral);
    border: 1px solid var(--ink);
    border-radius: 50%;
}
.bits-gain-toast {
    position: fixed;
    z-index: 10070;
    left: 50%;
    top: 92px;
    max-width: min(440px, calc(100vw - 30px));
    padding: 10px 18px;
    color: var(--ink);
    background: var(--yellow);
    border: 2px solid var(--ink);
    border-radius: 999px;
    box-shadow: 5px 5px 0 var(--coral);
    font-size: .8rem;
    font-weight: 950;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -18px) scale(.82);
    transition: opacity .18s ease, transform .35s cubic-bezier(.16,1,.3,1);
}
.bits-gain-toast.is-visible { opacity: 1; transform: translate(-50%, 0) scale(1); }
.bits-gain-toast.is-major {
    padding: 15px 24px;
    color: #fff;
    background: var(--violet);
    box-shadow: 7px 7px 0 var(--yellow);
    font-size: 1rem;
    animation: bits-major-toast .8s cubic-bezier(.16,1,.3,1);
}
.bits-cap-notice {
    position: fixed;
    z-index: 10080;
    left: 50%;
    bottom: 24px;
    width: min(650px, calc(100vw - 28px));
    padding: 16px 54px 16px 16px;
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 13px;
    align-items: start;
    color: var(--ink);
    background: #fff6c8;
    border: 2px solid var(--ink);
    border-radius: 17px;
    box-shadow: 8px 8px 0 var(--coral);
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, 28px) scale(.96);
    transition: opacity .2s ease, visibility .2s ease, transform .36s cubic-bezier(.16,1,.3,1);
}
.bits-cap-notice.is-visible { opacity: 1; visibility: visible; transform: translate(-50%, 0) scale(1); }
.bits-cap-notice > img {
    width: 44px;
    height: 44px;
    padding: 8px;
    background: var(--yellow);
    border: 2px solid var(--ink);
    border-radius: 12px;
}
.bits-cap-notice strong { display: block; margin: 0 0 5px; font-size: .78rem; line-height: 1.28; }
.bits-cap-notice p { margin: 0 0 10px; color: var(--ink-soft); font-size: .68rem; line-height: 1.45; }
.bits-cap-notice .button { min-height: 38px; padding: 8px 12px; font-size: .62rem; }
.bits-cap-close {
    position: absolute;
    top: 9px;
    right: 10px;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    color: var(--ink);
    background: #fff;
    border: 1.5px solid var(--ink);
    border-radius: 50%;
    font-size: 1.15rem;
    line-height: 1;
    cursor: pointer;
}
@keyframes bits-source-pop {
    0% { opacity: 0; transform: translate(-50%, -50%) scale(.2) rotate(-18deg); }
    36% { opacity: 1; transform: translate(-50%, -50%) scale(1.1) rotate(7deg); }
    100% { opacity: 0; transform: translate(-50%, -50%) scale(1.65) rotate(24deg); }
}
@keyframes bits-stock-catch {
    0%,100% { transform: translateY(0) scale(1); }
    35% { transform: translateY(-6px) scale(1.13) rotate(-3deg); }
    62% { transform: translateY(2px) scale(.97) rotate(2deg); }
}
@keyframes bits-stock-jackpot {
    0%,100% { transform: translateY(0) scale(1); filter: none; }
    30% { transform: translateY(-9px) scale(1.22) rotate(-5deg); filter: drop-shadow(0 0 10px rgba(255,214,77,.95)); }
    52% { transform: translateY(2px) scale(.94) rotate(4deg); }
    72% { transform: translateY(-3px) scale(1.08) rotate(-2deg); }
}
@keyframes bits-stock-ring {
    from { opacity: 1; transform: scale(.68); }
    to { opacity: 0; transform: scale(1.45); }
}
@keyframes bits-major-toast {
    0% { filter: brightness(1); }
    35% { filter: brightness(1.45); }
    100% { filter: brightness(1); }
}
@media (max-width: 620px) {
    .bits-gain-toast { top: 76px; font-size: .7rem; }
    .bits-cap-notice { bottom: 14px; grid-template-columns: 38px 1fr; padding: 14px 48px 14px 13px; }
    .bits-cap-notice > img { width: 38px; height: 38px; padding: 7px; }
}
@media (prefers-reduced-motion: reduce) {
    .bits-flight-particle,
    .bits-source-burst { display: none !important; }
    .bits-stock-receiving,
    .bits-stock-major,
    .bits-gain-toast,
    .bits-cap-notice { animation: none !important; transition: none !important; }
}

/* ================================================================
   v41 · Projects, guided help and Visual Code
   ================================================================ */
.project-hub {
    position: relative;
    isolation: isolate;
    padding-bottom: 120px;
}
.project-hub::before,
.project-hub::after {
    content: "";
    position: absolute;
    z-index: -1;
    border-radius: 50%;
    filter: blur(2px);
    pointer-events: none;
}
.project-hub::before {
    width: 340px;
    height: 340px;
    top: 120px;
    right: -120px;
    background: color-mix(in srgb, var(--violet) 13%, transparent);
}
.project-hub::after {
    width: 260px;
    height: 260px;
    bottom: 90px;
    left: -110px;
    background: color-mix(in srgb, var(--mint) 20%, transparent);
}
.project-hub .project-hub-hero {
    min-height: 470px;
    padding: 88px 0 62px;
    grid-template-columns: minmax(0, 1fr) minmax(290px, .4fr);
    align-items: center;
}
.project-hub .project-hub-hero h1 {
    max-width: 950px;
    margin: 18px 0 24px;
    font-size: clamp(4rem, 7.6vw, 7.4rem);
    line-height: .86;
    letter-spacing: -.075em;
}
.project-hub .project-hub-hero > div > p:last-child {
    max-width: 760px;
    font-size: clamp(.92rem, 1.3vw, 1.08rem);
    line-height: 1.55;
}
.project-offer-counts {
    position: relative;
    width: min(390px, 100%);
    min-width: 0;
    padding: 24px 20px 20px;
    display: block !important;
    background: var(--paper);
    border: 2px solid var(--ink);
    border-radius: 26px;
    box-shadow: 9px 9px 0 var(--yellow);
    justify-self: end;
    transform: rotate(1deg);
}
.project-offer-counts__badge {
    position: absolute;
    top: -20px;
    right: 22px;
    padding: 8px 14px;
    margin: 0;
    background: var(--yellow);
    border: 2px solid var(--ink);
    border-radius: 999px;
    font-family: ui-monospace, monospace;
    font-size: .68rem;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
    white-space: nowrap;
}
.project-offer-counts__badge b {
    min-width: 0;
    display: inline;
    font-size: inherit;
    line-height: inherit;
}
.project-offer-counts ul {
    padding: 0;
    margin: 0;
    display: grid;
    gap: 10px;
    list-style: none;
}
.project-offer-counts li {
    min-width: 0;
    min-height: 68px;
    padding: 10px 14px;
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    align-items: center;
    gap: 14px;
    background: #fffefa;
    border: 2px solid var(--ink);
    border-radius: 16px;
    box-shadow: 3px 3px 0 rgba(16, 24, 39, .12);
}
.project-offer-counts li.is-plus { background: #fff5c9; }
.project-offer-counts li.is-premium { color: #fff; background: var(--ink); }
.project-offer-counts li > b {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    background: #fff;
    border: 2px solid currentColor;
    border-radius: 14px;
    font-size: 1.55rem;
    line-height: 1;
}
.project-offer-counts li.is-plus > b { background: var(--yellow); }
.project-offer-counts li.is-premium > b { color: var(--ink); background: var(--violet-soft); }
.project-offer-counts li > span {
    min-width: 0;
    overflow-wrap: anywhere;
    font-size: .88rem !important;
    font-weight: 900;
    line-height: 1.2;
}
.project-filters {
    position: sticky;
    z-index: 8;
    top: 82px;
    width: max-content;
    max-width: 100%;
    padding: 7px;
    margin: 0 auto 38px;
    display: flex;
    gap: 5px;
    overflow-x: auto;
    background: var(--ink);
    border: 2px solid var(--ink);
    border-radius: 999px;
    box-shadow: 0 7px 0 rgba(16, 24, 39, .17);
    scrollbar-width: none;
}
.project-filters::-webkit-scrollbar { display: none; }
.project-filters button {
    min-height: 46px;
    padding: 8px 17px;
    flex: 0 0 auto;
    color: #fff;
    background: transparent;
    border: 0;
    border-radius: 999px;
    font: inherit;
    font-size: .76rem;
    font-weight: 850;
    cursor: pointer;
}
.project-filters button span {
    min-width: 25px;
    min-height: 25px;
    margin-left: 6px;
    display: inline-grid;
    place-items: center;
    color: var(--ink);
    background: rgba(255, 255, 255, .8);
    border-radius: 50%;
    font-size: .65rem;
}
.project-filters button.active {
    color: var(--ink);
    background: var(--yellow);
}
.project-grid.project-grid-v41 {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 30px;
    align-items: stretch;
}
.project-grid-v41 .project-card-v41 {
    --project-color: var(--coral);
    --project-shadow-color: color-mix(in srgb, var(--coral) 82%, #7b3028);
    grid-column: span 4;
    min-width: 0;
    min-height: 650px;
    display: grid;
    grid-template-rows: 220px 1fr;
    overflow: hidden;
    color: var(--ink);
    background: #fffefa;
    border: 2px solid var(--ink);
    border-radius: 28px;
    box-shadow: 10px 11px 0 var(--project-shadow-color);
    transform: none;
    transition: transform .2s ease, box-shadow .2s ease;
}
.project-grid-v41 .project-card-v41.plan-plus {
    --project-color: var(--yellow);
    --project-shadow-color: #dbb52d;
    grid-column: span 6;
}
.project-grid-v41 .project-card-v41.plan-premium {
    --project-color: var(--violet);
    --project-shadow-color: #5c4fc2;
    color: #fff;
    background: var(--ink);
}
/* v41, Lot 7 — identité par projet plutôt que par offre : --project-color
   encodait jusqu'ici uniquement l'offre (corail/jaune/violet, 3 couleurs
   pour 8 projets). Un sélecteur d'id, plus spécifique que .plan-*, distingue
   maintenant chacun des huit sans toucher à la mise en page ni au contraste
   du texte (déjà géré par .plan-premium ci-dessus). */
#projet-quiz-explorateurs.project-card-v41 { --project-color: #2fb8a6; --project-shadow-color: #1f7c6f; }
#projet-defi-reflexe.project-card-v41 { --project-color: #ef5f8f; --project-shadow-color: #b53f66; }
#projet-arcade-esquive.project-card-v41 { --project-color: #3fa8e0; --project-shadow-color: #2b76a0; }
#projet-rpg-tactique.project-card-v41 { --project-color: #d1495b; --project-shadow-color: #8f303e; }
#projet-rogue-station.project-card-v41 { --project-color: #29a06f; --project-shadow-color: #1c6d4c; }
.project-grid-v41 .project-card-v41:hover,
.project-grid-v41 .project-card-v41:focus-within {
    transform: translate(-3px, -4px);
    box-shadow: 14px 15px 0 var(--project-shadow-color);
}
.project-grid-v41 .project-card-v41[hidden] { display: none; }
.project-grid-v41 .project-card-scene {
    position: relative;
    min-height: 0;
    overflow: hidden;
    background-image: linear-gradient(180deg, transparent 30%, rgba(16,24,39,.25)), var(--project-scene);
    background-size: cover;
    background-position: center;
    border: 0;
    border-bottom: 2px solid var(--ink);
    filter: none;
}
.project-grid-v41 .project-card-scene::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 20% 15%, rgba(255,255,255,.34), transparent 30%);
}
.project-grid-v41 .project-card-scene > span,
.project-grid-v41 .project-card-scene > b,
.project-grid-v41 .project-card-scene > i {
    position: absolute;
    z-index: 2;
    border: 2px solid var(--ink);
    box-shadow: 3px 4px 0 rgba(16,24,39,.3);
}
.project-grid-v41 .project-card-scene > span {
    width: 58px;
    height: 58px;
    left: 18px;
    bottom: 17px;
    display: grid;
    place-items: center;
    background: var(--project-color);
    border-radius: 17px;
}
.project-grid-v41 .project-card-scene > b {
    top: 17px;
    left: 18px;
    padding: 8px 11px;
    background: #fffefa;
    border-radius: 999px;
    font-family: ui-monospace, monospace;
    font-size: .72rem;
}
.project-grid-v41 .project-card-scene > i {
    right: 17px;
    bottom: 17px;
    padding: 7px 11px;
    display: flex;
    align-items: center;
    gap: 7px;
    color: var(--ink);
    background: var(--yellow);
    border-radius: 999px;
    font-size: .68rem;
    font-style: normal;
    font-weight: 900;
}
.project-grid-v41 .project-card-body {
    min-height: 0;
    padding: 25px 26px 27px;
    display: flex;
    flex-direction: column;
}
.project-grid-v41 .project-card-topline span {
    color: #5e50bf;
    font-size: .66rem;
    line-height: 1.35;
}
.project-grid-v41 .plan-premium .project-card-topline span { color: #c8c2ff; }
.project-grid-v41 .plan-chip {
    padding: 5px 9px;
    color: var(--ink) !important;
    background: var(--project-color);
    border: 1px solid currentColor;
    border-radius: 999px;
}
.project-grid-v41 .project-card h2 {
    margin: 14px 0 9px;
    font-size: clamp(1.65rem, 2.5vw, 2.25rem);
    letter-spacing: -.045em;
}
.project-grid-v41 .project-deliverable {
    min-height: auto;
    color: var(--ink-soft);
    font-size: .82rem;
    line-height: 1.5;
}
.project-grid-v41 .plan-premium .project-deliverable,
.project-grid-v41 .plan-premium .project-card-body > small { color: #c4ccda; }
.project-systems {
    margin: 20px 0 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}
.project-systems span {
    padding: 6px 9px;
    color: var(--ink);
    background: color-mix(in srgb, var(--project-color) 24%, #fffefa);
    border: 1px solid currentColor;
    border-radius: 999px;
    font-size: .65rem;
    font-weight: 800;
}
.project-checkpoint-rail {
    position: relative;
    margin: 2px 0 18px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}
.project-checkpoint-rail::before {
    content: "";
    position: absolute;
    top: 8px;
    left: 9%;
    right: 9%;
    height: 4px;
    background: #d7d6d0;
    border: 1px solid currentColor;
    border-radius: 999px;
}
.project-checkpoint-rail span {
    position: relative;
    z-index: 1;
    display: grid;
    justify-items: center;
    gap: 5px;
}
.project-checkpoint-rail i {
    width: 18px;
    height: 18px;
    display: block;
    background: #eeece6;
    border: 2px solid currentColor;
    border-radius: 50%;
}
.project-checkpoint-rail .is-reached i {
    background: var(--project-color);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--project-color) 25%, transparent);
}
.project-checkpoint-rail b { font-family: ui-monospace, monospace; font-size: .62rem; }
.project-facts {
    padding: 14px 0 !important;
    margin: 0 0 16px !important;
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px !important;
    border-top: 1px solid rgba(100,105,112,.25) !important;
    border-bottom: 1px solid rgba(100,105,112,.25);
}
.project-facts li {
    min-width: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px !important;
    font-size: .65rem !important;
}
.project-facts li span { overflow-wrap: anywhere; }
.project-grid-v41 .project-progress { height: 10px; margin-top: 0; }
.project-grid-v41 .project-progress span { background: var(--project-color); }
.project-extension-note,
.project-lock-note {
    margin: 11px 0 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: .7rem;
    line-height: 1.45;
}
.project-lock-note {
    padding: 12px;
    color: var(--ink);
    background: #f0edff;
    border: 1px solid #9b8ef0;
    border-radius: 13px;
}
.project-lock-note span { display: grid; gap: 2px; }
.project-lock-note small { font-size: .64rem; }
.project-mastery-score {
    margin: 10px 0 15px;
    display: flex;
    align-items: center;
    gap: 4px;
}
.project-mastery-score span { opacity: .22; filter: grayscale(1); }
.project-mastery-score span.is-earned { opacity: 1; filter: none; }
.project-mastery-score b { margin-left: auto; font-family: ui-monospace, monospace; font-size: .7rem; }
.project-grid-v41 .project-card .button {
    min-height: 54px;
    margin-top: auto;
    justify-content: center;
}
.project-grid-v41 .is-locked .project-card-scene { filter: grayscale(.35) saturate(.65); }

.tips-page .help-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}
.tips-page .help-actions > button {
    min-height: 58px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--ink);
    text-align: left;
    background: #fffefa;
    border: 2px solid var(--ink);
    border-radius: 13px;
    box-shadow: 3px 3px 0 #d9d6cd;
    font: inherit;
    font-size: .7rem;
    font-weight: 850;
    cursor: pointer;
}
.tips-page .help-actions > button:hover,
.tips-page .help-actions > button:focus-visible { transform: translateY(-2px); box-shadow: 4px 5px 0 var(--yellow); }
.tips-page .help-actions > button > span { flex: 1; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.tips-page .help-actions > button b { padding: 3px 6px; color: #5949b5; background: #efecff; border-radius: 999px; font-size: .58rem; }
.guided-help {
    margin-top: 14px;
    overflow: hidden;
    background: #fffefa;
    border: 2px solid var(--ink);
    border-radius: 15px;
    box-shadow: 5px 5px 0 var(--mint);
}
.guided-help[hidden] { display: none; }
.guided-help header {
    padding: 10px 13px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: #e2f8f0;
    border-bottom: 1px solid var(--ink);
}
.guided-help header span {
    width: 29px;
    height: 29px;
    display: grid;
    place-items: center;
    background: var(--mint);
    border: 1px solid var(--ink);
    border-radius: 50%;
    font-size: .68rem;
    font-weight: 900;
}
.guided-help header strong { font-size: .76rem; }
.guided-help > div { padding: 14px; font-size: .74rem; line-height: 1.55; }
.guided-help ol { margin: 0; padding-left: 20px; display: grid; gap: 7px; }
.autocomplete-explain-toggle {
    min-height: 46px;
    margin-top: 12px;
    padding: 9px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f0edff;
    border: 1px solid #9a8ee7;
    border-radius: 12px;
    font-size: .68rem;
    font-weight: 750;
}
.autocomplete-explain-toggle input { width: 20px; height: 20px; accent-color: var(--violet); }
.visual-code-suggestion {
    position: absolute;
    z-index: 6;
    right: 16px;
    bottom: 14px;
    max-width: min(620px, calc(100% - 32px));
    padding: 10px 11px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    color: #dce6ff;
    background: rgba(12, 22, 39, .97);
    border: 1px solid #74829b;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,.34);
    font-size: .68rem;
}
.visual-code-suggestion[hidden] { display: none; }
.visual-code-suggestion > span { color: #7bd9b7; font-weight: 850; white-space: nowrap; }
.visual-code-suggestion code { overflow: hidden; color: #f5ed9c; text-overflow: ellipsis; white-space: nowrap; }
.visual-code-suggestion kbd { padding: 4px 7px; color: var(--ink); background: var(--yellow); border: 1px solid #fff; border-radius: 5px; font-weight: 900; }
.visual-code-suggestion.is-project { border-color: #9889f4; box-shadow: 0 0 0 3px rgba(118,103,223,.2), 0 10px 30px rgba(0,0,0,.34); }
.code-editor.visual-code-accepted { animation: visual-code-accepted .65s ease; }
@keyframes visual-code-accepted {
    0%, 100% { box-shadow: inset 0 0 0 0 transparent; }
    45% { box-shadow: inset 0 0 0 3px var(--mint); }
}
.feedback-toast.project-checkpoint .feedback-stage { background: linear-gradient(145deg, var(--yellow), #fff3b9); }
.feedback-toast.project-checkpoint .feedback-icon { color: var(--ink); background: var(--mint); }
.feedback-toast.project-checkpoint .feedback-card { box-shadow: 12px 12px 0 var(--violet); }
.feedback-toast.project-finished .feedback-card {
    width: min(1040px, 100%);
    grid-template-columns: 250px minmax(0, 1fr);
}
.feedback-toast.project-finished .feedback-stage {
    background:
        radial-gradient(circle at 24% 22%, rgba(255,255,255,.96) 0 7px, transparent 8px),
        linear-gradient(150deg, var(--yellow) 0 46%, var(--mint) 46% 74%, #9b8cf4 74%);
}
.feedback-project-summary {
    margin-top: 18px;
    padding: 16px;
    display: grid;
    gap: 12px;
    background: #fff;
    border: 2px solid var(--ink);
    border-radius: 16px;
    box-shadow: 4px 4px 0 rgba(23,32,51,.12);
}
.feedback-project-summary[hidden],
.feedback-next-project[hidden] { display: none !important; }
.feedback-project-badge {
    display: flex;
    align-items: center;
    gap: 11px;
}
.feedback-project-badge > span {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    display: grid;
    place-items: center;
    color: var(--ink);
    background: var(--yellow);
    border: 2px solid var(--ink);
    border-radius: 12px;
    box-shadow: 3px 3px 0 var(--coral);
}
.feedback-project-badge > div { min-width: 0; display: grid; gap: 2px; }
.feedback-project-badge small,
.feedback-next-project small {
    color: #6153cf;
    font-size: .58rem;
    font-weight: 950;
    letter-spacing: .1em;
}
.feedback-project-badge strong,
.feedback-next-project strong {
    font-size: .82rem;
    line-height: 1.15;
}
.feedback-project-summary > p,
.feedback-next-project p {
    margin: 0;
    color: var(--ink-soft);
    font-size: .67rem;
    line-height: 1.45;
}
.feedback-mastery {
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
    list-style: none;
}
.feedback-mastery li {
    min-height: 48px;
    padding: 8px;
    display: flex;
    align-items: center;
    gap: 7px;
    color: var(--text-muted);
    background: #f2efe8;
    border: 1.5px solid #c8c3b8;
    border-radius: 10px;
    font-size: .58rem;
    font-weight: 850;
    line-height: 1.25;
}
.feedback-mastery li.is-complete {
    color: #0c6545;
    background: #e4f8f0;
    border-color: var(--success);
}
.feedback-project-skills,
#feedback-next-project-systems {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}
.feedback-project-skills span,
#feedback-next-project-systems span {
    padding: 4px 7px;
    color: var(--ink);
    background: #f4f0ff;
    border: 1px solid #b4a8ef;
    border-radius: 999px;
    font-size: .54rem;
    font-weight: 850;
}
.feedback-project-tools {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}
.feedback-project-tools button {
    min-height: 42px;
    padding: 8px 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    color: var(--ink);
    background: var(--yellow);
    border: 1.5px solid var(--ink);
    border-radius: 9px;
    font-size: .61rem;
    font-weight: 900;
    cursor: pointer;
}
.feedback-project-tools button:last-child { background: #fff; }
.feedback-next-project {
    margin-top: 12px;
    padding: 11px;
    display: grid;
    grid-template-columns: 105px minmax(0, 1fr);
    gap: 12px;
    align-items: stretch;
    background: #f6f2ff;
    border: 2px solid var(--ink);
    border-radius: 15px;
    box-shadow: 4px 4px 0 var(--violet);
}
.feedback-next-project-visual {
    min-height: 96px;
    background-color: #dff7ee;
    background-position: center;
    background-size: cover;
    border: 1.5px solid var(--ink);
    border-radius: 10px;
}
.feedback-next-project > div:last-child {
    min-width: 0;
    display: grid;
    align-content: center;
    gap: 5px;
}
#feedback-next-project-meta {
    color: #6153cf;
    font-size: .57rem;
    font-weight: 900;
}

@media (max-width: 1100px) {
    .project-grid-v41 .project-card-v41,
    .project-grid-v41 .project-card-v41.plan-plus { grid-column: span 6; }
}
@media (max-width: 760px) {
    .project-hub .project-hub-hero { min-height: 0; padding: 58px 0 48px; grid-template-columns: 1fr; }
    .project-hub .project-hub-hero h1 { font-size: clamp(3.2rem, 17vw, 5rem); }
    .project-offer-counts { width: 100%; justify-self: stretch; transform: none; }
    .project-filters { top: 68px; margin-inline: 0; }
    .project-grid-v41 .project-card-v41,
    .project-grid-v41 .project-card-v41.plan-plus { grid-column: 1 / -1; min-height: 0; }
    .project-grid-v41 .project-card-scene { min-height: 200px; }
    .tips-page .help-actions { grid-template-columns: 1fr; }
    .visual-code-suggestion { left: 10px; right: 10px; bottom: 10px; grid-template-columns: 1fr auto; }
    .visual-code-suggestion > span { grid-column: 1 / -1; }
    .feedback-toast.project-finished .feedback-card { grid-template-columns: 1fr; }
    .feedback-mastery { grid-template-columns: 1fr; }
    .feedback-next-project { grid-template-columns: 82px minmax(0, 1fr); }
    .feedback-next-project-visual { min-height: 88px; }
}
@media (prefers-reduced-motion: reduce) {
    .project-grid-v41 .project-card-v41,
    .tips-page .help-actions > button { transition: none; }
    .project-grid-v41 .project-card-v41:hover,
    .project-grid-v41 .project-card-v41:focus-within,
    .tips-page .help-actions > button:hover,
    .tips-page .help-actions > button:focus-visible { transform: none; }
    .code-editor.visual-code-accepted { animation: none; }
}

/* v33 · Calendrier de série */
.streak-calendar {
    margin: 30px 0;
    padding: 28px;
    background: #fff;
    border: 2px solid var(--ink);
    border-radius: var(--radius-l);
    box-shadow: 8px 8px 0 var(--yellow);
}
.streak-calendar-heading {
    margin-bottom: 22px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
}
.streak-calendar-heading h2 { margin: 3px 0 6px; font-size: clamp(1.7rem, 3vw, 2.7rem); }
.streak-calendar-heading > div:first-child > p:last-child { margin: 0; color: var(--ink-soft); font-size: .76rem; }
.streak-wallet {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 7px;
}
.streak-wallet span {
    min-height: 45px;
    padding: 7px 9px;
    display: grid;
    grid-template-columns: 20px auto;
    align-items: center;
    column-gap: 6px;
    background: var(--paper);
    border: 1px solid var(--ink);
    border-radius: 9px;
}
.streak-wallet span .ui-icon { grid-row: 1 / 3; }
.streak-wallet b { font-size: .75rem; line-height: 1; }
.streak-wallet small { color: var(--ink-soft); font-size: .58rem; font-weight: 800; line-height: 1; }
.streak-reward-track {
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 10px;
    list-style: none;
}
.streak-reward-track li {
    min-height: 158px;
    padding: 12px 10px;
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 6px;
    background: var(--paper);
    border: 1px solid #aaa79f;
    border-radius: 13px;
    text-align: center;
}
.streak-reward-track .reward-day {
    color: #6c7484;
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: .58rem;
    font-weight: 950;
    letter-spacing: .07em;
    text-transform: uppercase;
}
.streak-reward-track .reward-art {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    background: #fff;
    border: 2px solid var(--ink);
    border-radius: 16px;
    box-shadow: 4px 4px 0 #d7d3ca;
}
.streak-reward-track strong { font-size: .73rem; line-height: 1.15; }
.streak-reward-track small { color: var(--ink-soft); font-size: .59rem; line-height: 1.32; }
.streak-reward-track li.is-claimed { background: #dcf7ed; border-color: var(--success-dark); }
.streak-reward-track li.is-claimed .reward-art { background: var(--mint); box-shadow: 4px 4px 0 var(--success-dark); }
.streak-reward-track li.is-next {
    background: #fff6c8;
    border: 2px solid var(--ink);
    transform: translateY(-5px);
    box-shadow: 5px 5px 0 var(--coral);
}
.streak-reward-track li.is-next .reward-art { background: var(--yellow); box-shadow: 4px 4px 0 var(--coral); animation: reward-next-breathe 1.8s ease-in-out infinite; }
.streak-reward-track li.is-chest .reward-art { background: #eeeaff; }
.streak-calendar-note {
    width: fit-content;
    margin: 18px 0 0;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--ink-soft);
    font-size: .66rem;
    font-weight: 800;
}
@keyframes reward-next-breathe {
    0%, 100% { transform: translateY(0) rotate(-2deg); }
    50% { transform: translateY(-5px) rotate(2deg); }
}
@media (max-width: 1050px) {
    .streak-calendar-heading { align-items: stretch; flex-direction: column; }
    .streak-wallet { justify-content: flex-start; }
    .streak-reward-track { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
    .streak-calendar { padding: 21px 16px; }
    .streak-reward-track { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .streak-reward-track li { min-height: 148px; }
    .streak-reward-track li.is-next { transform: none; }
}

/* v33 · Récompense de série — un seul objet central, aucune icône UTF-8. */
body.reward-open { overflow: hidden; }
.reward-reveal {
    position: fixed;
    z-index: 23000;
    inset: 0;
    padding: 24px;
    display: grid;
    place-items: center;
}
.reward-reveal[hidden] { display: none !important; }
.reward-reveal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 18, 34, .78);
    backdrop-filter: blur(9px);
}
.reward-reveal-card {
    position: relative;
    width: min(520px, 100%);
    padding: 30px 34px 32px;
    overflow: hidden;
    color: var(--ink);
    background:
        radial-gradient(circle at 50% 28%, rgba(248, 211, 79, .32), transparent 32%),
        var(--paper);
    border: 3px solid var(--ink);
    border-radius: 25px;
    box-shadow: 13px 13px 0 var(--violet);
    text-align: center;
}
.reward-reveal-card.is-revealing { animation: reward-card-land .58s cubic-bezier(.16, 1, .3, 1) both; }
.reward-reveal-close {
    position: absolute;
    z-index: 3;
    top: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    background: #fff;
    border: 2px solid var(--ink);
    border-radius: 50%;
    cursor: pointer;
}
.reward-reveal-kicker {
    margin: 0 0 4px;
    color: #6153c2;
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: .7rem;
    font-weight: 950;
    letter-spacing: .12em;
}
.reward-reveal-visual {
    position: relative;
    width: 190px;
    height: 190px;
    margin: 4px auto 0;
    display: grid;
    place-items: center;
}
.reward-rays {
    position: absolute;
    inset: 5px;
    background: repeating-conic-gradient(from 4deg, rgba(248, 211, 79, .65) 0 9deg, transparent 9deg 22deg);
    border-radius: 50%;
    animation: reward-rays-turn 10s linear infinite;
}
.reward-icon {
    position: relative;
    z-index: 2;
    width: 112px;
    height: 112px;
    display: grid;
    place-items: center;
    background: var(--yellow);
    border: 3px solid var(--ink);
    border-radius: 28px;
    box-shadow: 7px 7px 0 var(--coral);
    transform: rotate(-3deg);
}
.reward-icon img { width: 68px; height: 68px; }
.reward-reveal-visual > i {
    position: absolute;
    z-index: 2;
    width: 13px;
    height: 13px;
    background: var(--mint);
    border: 2px solid var(--ink);
    transform: rotate(45deg);
    animation: reward-spark 1.5s ease-in-out infinite;
}
.reward-reveal-visual > i:nth-of-type(1) { top: 34px; left: 14px; }
.reward-reveal-visual > i:nth-of-type(2) { top: 22px; right: 20px; animation-delay: .35s; background: var(--coral); }
.reward-reveal-visual > i:nth-of-type(3) { right: 8px; bottom: 35px; animation-delay: .7s; background: var(--violet); }
.reward-freeze-note {
    width: fit-content;
    margin: -2px auto 13px;
    padding: 7px 10px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--success-dark);
    background: #dcf7ed;
    border: 1px solid var(--success-dark);
    border-radius: 999px;
    font-size: .68rem;
    font-weight: 900;
}
.reward-reveal-card h2 { margin: 0; font-size: clamp(2rem, 6vw, 3rem); letter-spacing: -.055em; }
.reward-reveal-card > p#reward-description {
    max-width: 390px;
    margin: 9px auto 18px;
    color: var(--ink-soft);
    font-size: .82rem;
    line-height: 1.55;
}
.reward-reveal-meta {
    margin: 0 auto 22px;
    padding: 12px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 9px;
    border-block: 1px solid var(--line);
}
.reward-reveal-meta span {
    min-height: 36px;
    padding: 7px 10px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 9px;
    font-size: .67rem;
    font-weight: 850;
}
.reward-reveal-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; }
.reward-reveal-actions .button { min-height: 48px; margin: 0; padding-inline: 19px; }
@keyframes reward-card-land {
    0% { opacity: 0; transform: translateY(45px) scale(.78) rotate(2deg); }
    65% { opacity: 1; transform: translateY(-5px) scale(1.03) rotate(-.5deg); }
    100% { opacity: 1; transform: none; }
}
@keyframes reward-rays-turn { to { transform: rotate(360deg); } }
@keyframes reward-spark {
    0%, 100% { transform: rotate(45deg) scale(.65); opacity: .45; }
    50% { transform: rotate(135deg) scale(1.15); opacity: 1; }
}
@media (max-width: 560px) {
    .reward-reveal { padding: 14px; }
    .reward-reveal-card { padding: 25px 18px 22px; border-radius: 19px; box-shadow: 8px 8px 0 var(--violet); }
    .reward-reveal-visual { width: 154px; height: 154px; }
    .reward-icon { width: 94px; height: 94px; }
    .reward-icon img { width: 56px; height: 56px; }
    .reward-reveal-actions { align-items: stretch; flex-direction: column; }
    .reward-reveal-actions .button { width: 100%; }
}

/* V34 — écriture assistée : chaque animation transmet une information. */
.hint.is-hint-reveal,
.example-hint.is-example-reveal { position: relative; overflow: hidden; }
.hint.is-hint-reveal::after,
.example-hint.is-example-reveal::after {
    position: absolute;
    inset: 0;
    content: "";
    pointer-events: none;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.78), transparent);
    transform: translateX(-110%);
}
.hint.is-revealing::after,
.example-hint.is-revealing::after { animation: help-scan .78s cubic-bezier(.16,1,.3,1); }
.example-hint.is-revealing code { animation: example-line-focus .72s ease both; }
.autocomplete-explain-toggle {
    min-height: 44px;
    padding: 9px 11px;
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--ink);
    background: #fff;
    border: 1.5px solid var(--ink);
    border-radius: 10px;
    font-size: .68rem;
    font-weight: 800;
    cursor: pointer;
}
.autocomplete-explain-toggle input { width: 19px; height: 19px; accent-color: var(--violet); }
.autocomplete-explanations {
    padding: 0;
    margin: 10px 0 0;
    display: grid;
    gap: 7px;
    list-style: none;
}
.autocomplete-explanations[hidden] { display: none; }
.autocomplete-explanations li {
    padding: 10px;
    display: grid;
    grid-template-columns: 20px 1fr;
    gap: 9px;
    align-items: start;
    background: #f3f0ff;
    border-left: 4px solid var(--violet);
    border-radius: 7px;
    animation: explanation-check-in .36s cubic-bezier(.16,1,.3,1) both;
}
.autocomplete-explanations li:nth-child(2) { animation-delay: .08s; }
.autocomplete-explanations li:nth-child(3) { animation-delay: .16s; }
.autocomplete-explanations li:nth-child(4) { animation-delay: .24s; }
.autocomplete-explanations input { margin-top: 2px; accent-color: var(--success); }
.autocomplete-explanations code,
.autocomplete-explanations small { display: block; overflow-wrap: anywhere; }
.autocomplete-explanations code { color: #7f2431; font-size: .66rem; }
.autocomplete-explanations small { margin-top: 4px; color: var(--ink-soft); font-size: .64rem; line-height: 1.4; }
.copilot-suggestion {
    min-height: 54px;
    padding: 9px 11px;
    position: absolute;
    z-index: 5;
    right: 15px;
    bottom: 13px;
    left: 15px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    color: #e9e7ff;
    background: rgba(28, 25, 61, .96);
    border: 1px solid #8b7cff;
    border-radius: 10px;
    box-shadow: 0 10px 28px rgba(3, 8, 20, .32);
}
.copilot-suggestion[hidden] { display: none; }
.copilot-suggestion.is-entering { animation: copilot-rise .35s cubic-bezier(.16,1,.3,1) both; }
.copilot-suggestion > span { display: flex; align-items: center; gap: 5px; color: #b7adff; font-size: .62rem; font-weight: 950; text-transform: uppercase; }
.copilot-suggestion code { min-width: 0; overflow: hidden; color: #fff; font-size: .69rem; text-overflow: ellipsis; white-space: nowrap; }
.copilot-suggestion button {
    min-height: 36px;
    padding: 6px 9px;
    color: var(--ink);
    background: var(--yellow);
    border: 1.5px solid var(--ink);
    border-radius: 7px;
    font-size: .64rem;
    font-weight: 900;
    cursor: pointer;
}
.copilot-suggestion kbd {
    padding: 2px 4px;
    background: #fff;
    border: 1px solid var(--ink);
    border-radius: 4px;
    font: inherit;
}
.editor-stack { position: relative; }
@keyframes help-scan { to { transform: translateX(110%); } }
@keyframes example-line-focus { 0% { background: #fff; } 45% { background: #fff0a8; } }
@keyframes explanation-check-in { from { opacity: 0; transform: translateX(-12px); } }
@keyframes copilot-rise { from { opacity: 0; transform: translateY(12px) scale(.98); } }
@media (max-width: 680px) {
    .copilot-suggestion { grid-template-columns: 1fr auto; }
    .copilot-suggestion > span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    .hint.is-revealing::after,
    .example-hint.is-revealing::after,
    .example-hint.is-revealing code,
    .autocomplete-explanations li,
    .copilot-suggestion.is-entering { animation: none !important; }
}

/* V34 — sept cartes d'expédition distinctes, bâties autour des panoramas
   locaux et licenciés. Les formes CSS ne remplacent pas les assets : elles
   renforcent seulement la profondeur et la lisibilité du chemin. */
.world-card-art {
    isolation: isolate;
    background-position: var(--scene-card-position, center 42%);
    transition: background-position .7s cubic-bezier(.16, 1, .3, 1), filter .3s ease;
}
.world-card:hover .world-card-art { background-position: var(--scene-card-hover, center 48%); filter: saturate(1.08); }
.world-card-art::before {
    position: absolute;
    z-index: 1;
    inset: auto 0 0;
    height: 34%;
    content: "";
    background: linear-gradient(to top, color-mix(in srgb, var(--world-color) 58%, transparent), transparent);
    pointer-events: none;
}
.theme-builder { --scene-card-position: center 46%; --scene-card-hover: 52% 51%; --scene-x: 48%; --scene-y: 42%; }
.theme-circuit { --scene-card-position: 44% 39%; --scene-card-hover: 49% 45%; --scene-x: 45%; --scene-y: 38%; }
.theme-laboratory { --scene-card-position: 58% 42%; --scene-card-hover: 53% 47%; --scene-x: 58%; --scene-y: 40%; }
.theme-studio { --scene-card-position: 36% 43%; --scene-card-hover: 42% 48%; --scene-x: 38%; --scene-y: 41%; }
.theme-factory { --scene-card-position: 61% 40%; --scene-card-hover: 55% 46%; --scene-x: 60%; --scene-y: 38%; }
.theme-relay { --scene-card-position: 47% 36%; --scene-card-hover: 52% 43%; --scene-x: 48%; --scene-y: 36%; }
.theme-arcade { --scene-card-position: 52% 48%; --scene-card-hover: 47% 53%; --scene-x: 52%; --scene-y: 44%; }

.level-world-scene {
    height: 500px;
    background-position: var(--scene-x, center) var(--scene-y, 40%);
    transform: scale(1.015);
    animation: expedition-panorama 18s ease-in-out infinite alternate;
}
.level-world-scene::before,
.level-world-scene::after {
    position: absolute;
    content: "";
    pointer-events: none;
}
.level-world-scene::before {
    inset: 0;
    background:
        linear-gradient(115deg, rgba(255,255,255,.18), transparent 38%),
        linear-gradient(to bottom, transparent 52%, rgba(23,32,51,.18));
}
.level-world-scene::after {
    width: 240px;
    height: 64px;
    right: 6%;
    bottom: 58px;
    background: color-mix(in srgb, var(--route-accent) 52%, #fff);
    border: 3px solid rgba(23,32,51,.8);
    border-radius: 50%;
    filter: blur(.2px);
    opacity: .35;
    transform: skewX(-18deg);
}
.level-world.theme-builder { background-color: #e5f6ec; }
.level-world.theme-circuit { background-color: #e9f1fb; }
.level-world.theme-laboratory { background-color: #f1edff; }
.level-world.theme-studio { background-color: #f5ecff; }
.level-world.theme-factory { background-color: #eaf3fb; }
.level-world.theme-relay { background-color: #e5f7f1; }
.level-world.theme-arcade { background-color: #fff0e8; }
.level-world::before {
    background:
        linear-gradient(to bottom, rgba(247,243,233,0) 0 23%, rgba(233,245,245,.36) 36%, rgba(233,245,245,.92) 55%, #e9f5f5 72%),
        radial-gradient(circle at 10% 53%, color-mix(in srgb, var(--route-accent) 14%, transparent), transparent 22%);
}
.level-world-header { margin-top: 30px; }
.level-picker-heading { margin-top: 74px; }
.level-card:nth-of-type(4n + 2) .level-node { transform: translate(-50%, calc(-50% - 7px)); }
.level-card:nth-of-type(4n + 3) .level-node { transform: translate(-50%, calc(-50% + 7px)); }
.level-card a:hover .level-node { transform: translate(-50%, calc(-50% - 8px)) scale(1.06); }
@keyframes expedition-panorama {
    from { background-position: calc(var(--scene-x, 50%) - 1.5%) var(--scene-y, 40%); }
    to { background-position: calc(var(--scene-x, 50%) + 1.5%) calc(var(--scene-y, 40%) + 1%); }
}

/* Le sélecteur reste maniable avec quatre langues, même dans un header serré. */
.language-switcher a { min-width: 38px; padding-inline: 7px; }
@media (max-width: 1120px) {
    .language-switcher { margin-left: 9px; }
    .language-switcher > .ui-icon { display: none; }
    .language-switcher a { min-width: 34px; padding-inline: 5px; }
}
@media (max-width: 650px) {
    .level-world-scene { height: 410px; }
    .level-picker-heading { margin-top: 38px; }
}
@media (prefers-reduced-motion: reduce) {
    .world-card-art,
    .level-world-scene { animation: none !important; transition: none !important; }
}

/* V36 — sélecteur de langue compact et header sans débordement mobile. */
.language-switcher {
    position: relative;
    min-height: 44px;
    padding: 0;
    display: block;
}
.language-switcher > summary {
    min-width: 76px;
    min-height: 44px;
    padding: 7px 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    cursor: pointer;
    list-style: none;
}
.language-switcher > summary::-webkit-details-marker { display: none; }
.language-switcher > summary .ui-icon { width: 19px; height: 19px; }
.language-switcher > summary strong { font-size: .68rem; }
.language-switcher > nav {
    position: absolute;
    z-index: 300;
    top: calc(100% + 9px);
    right: 0;
    width: 210px;
    padding: 7px;
    display: grid;
    gap: 4px;
    background: var(--paper);
    border: 2px solid var(--ink);
    border-radius: 14px;
    box-shadow: 7px 7px 0 var(--yellow);
}
.language-switcher:not([open]) > nav { display: none; }
.language-switcher > nav a {
    min-height: 44px;
    padding: 8px 10px;
    display: grid;
    grid-template-columns: 34px 1fr;
    place-items: center start;
    border-radius: 9px;
}
.language-switcher > nav a > span { font-size: .65rem; font-weight: 750; }
.language-switcher > nav a[aria-current="true"] { color: #fff; background: var(--ink); }
@media (max-width: 760px) {
    .site-header,
    .workshop-page .site-header { padding-inline: 12px; gap: 7px; }
    .brand { min-width: 0; }
    .brand span { display: none; }
    .language-switcher { margin-left: auto; }
    .language-switcher > summary { min-width: 52px; padding-inline: 7px; }
    .language-switcher > summary .ui-icon { display: none; }
    .notification-shell { margin-left: 0; }
    .notification-trigger,
    .reward-calendar-trigger,
    .nav-toggle { flex: 0 0 44px; min-width: 44px; min-height: 44px; }
    .notification-panel { max-width: calc(100vw - 24px); right: 12px; }
    .workshop,
    .editor-panel,
    .editor-stack,
    .preview-frame,
    .toolbox-pages,
    .tool-page { min-width: 0; max-width: 100%; }
}

/* V37 — export et suppression défensive des données du compte. */
.privacy-notice { margin: 0 0 28px; }
.privacy-notice-actions {
    margin-top: 9px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
}
.privacy-notice-actions a {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    font-weight: 900;
}
.profile-privacy {
    padding-top: 52px;
    margin-top: 78px;
    border-top: 1px solid var(--line);
}
.profile-privacy .section-heading { margin-bottom: 12px; }
.privacy-intro {
    max-width: 850px;
    margin: 0 0 25px;
    color: var(--ink-soft);
}
.privacy-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    align-items: stretch;
}
.privacy-card {
    min-width: 0;
    padding: 26px;
    background: #fff;
    border: 2px solid var(--ink);
    border-radius: 14px;
    box-shadow: 6px 6px 0 var(--yellow);
}
.privacy-card h3 { margin: 0 0 10px; font-size: 1.45rem; }
.privacy-card p {
    margin: 0 0 14px;
    color: var(--ink-soft);
    font-size: .82rem;
}
.privacy-card form { margin-top: 20px; }
.privacy-card label {
    margin-top: 16px;
    display: block;
    font-size: .76rem;
    font-weight: 850;
}
.privacy-card input {
    width: 100%;
    min-height: 52px;
    padding: 10px 14px;
    margin-top: 7px;
    color: var(--ink);
    background: #fff;
    border: 1.5px solid #aaa89f;
    border-radius: 8px;
}
.privacy-card input:focus {
    border-color: var(--ink);
    box-shadow: 0 0 0 3px rgba(118,103,223,.18);
    outline: none;
}
.privacy-card small {
    display: block;
    margin-top: 6px;
    color: #5f6879;
    font-size: .68rem;
}
.privacy-card .button {
    width: 100%;
    min-height: 48px;
    margin-top: 22px;
    white-space: normal;
}
.privacy-danger {
    background: #fff7f6;
    box-shadow: 6px 6px 0 #d6737e;
}
.button-danger {
    color: #fff;
    background: #982d3d;
    box-shadow: 4px 4px 0 var(--ink);
}
.privacy-deletion-complete { margin-block: 75px; }
.privacy-deletion-complete .button { width: 100%; }

@media (max-width: 900px) {
    .privacy-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
    .profile-privacy { padding-top: 40px; margin-top: 58px; }
    .privacy-card { padding: 21px 18px; }
}

.profile-identity { padding-top: 52px; margin-top: 78px; border-top: 1px solid var(--line); }
.profile-identity .section-heading { margin-bottom: 12px; }
.form-errors.is-success { color: #175d3f; background: #daf6e8; border-color: #7fcaa4; }
.username-form { max-width: 420px; padding: 26px; background: #fff; border: 2px solid var(--ink); border-radius: 14px; box-shadow: 6px 6px 0 var(--mint); }
.username-form label { display: block; font-size: .76rem; font-weight: 850; }
.username-input-wrap { display: flex; align-items: center; margin-top: 7px; background: #fff; border: 1.5px solid #aaa89f; border-radius: 8px; overflow: hidden; }
.username-input-wrap:focus-within { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(118,103,223,.18); }
.username-input-wrap span { padding: 0 0 0 14px; color: var(--ink-soft); font-weight: 800; }
.username-input-wrap input { flex: 1; min-height: 52px; padding: 10px 14px 10px 4px; color: var(--ink); background: transparent; border: 0; outline: none; }
.username-form small { display: block; margin-top: 6px; color: #5f6879; font-size: .68rem; }
.username-form .button { width: 100%; min-height: 48px; margin-top: 18px; }
@media (max-width: 760px) {
    .profile-identity { padding-top: 40px; margin-top: 58px; }
}

.profile-referral { padding-top: 52px; margin-top: 78px; border-top: 1px solid var(--line); }
.profile-referral .section-heading { margin-bottom: 12px; }
.referral-link-row { max-width: 560px; display: flex; gap: 10px; }
.referral-link-row input { flex: 1; min-height: 52px; padding: 0 14px; color: var(--ink-soft); background: var(--paper); border: 1.5px solid #aaa89f; border-radius: 8px; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .8rem; }
.referral-link-row .button { flex: none; }
@media (max-width: 560px) {
    .profile-referral { padding-top: 40px; margin-top: 58px; }
    .referral-link-row { flex-direction: column; }
}

/* Sélecteur de résultats sur l'accueil. */
.home-projects { padding-block: 95px 55px; }
.home-projects .section-heading { align-items: end; }
.home-projects .section-heading h2 { max-width: 850px; }
.home-project-choice { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.home-project-choice a {
    min-height: 310px;
    padding: 24px;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    justify-content: flex-end;
    color: #fff;
    background-image: linear-gradient(to top, rgba(16,24,39,.94) 0 38%, rgba(16,24,39,.12) 78%), var(--choice-scene);
    background-position: center;
    background-size: cover;
    border: 3px solid var(--ink);
    border-radius: 22px;
    box-shadow: 8px 9px 0 var(--choice-shadow, var(--coral));
    text-decoration: none;
    transition: transform .22s cubic-bezier(.16,1,.3,1), box-shadow .22s cubic-bezier(.16,1,.3,1);
}
.home-project-choice a:hover { transform: translateY(-6px); box-shadow: 8px 15px 0 var(--choice-shadow, var(--coral)); }
.home-project-choice a > span { width: 54px; height: 54px; margin-bottom: auto; display: grid; place-items: center; color: var(--ink); background: var(--choice-accent, var(--coral)); border: 2px solid var(--ink); border-radius: 15px; box-shadow: 4px 4px 0 var(--ink); }
.home-project-choice a > small { color: #d4dbea; font-family: ui-monospace, monospace; font-size: .6rem; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; }
.home-project-choice a > strong { margin: 5px 0 4px; font-size: 1.45rem; line-height: 1; }
.home-project-choice a > em { color: #d4dbea; font-size: .68rem; font-style: normal; }
.home-project-choice .is-site { --choice-accent: var(--coral); --choice-shadow: var(--coral); }
.home-project-choice .is-tool { --choice-accent: var(--yellow); --choice-shadow: #d2ae20; }
.home-project-choice .is-game { --choice-accent: var(--violet); --choice-shadow: var(--violet); }

/* Projets longs — une destination concrète avant les exercices techniques. */
.project-hub { padding-bottom: 100px; }
.project-hub-hero {
    padding: 72px 0 56px;
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr);
    align-items: end;
    gap: 70px;
}
.project-hub-hero h1 {
    max-width: 850px;
    margin: 12px 0 20px;
    font-size: clamp(3.35rem, 7.4vw, 7rem);
    line-height: .88;
    letter-spacing: -.065em;
}
.project-hub-hero h1 em { color: var(--coral-dark); font-style: normal; }
.project-hub-hero > div > p:last-child { max-width: 720px; color: var(--ink-soft); font-size: .92rem; }
.project-hub-hero aside:not(.project-offer-counts) {
    padding: 22px;
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    align-items: center;
    gap: 12px 13px;
    background: #fffefa;
    border: 2px solid var(--ink);
    border-radius: var(--radius-l);
    box-shadow: 7px 8px 0 var(--yellow);
}
.project-hub-hero aside:not(.project-offer-counts) strong {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    background: var(--yellow);
    border: 2px solid var(--ink);
    border-radius: 50%;
    font-family: ui-monospace, monospace;
    font-size: .7rem;
}
.project-hub-hero aside:not(.project-offer-counts) span { font-size: .76rem; font-weight: 850; }
.project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.project-card {
    min-width: 0;
    overflow: hidden;
    display: grid;
    grid-template-rows: 230px 1fr;
    background: #fffefa;
    border: 3px solid var(--ink);
    border-radius: 25px;
    box-shadow: 9px 10px 0 var(--project-shadow, var(--coral));
    transition: transform .25s cubic-bezier(.16,1,.3,1), box-shadow .25s cubic-bezier(.16,1,.3,1);
}
.project-card:hover { transform: translateY(-7px); box-shadow: 9px 17px 0 var(--project-shadow, var(--coral)); }
.project-card-scene {
    position: relative;
    overflow: hidden;
    padding: 18px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    background-image: linear-gradient(to top, rgba(23,32,51,.42), transparent 58%), var(--project-scene);
    background-position: center;
    background-size: cover;
    border-bottom: 3px solid var(--ink);
}
.project-card-scene::after {
    position: absolute;
    inset: 0;
    content: "";
    pointer-events: none;
}
.project-card-scene > span {
    width: 58px;
    height: 58px;
    z-index: 1;
    display: grid;
    place-items: center;
    background: var(--project-accent, var(--coral));
    border: 2px solid var(--ink);
    border-radius: 17px;
    box-shadow: 4px 4px 0 var(--ink);
}
.project-card-scene > b {
    z-index: 1;
    padding: 7px 10px;
    background: rgba(255,254,250,.94);
    border: 2px solid var(--ink);
    border-radius: 999px;
    font-size: .64rem;
}
.project-card-site { --project-accent: var(--coral); --project-shadow: var(--coral); }
.project-card-tool { --project-accent: var(--yellow); --project-shadow: #d2ae20; }
.project-card-tool .project-card-scene::after {
    background-image: linear-gradient(90deg, rgba(23,32,51,.12) 1px, transparent 1px), linear-gradient(rgba(23,32,51,.12) 1px, transparent 1px);
    background-size: 28px 28px;
}
.project-card-game { --project-accent: var(--violet); --project-shadow: var(--violet); color: #fff; background: var(--ink); }
.project-card-game .project-card-scene { filter: saturate(.85) contrast(1.08); }
.project-card-game .project-card-scene::after { background: linear-gradient(135deg, rgba(16,24,39,.08), rgba(16,24,39,.68)); }
.project-card-body { padding: 24px; display: flex; flex-direction: column; }
.project-card-topline { display: flex; justify-content: space-between; gap: 10px; }
.project-card-topline span {
    color: #6656c5;
    font-family: ui-monospace, monospace;
    font-size: .6rem;
    font-weight: 950;
    letter-spacing: .07em;
    text-transform: uppercase;
}
.project-card-game .project-card-topline span { color: #bdb5ff; }
.project-card h2 { margin: 12px 0 8px; font-size: clamp(1.45rem, 2.2vw, 2rem); line-height: 1; }
.project-card-body > p { min-height: 48px; margin: 0; color: var(--ink-soft); font-size: .76rem; }
.project-card-game .project-card-body > p, .project-card-game .project-card-body > small { color: #bdc6d6; }
.project-card ul { padding: 17px 0 0; margin: 17px 0 22px; display: grid; gap: 10px; border-top: 1px solid rgba(100,105,112,.28); list-style: none; }
.project-card li { display: flex; align-items: center; gap: 9px; font-size: .68rem; font-weight: 750; }
.project-card li img, .project-card li svg { flex: 0 0 auto; }
.project-progress { height: 8px; margin-top: auto; overflow: hidden; background: #dedbd3; border: 1px solid currentColor; border-radius: 999px; }
.project-progress span { height: 100%; display: block; background: var(--project-accent); }
.project-card-body > small { margin: 7px 0 13px; color: var(--ink-soft); font-size: .62rem; }
.project-card .button { width: 100%; min-height: 52px; margin-top: auto; }
.project-training-bridge {
    padding: 28px 30px;
    margin-top: 65px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 35px;
    background: #dff8ef;
    border: 2px solid var(--ink);
    border-radius: var(--radius-l);
    box-shadow: 7px 8px 0 var(--mint);
}
.project-training-bridge h2 { max-width: 720px; margin: 8px 0 0; font-size: 1.55rem; }
.project-training-bridge .button { flex: 0 0 auto; }

@media (max-width: 1050px) {
    .home-project-choice { grid-template-columns: 1fr 1fr; }
    .home-project-choice .is-game { grid-column: 1 / -1; }
    .project-grid { grid-template-columns: 1fr 1fr; }
    .project-card-game { grid-column: 1 / -1; grid-template-columns: minmax(300px, .85fr) 1fr; grid-template-rows: 1fr; }
    .project-card-game .project-card-scene { min-height: 330px; border-right: 3px solid var(--ink); border-bottom: 0; }
}
@media (max-width: 760px) {
    .home-projects { padding-block: 70px 30px; }
    .home-project-choice { grid-template-columns: 1fr; }
    .home-project-choice .is-game { grid-column: auto; }
    .home-project-choice a { min-height: 280px; }
    .project-hub-hero { padding-top: 48px; grid-template-columns: 1fr; gap: 30px; }
    .project-hub-hero h1 { font-size: clamp(3rem, 15vw, 4.6rem); }
    .project-grid { grid-template-columns: 1fr; }
    .project-card, .project-card-game { grid-column: auto; grid-template-columns: 1fr; grid-template-rows: 190px 1fr; }
    .project-card-game .project-card-scene { min-height: 0; border-right: 0; border-bottom: 3px solid var(--ink); }
    .project-training-bridge { align-items: flex-start; flex-direction: column; }
    .project-training-bridge .button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
    .home-project-choice a { transition: none; }
    .home-project-choice a:hover { transform: none; }
    .project-card { transition: none; }
    .project-card:hover { transform: none; }
}

/* v41 — jalons de projet (Lot 2) */
.project-milestone-panel {
    border: 2px solid var(--ink);
    border-radius: 18px;
    background: #fffefa;
    padding: 18px 20px;
    margin: 0 0 18px;
    display: grid;
    gap: 10px;
}
.project-milestone-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.project-milestone-heading strong { font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); }
#milestone-objective { font-size: 1rem; line-height: 1.5; }
#milestone-criteria { display: grid; gap: 6px; padding-left: 1.1rem; font-size: .92rem; color: var(--ink-soft); }
#milestone-feedback { font-size: .9rem; min-height: 1.2em; }
#milestone-feedback[data-state="ok"] { color: #1a7a4c; }
#milestone-feedback[data-state="fail"] { color: #b23b3b; }
#milestone-choice { display: grid; gap: 8px; }
#milestone-choice fieldset { border: 1px solid var(--ink); border-radius: 12px; padding: 10px 12px; display: grid; gap: 6px; }
@media (prefers-reduced-motion: reduce) {
    .project-milestone-panel * { transition: none; }
}

/* v41, Lot 7 — bouton son minimal, aligné sur .toolbar-check existant */
.toolbar-sound {
    border: 2px solid var(--ink);
    border-radius: 12px;
    background: #fffefa;
    padding: 8px 14px;
    font-size: .82rem;
    font-weight: 700;
    cursor: pointer;
}
.toolbar-sound[aria-pressed="true"] { background: var(--coral); color: #fff; }
