/* Généré à partir de maths.scss. */
.maths-page {
    box-sizing: border-box;
    width: min(1100px, calc(100% - 32px));
    margin: 20px auto 48px;
    padding: 0;
    color: #172940;
    font-family: system-ui, sans-serif;
    line-height: 1.5;
}

body > main.maths-page > section.hero.maths-banner {
    width: 100%;
    margin: 0;
    padding: clamp(20px, 4vw, 50px);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    text-align: left;
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: linear-gradient(110deg, #087e98, #159cb0);
    color: #fff;
}

.maths-banner::before,
.maths-banner::after {
    content: "";
    position: absolute;
    pointer-events: none;
}

.maths-banner::before {
    z-index: -2;
    top: -54%;
    left: -13rem;
    height: 175%;
    aspect-ratio: 4131 / 3711;
    background: url("https://upload.wikimedia.org/wikipedia/commons/thumb/6/67/Maiao_Atoll%2C_Polynesia_-_Iss065e156801.jpg/960px-Maiao_Atoll%2C_Polynesia_-_Iss065e156801.jpg") center / cover no-repeat;
    -webkit-mask-image: linear-gradient(to right, #000 66%, transparent),
        linear-gradient(to bottom, #000 79%, transparent 84%);
    -webkit-mask-composite: source-in;
    mask-image: linear-gradient(to right, #000 66%, transparent),
        linear-gradient(to bottom, #000 79%, transparent 84%);
    mask-composite: intersect;
}

/* Sur ordinateur, le récif entier tient dans le cadrage derrière le titre. */
@media (min-width: 681px) and (min-height: 551px), (min-width: 1001px) {
    .maths-banner::before {
        top: -40%;
        left: -7rem;
        height: 160%;
        -webkit-mask-image: linear-gradient(to right, #000 79%, transparent),
            linear-gradient(to bottom, #000 84%, transparent 87%);
        mask-image: linear-gradient(to right, #000 79%, transparent),
            linear-gradient(to bottom, #000 84%, transparent 87%);
    }
}

.maths-banner::after {
    z-index: -1;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%20%20%3Cdefs%3E%0A%20%20%20%20%3Cpattern%20id%3D%22grid%22%20width%3D%2224%22%20height%3D%2224%22%20patternUnits%3D%22userSpaceOnUse%22%3E%3Cpath%20d%3D%22M24%200H0V24%22%20fill%3D%22none%22%20stroke%3D%22%2378ddf4%22%20stroke-opacity%3D%22.23%22%2F%3E%3C%2Fpattern%3E%0A%20%20%20%20%3ClinearGradient%20id%3D%22fade%22%3E%3Cstop%20offset%3D%220%22%20stop-color%3D%22white%22%20stop-opacity%3D%220%22%2F%3E%3Cstop%20offset%3D%22.55%22%20stop-color%3D%22white%22%2F%3E%3C%2FlinearGradient%3E%0A%20%20%20%20%3Cmask%20id%3D%22fade-grid%22%3E%3Crect%20width%3D%22100%25%22%20height%3D%22100%25%22%20fill%3D%22url(%23fade)%22%2F%3E%3C%2Fmask%3E%0A%20%20%3C%2Fdefs%3E%0A%20%20%3Crect%20width%3D%22100%25%22%20height%3D%22100%25%22%20fill%3D%22url(%23grid)%22%20mask%3D%22url(%23fade-grid)%22%2F%3E%0A%3C%2Fsvg%3E") right center / 50% 100% no-repeat;
}

body > main.maths-page > section.maths-banner h1.fa-banner-title {
    margin: 0;
    color: inherit;
    text-shadow: 0 1px 3px #062445, 0 2px 12px #062445c9;
}

.maths-banner h1.fa-banner-title > span { white-space: nowrap; }

@media (max-width: 480px) {
    body > main.maths-page > section.maths-banner h1.fa-banner-title {
        font-size: clamp(14px, 5.4vw, 26px) !important;
    }
}

.maths-banner-formulas {
    position: absolute;
    z-index: -1;
    inset: 1.15rem 2% 1.15rem auto;
    width: 49%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
    justify-items: center;
    gap: .22rem .65rem;
    color: #e9fbff;
    font-size: clamp(.67rem, 1.47vw, 1.04rem);
    line-height: 1.15;
    pointer-events: none;
}

.maths-banner-formulas math { display: block; margin: 0; }
.maths-banner-formulas .maths-banner-formula--right { grid-column: 2; }
.maths-banner-formulas math:nth-child(3n + 1) { color: #ffebaa; }
.maths-banner-formulas math:nth-child(3n + 2) { color: #dcfaff; }
.maths-banner-formulas .maths-banner-curve {
    grid-column: 2;
    grid-row: 3 / span 2;
    width: 100%;
    max-width: 14rem;
    height: clamp(4rem, 8vw, 6rem);
}

.maths-banner-credit {
    position: absolute;
    left: .55rem;
    bottom: .4rem;
    padding: .14rem .4rem;
    border-radius: 4px;
    background: #06284bd9;
    color: #fff;
    font-size: .6rem;
    line-height: 1.3;
}

.maths-banner-credit a { color: inherit; text-decoration: underline; }

.maths-sheet { display: grid; gap: 22px; margin-top: 24px; }
.maths-intro {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "masthead" "title" "summary" "objectives";
    align-items: start;
    gap: 14px;
    padding: clamp(16px, 3vw, 30px);
    overflow: hidden;
    border: 1px solid #b2dcee;
    border-radius: 16px;
    background: #fff;
}

.maths-masthead {
    grid-area: masthead;
    padding: 14px clamp(16px, 4vw, 34px);
    background: linear-gradient(105deg, #082552 12%, #0756a4 76%, #087fbe);
    border-bottom: 5px solid #49d7ef;
    color: #fff;
    font-size: clamp(1.04rem, 3.1vw, 2.05rem);
    font-style: italic;
    font-weight: 900;
    line-height: 1.15;
    text-transform: uppercase;
}

.maths-masthead p { margin: 0; }
.maths-masthead sup { text-transform: lowercase; }
.maths-masthead p.maths-domain { margin-top: .4em; color: #a0f4ff; font-size: clamp(.8rem, 2.35vw, 1.55rem); letter-spacing: .03em; }

.maths-intro h2 { grid-area: title; margin: 0; color: #082552; font-size: clamp(1.1rem, 3.4vw, 2.25rem); line-height: 1.03; text-transform: uppercase; }
.maths-intro h2 span {
    display: table;
    margin-top: .75rem;
    padding: .4em .75em;
    border-radius: 8px;
    background: #d1f5ff;
    font-size: clamp(.85rem, 2.5vw, 1.05rem);
    line-height: 1.25;
    text-transform: none;
}

.maths-intro-summary {
    grid-area: summary;
    margin: 0;
    padding-bottom: .5em;
    border-bottom: 4px solid #f7d839;
    color: #075ca6;
    font-size: clamp(.95rem, 2.4vw, 1.2rem);
    font-style: italic;
    font-weight: 750;
}

.maths-objectives {
    grid-area: objectives;
    display: grid;
    gap: .35rem;
    margin: 0;
    padding: .8rem 1rem .8rem 2.1rem;
    border: 1px solid #a2d9b1;
    border-radius: 10px;
    background: #eefaf1;
    font-size: .94rem;
    list-style: "✓  ";
}

.maths-objectives li::marker { color: #227137; font-weight: 900; }

.maths-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px 14px; }

.maths-card {
    --accent: #075ca6;
    --teinte: #eff8ff;
    --bordure: #86b8de;
    min-width: 0;
    padding: 0 13px 14px;
    border: 1px solid var(--bordure);
    border-radius: 15px;
    background: linear-gradient(#fff 25%, var(--teinte));
    box-shadow: 0 3px 8px #08255210;
}

.maths-card--vert { --accent: #227137; --teinte: #edf8ee; --bordure: #96cb9b; }
.maths-card--violet { --accent: #642b98; --teinte: #f6eeff; --bordure: #bb94da; }
.maths-card--orange { --accent: #9e4512; --teinte: #fff5e6; --bordure: #edb571; }
.maths-card--rose { --accent: #a21c68; --teinte: #fff0f8; --bordure: #db93bd; }

.maths-card h3 {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    gap: .48em;
    width: fit-content;
    max-width: 100%;
    min-height: 2em;
    margin: -.42em 0 .7rem;
    padding: .2em .76em .2em .46em;
    border-radius: 1.4em;
    background: var(--accent);
    background: linear-gradient(180deg, color-mix(in srgb, var(--accent), white 16%), var(--accent) 58%);
    color: #fff;
    font-size: clamp(1rem, 1.8vw, 1.17rem);
    font-weight: 850;
    line-height: 1.14;
}

.maths-card h3 > span {
    display: grid;
    place-items: center;
    flex: 0 0 1.62em;
    height: 1.62em;
    margin: -.34em 0 -.34em -.44em;
    border: 2px solid #fff;
    border-radius: 50%;
    background: var(--accent);
    background: linear-gradient(150deg, color-mix(in srgb, var(--accent), white 23%), var(--accent) 70%);
    box-shadow: 0 2px 4px #08255238;
    font-size: 1.52em;
    font-weight: 900;
    line-height: 1;
}

.maths-card p { margin: .55rem 0 0; }
.maths-operations { display: grid; gap: 5px; margin: 0; }
.maths-operations div { padding: 5px 9px; border-radius: 8px; background: #e0f5df; }
.maths-operations div:nth-child(2) { background: #fbe4ed; }
.maths-operations div:nth-child(3) { background: #fff0d3; }
.maths-operations div:nth-child(4) { background: #eee3fc; }
.maths-operations dt { font-weight: 850; }
.maths-operations dd { margin: 0; font-size: .93rem; }
.maths-operations b { display: block; text-align: right; }
.maths-steps, .maths-notes, .maths-calculs { margin: 0; padding-left: 1.35rem; }
.maths-steps li, .maths-notes li { margin-block: .4rem; }

.maths-card--priorites .maths-steps { display: grid; gap: 5px; padding-left: 0; list-style: none; counter-reset: priorite; }
.maths-card--priorites .maths-steps li {
    display: flex;
    align-items: center;
    gap: .55em;
    counter-increment: priorite;
    margin: 0;
    padding: .45em .55em;
    border-radius: 9px;
    background: #fbe4ed;
    font-weight: 700;
}
.maths-card--priorites .maths-steps li:nth-child(2) { background: #fff0d3; }
.maths-card--priorites .maths-steps li:nth-child(3) { background: #e0f5df; }
.maths-card--priorites .maths-steps li::before {
    content: counter(priorite);
    flex: 0 0 1.6em;
    border-radius: 50%;
    text-align: center;
    line-height: 1.6;
    color: #fff;
    background: #a21c68;
}
.maths-card--priorites .maths-steps li:nth-child(2)::before { background: #9e4512; }
.maths-card--priorites .maths-steps li:nth-child(3)::before { background: #227137; }

.maths-formula { padding: .6em .75em; border-radius: 8px; background: #daefff; color: #082552; font-weight: 850; }
.maths-card--exemple .maths-result {
    display: flex;
    align-items: center;
    gap: .55em;
    width: fit-content;
    margin: .9rem 0 .25rem auto;
    padding: .4em .8em;
    transform: rotate(-3deg);
    background: #ffed87;
    color: #082552;
    box-shadow: 0 3px 7px #08255228;
    font-weight: 750;
}
.maths-result strong { font-size: 1.5em; line-height: 1; }

.maths-card-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 2.75rem;
    align-items: center;
    gap: .45rem;
    min-height: 2.8rem;
    margin-top: -.35rem;
    margin-bottom: .55rem;
}

.maths-card-heading h3 { margin: 0; }
.maths-card-heading::after {
    content: "";
    width: 100%;
    aspect-ratio: 1;
    background-image: var(--maths-illustration);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.maths-card-heading--operations { --maths-illustration: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2064%2064%22%3E%3Crect%20x%3D%227%22%20y%3D%227%22%20width%3D%2250%22%20height%3D%2252%22%20rx%3D%2210%22%20fill%3D%22%23d8edff%22%2F%3E%3Crect%20x%3D%2210%22%20y%3D%2213%22%20width%3D%2220%22%20height%3D%2220%22%20rx%3D%224%22%20fill%3D%22%23173765%22%2F%3E%3Crect%20x%3D%2210%22%20y%3D%2211%22%20width%3D%2220%22%20height%3D%2219%22%20rx%3D%224%22%20fill%3D%22%2392ebb2%22%2F%3E%3Ctext%20x%3D%2220%22%20y%3D%2226%22%20fill%3D%22%23173765%22%20font-size%3D%2217%22%20text-anchor%3D%22middle%22%20font-family%3D%22system-ui%2Csans-serif%22%20font-weight%3D%22800%22%3E%2B%3C%2Ftext%3E%3Crect%20x%3D%2234%22%20y%3D%2213%22%20width%3D%2220%22%20height%3D%2220%22%20rx%3D%224%22%20fill%3D%22%23173765%22%2F%3E%3Crect%20x%3D%2234%22%20y%3D%2211%22%20width%3D%2220%22%20height%3D%2219%22%20rx%3D%224%22%20fill%3D%22%23ffa6bf%22%2F%3E%3Ctext%20x%3D%2244%22%20y%3D%2226%22%20fill%3D%22%23173765%22%20font-size%3D%2217%22%20text-anchor%3D%22middle%22%20font-family%3D%22system-ui%2Csans-serif%22%20font-weight%3D%22800%22%3E%E2%88%92%3C%2Ftext%3E%3Crect%20x%3D%2210%22%20y%3D%2237%22%20width%3D%2220%22%20height%3D%2220%22%20rx%3D%224%22%20fill%3D%22%23173765%22%2F%3E%3Crect%20x%3D%2210%22%20y%3D%2235%22%20width%3D%2220%22%20height%3D%2219%22%20rx%3D%224%22%20fill%3D%22%23ffd680%22%2F%3E%3Ctext%20x%3D%2220%22%20y%3D%2250%22%20fill%3D%22%23173765%22%20font-size%3D%2217%22%20text-anchor%3D%22middle%22%20font-family%3D%22system-ui%2Csans-serif%22%20font-weight%3D%22800%22%3E%C3%97%3C%2Ftext%3E%3Crect%20x%3D%2234%22%20y%3D%2237%22%20width%3D%2220%22%20height%3D%2220%22%20rx%3D%224%22%20fill%3D%22%23173765%22%2F%3E%3Crect%20x%3D%2234%22%20y%3D%2235%22%20width%3D%2220%22%20height%3D%2219%22%20rx%3D%224%22%20fill%3D%22%23d9b2fa%22%2F%3E%3Ctext%20x%3D%2244%22%20y%3D%2250%22%20fill%3D%22%23173765%22%20font-size%3D%2217%22%20text-anchor%3D%22middle%22%20font-family%3D%22system-ui%2Csans-serif%22%20font-weight%3D%22800%22%3E%C3%B7%3C%2Ftext%3E%3C%2Fsvg%3E"); }
.maths-card-heading--priorites { --maths-illustration: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2064%2064%22%3E%3Cpath%20d%3D%22M7%2055H58V14H41V27H25V41H7Z%22%20fill%3D%22%23173765%22%20stroke%3D%22%23173765%22%20stroke-width%3D%224%22%20stroke-linejoin%3D%22round%22%2F%3E%3Crect%20x%3D%228%22%20y%3D%2241%22%20width%3D%2216%22%20height%3D%2214%22%20rx%3D%222%22%20fill%3D%22%23f6a8ba%22%2F%3E%3Crect%20x%3D%2225%22%20y%3D%2228%22%20width%3D%2216%22%20height%3D%2227%22%20rx%3D%222%22%20fill%3D%22%23ffcf73%22%2F%3E%3Crect%20x%3D%2242%22%20y%3D%2214%22%20width%3D%2215%22%20height%3D%2241%22%20rx%3D%222%22%20fill%3D%22%239de5a5%22%2F%3E%3Ctext%20x%3D%2216%22%20y%3D%2252%22%20fill%3D%22%23173765%22%20font-size%3D%2211%22%20text-anchor%3D%22middle%22%20font-family%3D%22system-ui%2Csans-serif%22%20font-weight%3D%22800%22%3E1%3C%2Ftext%3E%3Ctext%20x%3D%2233%22%20y%3D%2240%22%20fill%3D%22%23173765%22%20font-size%3D%2211%22%20text-anchor%3D%22middle%22%20font-family%3D%22system-ui%2Csans-serif%22%20font-weight%3D%22800%22%3E2%3C%2Ftext%3E%3Ctext%20x%3D%2249%22%20y%3D%2227%22%20fill%3D%22%23173765%22%20font-size%3D%2211%22%20text-anchor%3D%22middle%22%20font-family%3D%22system-ui%2Csans-serif%22%20font-weight%3D%22800%22%3E3%3C%2Ftext%3E%3C%2Fsvg%3E"); }
.maths-card-heading--simples { --maths-illustration: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2064%2064%22%3E%3Cpath%20d%3D%22M8%2052V13H56V52Z%22%20fill%3D%22%23ffe3a0%22%20stroke%3D%22%23173765%22%20stroke-width%3D%224%22%20stroke-linejoin%3D%22round%22%2F%3E%3Cpath%20d%3D%22M11%2022H53M11%2033H53M11%2044H53%22%20stroke%3D%22%23173765%22%20stroke-width%3D%222%22%2F%3E%3Ccircle%20cx%3D%2220%22%20cy%3D%2222%22%20r%3D%224.5%22%20fill%3D%22%238ed9fb%22%20stroke%3D%22%23173765%22%20stroke-width%3D%221.5%22%2F%3E%3Ccircle%20cx%3D%2233%22%20cy%3D%2222%22%20r%3D%224.5%22%20fill%3D%22%238ed9fb%22%20stroke%3D%22%23173765%22%20stroke-width%3D%221.5%22%2F%3E%3Ccircle%20cx%3D%2243%22%20cy%3D%2222%22%20r%3D%224.5%22%20fill%3D%22%238ed9fb%22%20stroke%3D%22%23173765%22%20stroke-width%3D%221.5%22%2F%3E%3Ccircle%20cx%3D%2217%22%20cy%3D%2233%22%20r%3D%224.5%22%20fill%3D%22%23ff9eaf%22%20stroke%3D%22%23173765%22%20stroke-width%3D%221.5%22%2F%3E%3Ccircle%20cx%3D%2227%22%20cy%3D%2233%22%20r%3D%224.5%22%20fill%3D%22%23ff9eaf%22%20stroke%3D%22%23173765%22%20stroke-width%3D%221.5%22%2F%3E%3Ccircle%20cx%3D%2247%22%20cy%3D%2233%22%20r%3D%224.5%22%20fill%3D%22%23ff9eaf%22%20stroke%3D%22%23173765%22%20stroke-width%3D%221.5%22%2F%3E%3Ccircle%20cx%3D%2226%22%20cy%3D%2244%22%20r%3D%224.5%22%20fill%3D%22%238fdcaa%22%20stroke%3D%22%23173765%22%20stroke-width%3D%221.5%22%2F%3E%3Ccircle%20cx%3D%2237%22%20cy%3D%2244%22%20r%3D%224.5%22%20fill%3D%22%238fdcaa%22%20stroke%3D%22%23173765%22%20stroke-width%3D%221.5%22%2F%3E%3Ccircle%20cx%3D%2247%22%20cy%3D%2244%22%20r%3D%224.5%22%20fill%3D%22%238fdcaa%22%20stroke%3D%22%23173765%22%20stroke-width%3D%221.5%22%2F%3E%3C%2Fsvg%3E"); }
.maths-card-heading--parenthese { --maths-illustration: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2064%2064%22%3E%3Crect%20x%3D%229%22%20y%3D%227%22%20width%3D%2247%22%20height%3D%2255%22%20rx%3D%227%22%20fill%3D%22%23173765%22%2F%3E%3Crect%20x%3D%2212%22%20y%3D%226%22%20width%3D%2241%22%20height%3D%2251%22%20rx%3D%225%22%20fill%3D%22%238cdbad%22%2F%3E%3Crect%20x%3D%2216%22%20y%3D%2210%22%20width%3D%2233%22%20height%3D%2243%22%20rx%3D%223%22%20fill%3D%22%23f6fbff%22%2F%3E%3Ctext%20x%3D%2232%22%20y%3D%2228%22%20fill%3D%22%23173765%22%20font-size%3D%2222%22%20text-anchor%3D%22middle%22%20font-family%3D%22system-ui%2Csans-serif%22%20font-weight%3D%22800%22%3E(%20%20)%3C%2Ftext%3E%3Ctext%20x%3D%2232%22%20y%3D%2245%22%20fill%3D%22%23173765%22%20font-size%3D%2216%22%20text-anchor%3D%22middle%22%20font-family%3D%22system-ui%2Csans-serif%22%20font-weight%3D%22800%22%3E%C3%97%20%C3%B7%3C%2Ftext%3E%3C%2Fsvg%3E"); }
.maths-card-heading--mixtes { --maths-illustration: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2064%2064%22%3E%3Crect%20x%3D%229%22%20y%3D%2210%22%20width%3D%2246%22%20height%3D%2243%22%20rx%3D%227%22%20fill%3D%22%23b69bf5%22%2F%3E%3Cg%20transform%3D%22rotate(-9%2032%2032)%22%3E%3Crect%20x%3D%2210%22%20y%3D%2216%22%20width%3D%2244%22%20height%3D%2235%22%20rx%3D%226%22%20fill%3D%22%23173765%22%2F%3E%3Crect%20x%3D%2212%22%20y%3D%2215%22%20width%3D%2240%22%20height%3D%2232%22%20rx%3D%225%22%20fill%3D%22%23fff3bc%22%2F%3E%3Ctext%20x%3D%2232%22%20y%3D%2230%22%20fill%3D%22%23173765%22%20font-size%3D%2215%22%20text-anchor%3D%22middle%22%20font-family%3D%22system-ui%2Csans-serif%22%20font-weight%3D%22800%22%3E%C3%97%20%20%2B%3C%2Ftext%3E%3Ctext%20x%3D%2232%22%20y%3D%2243%22%20fill%3D%22%23173765%22%20font-size%3D%2215%22%20text-anchor%3D%22middle%22%20font-family%3D%22system-ui%2Csans-serif%22%20font-weight%3D%22800%22%3E%C3%B7%20%20%E2%88%92%3C%2Ftext%3E%3C%2Fg%3E%3C%2Fsvg%3E"); }
.maths-card-heading--problemes { --maths-illustration: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2064%2064%22%3E%3Cpath%20d%3D%22M4%2053Q15%2047%2025%2053T46%2053T61%2053M9%2059Q20%2053%2030%2059T52%2059%22%20fill%3D%22none%22%20stroke%3D%22%235db8ed%22%20stroke-width%3D%223%22%20stroke-linecap%3D%22round%22%2F%3E%3Cpath%20d%3D%22M6%2042H59L49%2051H16Z%22%20fill%3D%22%23287bcb%22%20stroke%3D%22%23173765%22%20stroke-width%3D%223%22%20stroke-linejoin%3D%22round%22%2F%3E%3Crect%20x%3D%2213%22%20y%3D%2229%22%20width%3D%2211%22%20height%3D%2210%22%20rx%3D%222%22%20fill%3D%22%23f9a967%22%2F%3E%3Crect%20x%3D%2225%22%20y%3D%2229%22%20width%3D%2211%22%20height%3D%2210%22%20rx%3D%222%22%20fill%3D%22%23f6d775%22%2F%3E%3Crect%20x%3D%2237%22%20y%3D%2229%22%20width%3D%2211%22%20height%3D%2210%22%20rx%3D%222%22%20fill%3D%22%23e994bf%22%2F%3E%3Crect%20x%3D%2249%22%20y%3D%2222%22%20width%3D%227%22%20height%3D%2217%22%20rx%3D%222%22%20fill%3D%22%23a7e8ef%22%2F%3E%3Cpath%20d%3D%22M52%2022V13H58%22%20fill%3D%22none%22%20stroke%3D%22%23173765%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%2F%3E%3C%2Fsvg%3E"); }
.maths-card-heading--exemple { --maths-illustration: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2076%20106%22%3E%3Crect%20x%3D%224%22%20y%3D%224%22%20width%3D%2268%22%20height%3D%2298%22%20rx%3D%2210%22%20fill%3D%22%2312386a%22%20stroke%3D%22%2307204a%22%20stroke-width%3D%225%22%2F%3E%3Crect%20x%3D%2210%22%20y%3D%229%22%20width%3D%2256%22%20height%3D%2287%22%20rx%3D%226%22%20fill%3D%22%23358fe6%22%2F%3E%3Crect%20x%3D%2214%22%20y%3D%2214%22%20width%3D%2248%22%20height%3D%2224%22%20rx%3D%224%22%20fill%3D%22%23bbf9df%22%20stroke%3D%22%23102b5f%22%20stroke-width%3D%223%22%2F%3E%3Ctext%20x%3D%2255%22%20y%3D%2232%22%20text-anchor%3D%22end%22%20font-family%3D%22monospace%22%20font-size%3D%2216%22%20font-weight%3D%22bold%22%20fill%3D%22%23102b5f%22%3E29%3C%2Ftext%3E%3Crect%20x%3D%2214%22%20y%3D%2244%22%20width%3D%2213%22%20height%3D%2212%22%20rx%3D%222%22%20fill%3D%22%23fff%22%20stroke%3D%22%23102b5f%22%20stroke-width%3D%222%22%2F%3E%3Crect%20x%3D%2231%22%20y%3D%2244%22%20width%3D%2213%22%20height%3D%2212%22%20rx%3D%222%22%20fill%3D%22%23fff%22%20stroke%3D%22%23102b5f%22%20stroke-width%3D%222%22%2F%3E%3Crect%20x%3D%2248%22%20y%3D%2244%22%20width%3D%2213%22%20height%3D%2212%22%20rx%3D%222%22%20fill%3D%22%23ffda65%22%20stroke%3D%22%23102b5f%22%20stroke-width%3D%222%22%2F%3E%3Crect%20x%3D%2214%22%20y%3D%2260%22%20width%3D%2213%22%20height%3D%2212%22%20rx%3D%222%22%20fill%3D%22%23fff%22%20stroke%3D%22%23102b5f%22%20stroke-width%3D%222%22%2F%3E%3Crect%20x%3D%2231%22%20y%3D%2260%22%20width%3D%2213%22%20height%3D%2212%22%20rx%3D%222%22%20fill%3D%22%23fff%22%20stroke%3D%22%23102b5f%22%20stroke-width%3D%222%22%2F%3E%3Crect%20x%3D%2248%22%20y%3D%2260%22%20width%3D%2213%22%20height%3D%2212%22%20rx%3D%222%22%20fill%3D%22%23ffda65%22%20stroke%3D%22%23102b5f%22%20stroke-width%3D%222%22%2F%3E%3Crect%20x%3D%2214%22%20y%3D%2276%22%20width%3D%2213%22%20height%3D%2212%22%20rx%3D%222%22%20fill%3D%22%23fff%22%20stroke%3D%22%23102b5f%22%20stroke-width%3D%222%22%2F%3E%3Crect%20x%3D%2231%22%20y%3D%2276%22%20width%3D%2213%22%20height%3D%2212%22%20rx%3D%222%22%20fill%3D%22%23fff%22%20stroke%3D%22%23102b5f%22%20stroke-width%3D%222%22%2F%3E%3Crect%20x%3D%2248%22%20y%3D%2276%22%20width%3D%2213%22%20height%3D%2212%22%20rx%3D%222%22%20fill%3D%22%23ffda65%22%20stroke%3D%22%23102b5f%22%20stroke-width%3D%222%22%2F%3E%3C%2Fsvg%3E"); }
.maths-card-heading--savoir { --maths-illustration: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2064%2064%22%3E%3Cg%20stroke%3D%22%23173765%22%20stroke-width%3D%223%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M19%2031a13%2013%200%201%201%2026%200c0%206-7%209-7%2015H26c0-6-7-9-7-15Z%22%20fill%3D%22%23ffd76e%22%2F%3E%3Cpath%20d%3D%22M26%2046h12v7H26z%22%20fill%3D%22%23a5c8fa%22%2F%3E%3Cpath%20d%3D%22M29%2057h6M31%2044V34l-4-4m4%204%205-4M32%205v5M12%2012l4%205m36-5-4%205M8%2030h5m38%200h5%22%20fill%3D%22none%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E"); }
.maths-card-heading--vocabulaire { --maths-illustration: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2064%2064%22%3E%3Cg%20stroke%3D%22%23173765%22%20stroke-width%3D%223%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M6%2016c10-3%2019-2%2026%204%207-6%2016-7%2026-4v34c-9-3-18-2-26%204-8-6-17-7-26-4Z%22%20fill%3D%22%23a8d7ff%22%2F%3E%3Cpath%20d%3D%22M10%2012c9-2%2016%200%2022%205%206-5%2013-7%2022-5v32c-8-2-15%200-22%205-7-5-14-7-22-5Z%22%20fill%3D%22%23fff0c8%22%2F%3E%3Cpath%20d%3D%22M32%2017v32M16%2023c4%200%207%201%2010%203m-10%204c4%200%207%201%2010%203m12-7c3-2%206-3%2010-3m-10%2010c3-2%206-3%2010-3%22%20fill%3D%22none%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E"); }
.maths-card-heading--astuce { --maths-illustration: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2064%2064%22%3E%3Cg%20stroke%3D%22%23173765%22%20stroke-width%3D%223%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%2229%22%20cy%3D%2235%22%20r%3D%2220%22%20fill%3D%22%2399dfb2%22%2F%3E%3Ccircle%20cx%3D%2229%22%20cy%3D%2235%22%20r%3D%2213%22%20fill%3D%22%23fff0c8%22%2F%3E%3Ccircle%20cx%3D%2229%22%20cy%3D%2235%22%20r%3D%225%22%20fill%3D%22%23f6a4c9%22%2F%3E%3Cpath%20d%3D%22M29%2035%2049%2015%22%20fill%3D%22none%22%2F%3E%3Cpath%20d%3D%22m44%2019%201-9%209-5-1%208%207-1-5%208-10%201Z%22%20fill%3D%22%239dd2ff%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E"); }
.maths-card-heading--exemple::after { transform: rotate(12deg); }

.maths-calculs li { padding: .4rem 0; border-bottom: 1px solid var(--bordure); font-variant-numeric: tabular-nums; }
.maths-calculs li:last-child { border-bottom: 0; }
.maths-problemes .maths-card-heading h3 { min-width: min(100%, 10rem); }
.maths-problemes ol { margin: 0; padding: 0 0 0 1.25rem; column-gap: 32px; }
.maths-problemes li::marker { color: var(--accent); font-weight: 850; }

@media (min-width: 760px) {
    .maths-intro {
        grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
        grid-template-areas: "masthead objectives" "title objectives" "summary summary";
        column-gap: clamp(16px, 3vw, 32px);
    }

    .maths-masthead { justify-self: start; }
    .maths-intro-summary { font-size: clamp(.9rem, 1.7vw, 1.2rem); }
    .maths-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
    .maths-banner::before {
        top: -48%;
        left: -6rem;
        height: 165%;
    }

    .maths-banner-formulas {
        inset: .5rem .45rem .5rem auto;
        width: min(37%, 12rem);
        grid-template-columns: minmax(0, 1fr);
        gap: .15rem;
        font-size: clamp(.57rem, 2vw, .85rem);
        opacity: .8;
    }

    .maths-banner-formulas > :not(.maths-banner-formula--compact) { display: none; }

    .maths-banner-formulas .maths-banner-curve {
        grid-column: 1;
        grid-row: 3;
        height: 2.75rem;
    }
}

.maths-recap h2 {
    margin: 0 0 1rem;
    color: #082552;
    font-size: clamp(1.35rem, 3vw, 1.8rem);
    line-height: 1.2;
}

.maths-recap .maths-recap-exemple {
    padding: .55rem .7rem;
    border-radius: 8px;
    background: var(--teinte);
}

.maths-ensembles { margin: 0; }
.maths-ensembles dt { color: var(--accent); font-weight: 800; }
.maths-ensembles dd { margin: 0 0 .55rem; }
.maths-ensembles dd:last-child { margin-bottom: 0; }

.maths-inclusions .maths-inclusions-formule {
    color: var(--accent);
    font-size: clamp(1.1rem, 3.2vw, 1.6rem);
    font-weight: 800;
}

.maths-inclusions .maths-notes { margin-top: .65rem; }

@media (min-width: 760px) {
    .maths-inclusions { grid-column: span 2; }
}

.maths-ensembles-schema {
    display: block;
    width: 100%;
    max-width: 26rem;
    height: auto;
    margin: .4rem auto;
}

.maths-course-links {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin: .9rem 0 0;
}

.maths-course-links a {
    padding: .45rem .75rem;
    border: 1px solid #b6dbe1;
    border-radius: .55rem;
    background: #ecf8fa;
    color: #064d60;
    font-weight: 700;
}

.maths-data-table {
    width: 100%;
    margin: .7rem 0;
    border-collapse: collapse;
    font-size: .9rem;
}

.maths-data-table caption {
    padding-bottom: .35rem;
    text-align: left;
    font-weight: 700;
}

.maths-data-table :is(th, td) {
    padding: .3rem .45rem;
    border: 1px solid #b6dbe1;
    text-align: left;
}

.maths-data-table thead { background: #e0f3f7; }
