:root {
    --ink: #26384a;
    --muted: #687b8e;
    --paper: #fffdf8;
    --coral: #ff7657;
    --blue: #168ab2;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Trebuchet MS", "Gill Sans", sans-serif;
    color: var(--ink);
    background:
        radial-gradient(circle at 8% 12%, rgba(255, 208, 108, .34), transparent 23rem),
        radial-gradient(circle at 92% 18%, rgba(71, 193, 224, .25), transparent 24rem),
        linear-gradient(145deg, #fff9e9, #eefaff 60%, #fff0e8);
}

.page { width: min(1120px, calc(100% - 32px)); margin: 0 auto; padding: 34px 0 24px; }

.hero {
    position: relative;
    overflow: hidden;
    min-height: 285px;
    display: grid;
    grid-template-columns: 1.35fr .65fr;
    align-items: center;
    gap: 24px;
    padding: clamp(28px, 6vw, 66px);
    border-radius: 38px;
    background: rgba(255, 253, 248, .88);
    box-shadow: 0 24px 70px rgba(43, 73, 94, .14);
}

.hero::after {
    content: "";
    position: absolute;
    right: -90px;
    bottom: -150px;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    background: linear-gradient(145deg, #ffe49b, #ffc3a9);
    opacity: .72;
}

.hero-copy { position: relative; z-index: 1; }
.eyebrow { color: #d85235; font-size: .78rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
h1, h2 { font-family: Georgia, "Times New Roman", serif; color: #213346; }
h1 { max-width: 680px; margin: 14px 0 12px; font-size: clamp(2.65rem, 7vw, 5.4rem); line-height: .98; }
.hero p { max-width: 640px; margin: 0; color: var(--muted); font-size: clamp(1rem, 2vw, 1.2rem); line-height: 1.65; }
.player-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.player-bar label { font-weight: 800; color: #52687b; }
.player-bar input { padding: 10px 14px; border: 2px solid #dce5eb; border-radius: 14px; font-family: inherit; font-size: 1rem; font-weight: 700; color: var(--ink); background: #fff; }
.player-bar input:focus { outline: 4px solid rgba(255, 118, 87, .16); border-color: var(--coral); }

.hero-orbit {
    position: relative;
    z-index: 1;
    width: min(230px, 100%);
    aspect-ratio: 1;
    justify-self: center;
    display: grid;
    place-items: center;
    border: 2px dashed rgba(22, 138, 178, .28);
    border-radius: 50%;
}
.hero-orbit div { display: grid; place-items: center; width: 112px; height: 112px; border-radius: 32px; font-size: 4rem; background: #fff; box-shadow: 0 18px 35px rgba(29, 108, 136, .17); transform: rotate(6deg); }
.hero-orbit > span { position: absolute; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 14px; font: 700 1.2rem Georgia, serif; background: #fff; box-shadow: 0 8px 18px rgba(43, 73, 94, .12); }
.hero-orbit > span:nth-child(1) { top: -12px; left: 88px; color: #ff7657; }
.hero-orbit > span:nth-child(2) { right: -10px; top: 91px; color: #168ab2; }
.hero-orbit > span:nth-child(3) { bottom: -8px; left: 88px; color: #8c6fc7; }
.hero-orbit > span:nth-child(4) { left: -10px; top: 91px; color: #2d9e75; }

.section-title { display: flex; align-items: end; justify-content: space-between; gap: 20px; padding: 48px 8px 22px; }
.section-title h2 { margin: 7px 0 0; font-size: clamp(1.8rem, 4vw, 2.7rem); }
.section-title p { margin: 0 0 6px; color: var(--muted); }
.missions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }

.mission {
    --card: #ff7657;
    position: relative;
    min-height: 245px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 25px;
    border: 1px solid rgba(38, 56, 74, .08);
    border-radius: 28px;
    color: inherit;
    text-decoration: none;
    background: rgba(255, 255, 255, .82);
    box-shadow: 0 14px 32px rgba(43, 73, 94, .08);
    transition: transform .2s ease, box-shadow .2s ease;
}
.mission:hover, .mission:focus-visible { transform: translateY(-6px); box-shadow: 0 22px 40px rgba(43, 73, 94, .16); outline: none; }
.mission .level { position: absolute; top: 20px; right: 20px; padding: 5px 11px; border-radius: 999px; color: #fff; background: var(--card); font-size: .68rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.mission .icon { display: grid; place-items: center; width: 58px; height: 58px; margin-bottom: 23px; border-radius: 19px; font-size: 1.8rem; background: color-mix(in srgb, var(--card) 18%, white); }
.mission .number { color: var(--card); font-size: .73rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.mission strong { margin: 6px 0 8px; font: 700 1.55rem Georgia, serif; }
.mission > span:not(.icon):not(.number):not(.level) { color: var(--muted); line-height: 1.45; }
.mission em { margin-top: auto; padding-top: 20px; color: var(--card); font-style: normal; font-weight: 800; }
.fractions { --card: #8a68c1; }
.conversions { --card: #168ab2; }
.decimaux { --card: #2f9e73; }
.proportions { --card: #dc8b20; }
.vitesses { --card: #e0526f; }
.problemes { --card: #8a9e2f; }
.relatifs { --card: #3d6ea5; }
.puissances { --card: #b05a2f; }
.aires { --card: #1f9e8a; }
.angles { --card: #a44fae; }

.collection { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.sticker { aspect-ratio: 1; display: grid; place-items: center; overflow: hidden; border: 1px solid rgba(38, 56, 74, .08); border-radius: 20px; background: rgba(255, 255, 255, .82); box-shadow: 0 10px 24px rgba(43, 73, 94, .06); font-size: 1.6rem; font-weight: 800; color: var(--muted); }
.sticker img { width: 100%; height: 100%; object-fit: cover; }

footer { padding: 32px 8px 10px; text-align: center; color: var(--muted); }
footer span { color: #e0526f; }

@media (max-width: 880px) {
    .hero { grid-template-columns: 1fr; }
    .hero-orbit { display: none; }
    .missions { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 590px) {
    .page { width: min(100% - 20px, 1120px); padding-top: 10px; }
    .hero { min-height: auto; padding: 30px 24px; border-radius: 26px; }
    .section-title { display: block; padding-top: 34px; }
    .section-title p { margin-top: 8px; }
    .missions { grid-template-columns: 1fr; }
    .mission { min-height: 218px; }
    .collection { grid-template-columns: repeat(3, 1fr); }
}
