/* ===== SOURCE: styles/gomathy-tools-ux-v2.css ===== */
/* GoMathy — Point 4 v2: ergonomic layer for pedagogical tools */
:root {
    --gmx-touch-target: 44px;
    --gmx-toolbar-height: 56px;
}

[data-tool-page] button,
[data-tool-page] select,
[data-tool-page] input:not([type="range"]):not([type="checkbox"]):not([type="radio"]),
[data-tool-page] summary {
    min-height: var(--gmx-touch-target);
}

[data-tool-page] button:focus-visible,
[data-tool-page] select:focus-visible,
[data-tool-page] input:focus-visible,
[data-tool-page] summary:focus-visible,
#gomathy-graph-canvas:focus-visible {
    outline: 3px solid rgba(8, 145, 178, .38);
    outline-offset: 2px;
}

[data-tool-page] [aria-invalid="true"] {
    border-color: #e11d48 !important;
    box-shadow: 0 0 0 3px rgba(225, 29, 72, .12);
}

.gmx-tool-cockpit {
    margin: 0 0 1rem;
    border: 1px solid rgba(148, 163, 184, .36);
    border-radius: 22px;
    background: rgba(255,255,255,.94);
    box-shadow: 0 14px 36px rgba(15,23,42,.08);
    overflow: hidden;
}

.gmx-tool-cockpit__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    padding: .75rem .9rem;
    border-bottom: 1px solid rgba(226,232,240,.9);
}

.gmx-tool-cockpit__title {
    margin: 0;
    font-size: .78rem;
    font-weight: 900;
    letter-spacing: .045em;
    text-transform: uppercase;
    color: #334155;
}

.gmx-tool-steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .4rem;
    padding: .65rem .75rem .8rem;
}

.gmx-tool-step {
    display: flex;
    align-items: center;
    gap: .45rem;
    min-width: 0;
    padding: .55rem .6rem;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    color: #475569;
    font-size: .72rem;
    font-weight: 800;
}

.gmx-tool-step strong {
    display: inline-flex;
    width: 1.35rem;
    height: 1.35rem;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #e2e8f0;
    color: #334155;
}

.gmx-tool-step.is-current {
    border-color: #67e8f9;
    background: #ecfeff;
    color: #155e75;
}
.gmx-tool-step.is-current strong { background: #0891b2; color: white; }

.gmx-tool-inline-message {
    margin: .35rem 0 0;
    font-size: .72rem;
    font-weight: 700;
    color: #be123c;
}

.gmx-tool-mobilebar {
    display: none;
}

.gmx-graph-v2 #graph-left-panel {
    max-width: 390px;
}

.gmx-graph-workspaces {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .35rem;
    padding: .55rem;
    border-bottom: 1px solid #e2e8f0;
    background: #f8fafc;
}

.gmx-graph-workspace-button {
    min-height: 42px;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    background: white;
    color: #475569;
    padding: .4rem .35rem;
    font-size: .68rem;
    line-height: 1.15;
    font-weight: 900;
}
.gmx-graph-workspace-button.is-active {
    border-color: #0891b2;
    background: #ecfeff;
    color: #155e75;
    box-shadow: 0 0 0 2px rgba(8,145,178,.08);
}

.gmx-graph-context {
    margin: .55rem .55rem 0;
    border: 1px solid #bae6fd;
    border-radius: 14px;
    background: linear-gradient(135deg,#f0f9ff,#fff);
    padding: .6rem .7rem;
}
.gmx-graph-context__eyebrow {
    font-size: .62rem;
    font-weight: 900;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #0369a1;
}
.gmx-graph-context__title { margin-top: .15rem; font-size: .83rem; font-weight: 900; color: #0f172a; }
.gmx-graph-context__hint { margin-top: .15rem; font-size: .7rem; line-height: 1.35; color: #475569; }

.gmx-graph-v2 [data-gmx-workspace-card][hidden] { display: none !important; }

.gmx-graph-v2 .gmx-graph-toolbar-primary {
    display: flex;
    align-items: center;
    gap: .35rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.gmx-graph-menu { position: relative; }
.gmx-graph-menu > summary {
    list-style: none;
    cursor: pointer;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    background: white;
    color: #334155;
    padding: .5rem .8rem;
    font-size: .72rem;
    font-weight: 900;
}
.gmx-graph-menu > summary::-webkit-details-marker { display: none; }
.gmx-graph-menu__panel {
    position: absolute;
    z-index: 70;
    top: calc(100% + .45rem);
    right: 0;
    width: min(290px, 88vw);
    padding: .5rem;
    border: 1px solid #cbd5e1;
    border-radius: 16px;
    background: white;
    box-shadow: 0 18px 45px rgba(15,23,42,.18);
}
.gmx-graph-menu__panel > * { width: 100%; margin: .2rem 0; border-radius: 12px !important; text-align: left; justify-content: flex-start; }

.gmx-graph-open-tools,
.gmx-graph-close-tools {
    display: none;
}

.gmx-graph-backdrop { display: none; }

.gmx-graph-tour {
    position: absolute;
    z-index: 60;
    left: 50%;
    bottom: 1rem;
    width: min(520px, calc(100% - 2rem));
    transform: translateX(-50%);
    border: 1px solid #bae6fd;
    border-radius: 20px;
    background: rgba(255,255,255,.97);
    padding: .85rem;
    box-shadow: 0 22px 60px rgba(15,23,42,.2);
}
.gmx-graph-tour[hidden] { display:none; }
.gmx-graph-tour__dots { display:flex; gap:.3rem; }
.gmx-graph-tour__dot { width:.45rem; height:.45rem; border-radius:999px; background:#cbd5e1; }
.gmx-graph-tour__dot.is-active { background:#0891b2; }

.gmx-confirm-backdrop {
    position: fixed;
    z-index: 200;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 1rem;
    background: rgba(15,23,42,.48);
}
.gmx-confirm-dialog {
    width: min(440px, 100%);
    border-radius: 24px;
    background: white;
    padding: 1.1rem;
    box-shadow: 0 30px 80px rgba(15,23,42,.32);
}

@media (max-width: 900px) {
    .gmx-tool-steps { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .gmx-tool-mobilebar {
        position: fixed;
        z-index: 90;
        left: .65rem;
        right: .65rem;
        bottom: max(.65rem, env(safe-area-inset-bottom));
        display: grid;
        grid-template-columns: repeat(4,minmax(0,1fr));
        gap: .35rem;
        padding: .4rem;
        border: 1px solid rgba(148,163,184,.5);
        border-radius: 18px;
        background: rgba(255,255,255,.96);
        box-shadow: 0 18px 48px rgba(15,23,42,.22);
        backdrop-filter: blur(14px);
    }
    .gmx-tool-mobilebar button {
        min-height: 44px;
        border: 0;
        border-radius: 13px;
        background: #f1f5f9;
        color: #334155;
        font-size: .68rem;
        font-weight: 900;
    }
    [data-tool-page]:not([data-tool-page="graph"]) { padding-bottom: 5rem; }

    .gmx-graph-v2 #graph-left-panel {
        position: fixed;
        z-index: 85;
        left: .5rem;
        right: .5rem;
        bottom: max(.5rem, env(safe-area-inset-bottom));
        top: auto !important;
        width: auto !important;
        max-width: none;
        height: min(76vh, 690px);
        border: 1px solid #cbd5e1;
        border-radius: 24px;
        box-shadow: 0 24px 70px rgba(15,23,42,.28);
        transform: translateY(calc(100% + 2rem));
        transition: transform .22s ease;
    }
    .gmx-graph-v2 #graph-left-panel.gmx-sheet-open { transform: translateY(0); }
    .gmx-graph-v2 #graph-left-panel.hidden { display: flex !important; }
    .gmx-graph-backdrop {
        position: fixed;
        z-index: 80;
        inset: 0;
        background: rgba(15,23,42,.36);
    }
    .gmx-graph-backdrop.is-open { display:block; }
    .gmx-graph-open-tools {
        position: fixed;
        z-index: 75;
        left: 50%;
        bottom: max(.75rem, env(safe-area-inset-bottom));
        display: inline-flex;
        transform: translateX(-50%);
        align-items: center;
        justify-content: center;
        min-width: 190px;
        min-height: 48px;
        border: 1px solid #0e7490;
        border-radius: 999px;
        background: #0e7490;
        color: white;
        padding: .6rem 1rem;
        font-size: .78rem;
        font-weight: 900;
        box-shadow: 0 16px 40px rgba(14,116,144,.34);
    }
    .gmx-graph-close-tools { display:inline-flex; }
    .gmx-graph-v2 #graph-toggle-left-panel-inline,
    .gmx-graph-v2 #graph-toggle-left-panel-floating { display:none !important; }
    .gmx-graph-v2 #gomathy-graph-canvas { touch-action:none; }
    .gmx-graph-tour { bottom: 4.7rem; }
}

@media (max-width: 520px) {
    .gmx-tool-cockpit__top { align-items:flex-start; }
    .gmx-tool-step span { display:none; }
    .gmx-tool-step { justify-content:center; }
    .gmx-graph-workspaces { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .gmx-graph-v2 #graph-left-panel { height:min(82vh,730px); }
}

@media (prefers-reduced-motion: reduce) {
    .gmx-graph-v2 #graph-left-panel { transition:none; }
}
.gmx-graph-context .hidden { display: none !important; }

/* ===== SOURCE: styles/gomathy-course-physics-v6.css ===== */
/* GoMathy v6 — cours colorés et outils PC lisibles. Indépendant de Tailwind. */
.gomathy-course-section{
  --course-accent:#2563eb;--course-soft:#eff6ff;--course-border:#bfdbfe;
  position:relative;margin:0 0 1rem;padding:1.2rem 1.3rem 1.25rem;
  overflow:hidden;border:1px solid var(--course-border)!important;border-left:7px solid var(--course-accent)!important;
  border-radius:22px!important;background:#fff!important;box-shadow:0 12px 30px -25px rgba(15,23,42,.48)!important;
}
.gomathy-course-section::after{content:"";position:absolute;right:-28px;top:-34px;width:92px;height:92px;border-radius:999px;background:var(--course-soft);opacity:.9;pointer-events:none}
.gomathy-course-section__head{position:relative;z-index:1;display:flex;align-items:center;gap:.75rem;margin-bottom:.9rem}
.gomathy-course-section__icon{display:flex;align-items:center;justify-content:center;flex:0 0 auto;width:42px;height:42px;border:1px solid var(--course-border);border-radius:14px;background:var(--course-soft);font-size:1.25rem;box-shadow:0 5px 14px -10px rgba(15,23,42,.55)}
.gomathy-course-section__title{margin:0;color:#0f172a;font-size:1.25rem;font-weight:900;line-height:1.2}
.gomathy-course-section__body{position:relative;z-index:1;color:#334155;line-height:1.7}
.gomathy-course-section__rule{position:relative;z-index:1;width:74px;height:4px;margin:-.2rem 0 1rem;border-radius:99px;background:var(--course-accent)}
.gomathy-course-section--intro{--course-accent:#0284c7;--course-soft:#e0f2fe;--course-border:#bae6fd}
.gomathy-course-section--method{--course-accent:#059669;--course-soft:#d1fae5;--course-border:#a7f3d0}
.gomathy-course-section--example{--course-accent:#4f46e5;--course-soft:#e0e7ff;--course-border:#c7d2fe}
.gomathy-course-section--experiment{--course-accent:#9333ea;--course-soft:#f3e8ff;--course-border:#e9d5ff}
.gomathy-course-section--data{--course-accent:#0891b2;--course-soft:#cffafe;--course-border:#a5f3fc}
.gomathy-course-section--retain{--course-accent:#d97706;--course-soft:#fef3c7;--course-border:#fde68a}
.gomathy-course-section--warning{--course-accent:#e11d48;--course-soft:#ffe4e6;--course-border:#fecdd3}
.gomathy-course-section--mastery{--course-accent:#7c3aed;--course-soft:#ede9fe;--course-border:#ddd6fe}
.gomathy-course-section--quiz{--course-accent:#0f766e;--course-soft:#ccfbf1;--course-border:#99f6e4}
.gomathy-course-chapter-card{background:#fff!important;border-color:#dbeafe!important;box-shadow:0 10px 26px -24px rgba(15,23,42,.65)!important}
.gomathy-course-chapter-card:hover{border-color:#7dd3fc!important;box-shadow:0 18px 34px -24px rgba(2,132,199,.55)!important}

/* Tableau périodique : aucun nom ne doit dépasser. */
.gomathy-periodic-cell{min-height:72px;min-width:0;overflow:hidden;display:flex;flex-direction:column;justify-content:center;align-items:flex-start;gap:1px;padding:.42rem!important}
.gomathy-periodic-cell .gomathy-periodic-symbol{font-size:1rem;line-height:1;font-weight:950}
.gomathy-periodic-cell .gomathy-periodic-name{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;max-width:100%;font-size:.58rem;line-height:1.08;overflow-wrap:anywhere;word-break:break-word}
.gomathy-periodic-cell--compact{min-height:58px;padding:.3rem!important}
.gomathy-periodic-cell--compact .gomathy-periodic-symbol{font-size:.82rem}
.gomathy-periodic-cell--compact .gomathy-periodic-name{font-size:.52rem}

/* Mini tableau intégré au modèle atomique. */
.gomathy-mini-periodic-wrap{overflow-x:auto;border:1px solid #cbd5e1;border-radius:18px;background:#fff;padding:.65rem}
.gomathy-mini-periodic{display:grid;grid-template-columns:42px repeat(18,42px);gap:3px;min-width:802px}
.gomathy-mini-periodic button,.gomathy-mini-periodic .empty{height:42px;border-radius:8px}
.gomathy-mini-periodic button{border:1px solid #cbd5e1;background:#f8fafc;color:#334155;font-size:.72rem;font-weight:900;display:flex;flex-direction:column;align-items:center;justify-content:center;line-height:1;transition:.15s}
.gomathy-mini-periodic button:hover{transform:translateY(-1px);border-color:#0ea5e9;background:#e0f2fe}
.gomathy-mini-periodic button.is-selected{outline:3px solid rgba(14,165,233,.26);border-color:#0284c7;background:#e0f2fe;color:#0c4a6e}
.gomathy-mini-periodic button small{font-size:.48rem;font-weight:800;opacity:.75;margin-top:2px}
.gomathy-mini-periodic .period-label{display:flex;align-items:center;justify-content:center;background:#f1f5f9;color:#64748b;font-size:.62rem;font-weight:900}

/* Outils PC : l'essentiel d'abord, le mode expérimental ensuite. */
.gmx-physics-lab{margin-top:1.5rem!important;background:#fff!important;border-color:#cbd5e1!important}
.gmx-lab-heading{background:#f8fafc}
.gmx-lab-eyebrow{color:#64748b!important}
.gomathy-tool-simple-note{border:1px solid #bae6fd;border-radius:16px;background:#f0f9ff;padding:.8rem 1rem;color:#0c4a6e;font-size:.82rem;line-height:1.5}
.gomathy-bond-legend{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.55rem;margin-top:.7rem}
.gomathy-bond-legend>div{border:1px solid #e2e8f0;border-radius:12px;background:#fff;padding:.65rem;font-size:.75rem;color:#334155}
.gomathy-noncovalent-demo{margin-top:.8rem;border:1px solid #ddd6fe;border-radius:16px;background:#faf5ff;padding:.8rem}
.gomathy-optics-section{scroll-margin-top:90px;margin-top:1rem}
.gomathy-optics-jump{display:flex;flex-wrap:wrap;gap:.55rem;margin:.8rem 0 1rem}
.gomathy-optics-jump a{border:1px solid #c4b5fd;border-radius:999px;background:#fff;padding:.55rem .85rem;color:#6d28d9;font-size:.78rem;font-weight:850}
.gomathy-mole-chain{display:grid;grid-template-columns:1fr auto 1fr auto 1fr;align-items:stretch;gap:.5rem;margin-top:1rem}
.gomathy-mole-chain>div{border:1px solid #fed7aa;border-radius:16px;background:#fff7ed;padding:.85rem;text-align:center}
.gomathy-mole-chain .arrow{display:flex;align-items:center;justify-content:center;color:#c2410c;font-size:1.25rem;font-weight:950}
.gomathy-reference-panels{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}
.gomathy-reference-panel{border:1px solid #e2e8f0;border-radius:20px;background:#fff;padding:1rem}
@media(max-width:760px){
 .gomathy-course-section{padding:1rem;border-radius:18px!important}.gomathy-course-section__title{font-size:1.05rem}.gomathy-course-section__icon{width:38px;height:38px}
 .gomathy-bond-legend,.gomathy-reference-panels{grid-template-columns:1fr}.gomathy-mole-chain{grid-template-columns:1fr}.gomathy-mole-chain .arrow{transform:rotate(90deg)}
}
.gomathy-optics-section{border:1px solid #e2e8f0;border-radius:26px;background:#fff;padding:1.1rem;box-shadow:0 14px 34px -28px rgba(15,23,42,.6)}
.gomathy-optics-section__heading{display:flex;align-items:center;gap:.8rem;margin:0 0 1rem;padding:.8rem 1rem;border-radius:18px;background:#f8fafc;border:1px solid #e2e8f0}
.gomathy-optics-section__heading>span{display:flex;align-items:center;justify-content:center;width:42px;height:42px;flex:0 0 auto;border-radius:14px;background:#ede9fe;color:#6d28d9;font-size:1.1rem;font-weight:950}
.gomathy-optics-section__heading .eyebrow{margin:0;color:#7c3aed;font-size:.68rem;font-weight:900;text-transform:uppercase;letter-spacing:.08em}
.gomathy-optics-section__heading h3{margin:.15rem 0 0;color:#0f172a;font-size:1.15rem;font-weight:950}
@media(max-width:760px){.gomathy-optics-section{padding:.75rem;border-radius:20px}.gomathy-optics-section__heading{padding:.7rem}.gomathy-optics-section__heading h3{font-size:1rem}}

/* ===== SOURCE: styles/gomathy-physics-learning-v96.css ===== */
/* GoMathy V96 — contenus Physique-Chimie visuels et digestes.
   IMPORTANT : ce fichier ne cible aucun outil pédagogique interactif. */

.gm-pc-v96-visual-card,
.gm-pc-v96-data-card,
.gm-pc-v96-exercise-visual,
.gm-pc-v96-page{font-family:inherit;color:#0f172a}

.gm-pc-v96-visual-card{margin:18px 0 28px;padding:20px;border:1px solid #dbe4ee;border-radius:26px;background:linear-gradient(145deg,#f8fbff,#fff 56%,#f0fdfa);box-shadow:0 18px 45px -34px rgba(15,23,42,.6)}
.gm-pc-v96-visual-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:15px}
.gm-pc-v96-visual-head p,.gm-pc-v96-data-title p,.gm-pc-v96-eyebrow{margin:0;color:#0e7490;font-size:.69rem;font-weight:900;letter-spacing:.12em;text-transform:uppercase}
.gm-pc-v96-visual-head h3,.gm-pc-v96-data-title h3{margin:2px 0 0;font-size:1.35rem;font-weight:950;color:#0f172a}
.gm-pc-v96-visual-head>span{display:inline-flex;align-items:center;border:1px solid #bae6fd;border-radius:999px;background:#f0f9ff;padding:7px 11px;color:#075985;font-size:.75rem;font-weight:900}
.gm-pc-v96-visual-grid{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(250px,.75fr);gap:18px;align-items:stretch}
.gm-pc-v96-svg{min-width:0;border:1px solid #e2e8f0;border-radius:22px;background:#fff;padding:8px;overflow:hidden}
.gm-pc-v96-svg svg,.gm-pc-v96-sheet-visual svg,.gm-pc-v96-exercise-svg svg,.gm-pc-v96-mini-visual svg{display:block;width:100%;height:auto}
.gm-pc-v96-formula{display:flex;flex-direction:column;justify-content:center;border:1px solid #c7d2fe;border-radius:22px;background:#eef2ff;padding:18px}
.gm-pc-v96-formula>p{margin:0;color:#4338ca;font-size:.68rem;font-weight:900;text-transform:uppercase;letter-spacing:.1em}
.gm-pc-v96-formula>strong{display:block;margin-top:7px;color:#1e1b4b;font-size:1.03rem;line-height:1.55}
.gm-pc-v96-formula ul{display:grid;gap:8px;margin:15px 0 0;padding:0;list-style:none;color:#475569;font-size:.82rem;line-height:1.45}
.gm-pc-v96-formula li{position:relative;padding-left:18px}.gm-pc-v96-formula li::before{content:"✓";position:absolute;left:0;color:#0f766e;font-weight:900}

.gm-pc-v96-data-card{margin:26px 0;padding:22px;border:1px solid #d8b4fe;border-radius:28px;background:linear-gradient(145deg,#faf5ff,#fff 58%,#f0fdfa);box-shadow:0 18px 45px -36px rgba(88,28,135,.45)}
.gm-pc-v96-data-title{display:flex;gap:12px;align-items:center}.gm-pc-v96-data-title>span{display:grid;place-items:center;width:44px;height:44px;border-radius:15px;background:#ede9fe;font-size:1.35rem}
.gm-pc-v96-data-grid{display:grid;grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);gap:16px;margin-top:18px}
.gm-pc-v96-data-grid>article{min-width:0;border:1px solid #e2e8f0;border-radius:20px;background:#fff;padding:17px}
.gm-pc-v96-data-grid h4{margin:6px 0 12px;color:#0f172a;font-size:.96rem;line-height:1.55}
.gm-pc-v96-data-grid ol{display:grid;gap:8px;margin:0;padding:0;list-style:none}.gm-pc-v96-data-grid ol li{display:flex;gap:9px;align-items:flex-start;color:#475569;font-size:.8rem;line-height:1.45}.gm-pc-v96-data-grid ol li span{display:grid;place-items:center;width:22px;height:22px;flex:0 0 22px;border-radius:50%;background:#0f766e;color:#fff;font-size:.7rem;font-weight:900}
.gm-pc-v96-table{max-width:100%;overflow:auto;border-radius:14px}.gm-pc-v96-table table{width:100%;border-collapse:collapse;font-size:.76rem}.gm-pc-v96-table th,.gm-pc-v96-table td{border:1px solid #e2e8f0;padding:7px 8px;white-space:nowrap}.gm-pc-v96-table th{background:#f8fafc;font-weight:900}.gm-pc-v96-note{font-size:.82rem;line-height:1.55;color:#475569}

.gm-pc-v96-exercise-visual{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(240px,.85fr);gap:18px;align-items:center;margin:0 0 18px;padding:17px;border:1px solid #bae6fd;border-radius:24px;background:linear-gradient(145deg,#f0f9ff,#fff);box-shadow:0 12px 32px -28px rgba(2,132,199,.5)}
.gm-pc-v96-exercise-svg{min-width:0;border:1px solid #e2e8f0;border-radius:18px;background:#fff;padding:6px}.gm-pc-v96-exercise-visual>div:last-child{padding:8px 6px}.gm-pc-v96-exercise-visual p{margin:0;color:#0369a1;font-size:.68rem;font-weight:900;text-transform:uppercase;letter-spacing:.1em}.gm-pc-v96-exercise-visual h3{margin:6px 0 10px;font-size:1rem;line-height:1.45}.gm-pc-v96-exercise-visual ul{display:grid;gap:5px;margin:0;padding-left:18px;color:#475569;font-size:.78rem;line-height:1.45}
.gm-pc-v96-series-collapsed{padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important}.gm-pc-v96-optional{border:1px dashed #c4b5fd;border-radius:20px;background:#faf5ff;overflow:hidden}.gm-pc-v96-optional>summary{display:grid;grid-template-columns:auto auto 1fr;gap:9px;align-items:center;padding:15px 17px;cursor:pointer;list-style:none;color:#5b21b6}.gm-pc-v96-optional>summary::-webkit-details-marker{display:none}.gm-pc-v96-optional>summary span{font-size:1.05rem}.gm-pc-v96-optional>summary strong{font-size:.9rem}.gm-pc-v96-optional>summary small{justify-self:end;color:#7c3aed;font-size:.72rem;font-weight:800}.gm-pc-v96-optional-body{padding:0 14px 14px}.gm-pc-v96-optional[open]>summary{border-bottom:1px dashed #ddd6fe;background:#f5f3ff}

.gm-pc-v96-page{max-width:1480px;margin:0 auto;padding:2px 0 20px}.gm-pc-v96-back{margin:0 0 18px;border:0;background:transparent;color:#1e3a8a;font-weight:800;cursor:pointer}.gm-pc-v96-back:hover{text-decoration:underline}
.gm-pc-v96-hero{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:18px;padding:28px;border:1px solid #bae6fd;border-radius:30px;background:linear-gradient(135deg,#eff6ff,#ecfeff 54%,#fff);box-shadow:0 20px 50px -38px rgba(15,23,42,.55)}.gm-pc-v96-hero--qcm{background:linear-gradient(135deg,#f5f3ff,#fdf4ff 54%,#fff);border-color:#ddd6fe}.gm-pc-v96-hero p,.gm-pc-v96-detail-hero p,.gm-pc-v96-qcm-head p{margin:0;color:#0369a1;font-size:.72rem;font-weight:950;letter-spacing:.12em;text-transform:uppercase}.gm-pc-v96-hero--qcm p{color:#7e22ce}.gm-pc-v96-hero h2{margin:5px 0 7px;font-size:2.1rem;font-weight:950;line-height:1.05}.gm-pc-v96-hero>div:first-child>span{display:block;max-width:760px;color:#64748b;font-size:.9rem;line-height:1.55}.gm-pc-v96-hero-chip{display:grid;place-items:center;min-width:112px;height:92px;border:1px solid #bfdbfe;border-radius:24px;background:#fff;color:#0f172a;font-size:1.8rem;font-weight:950;line-height:1;box-shadow:0 10px 24px -20px rgba(15,23,42,.55)}.gm-pc-v96-hero-chip small{display:block;margin-top:4px;color:#64748b;font-size:.65rem;font-weight:900;text-transform:uppercase;letter-spacing:.08em}
.gm-pc-v96-levels{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 22px}.gm-pc-v96-levels button{border:1px solid #cbd5e1;border-radius:999px;background:#fff;padding:8px 14px;color:#475569;font-size:.82rem;font-weight:850;cursor:pointer}.gm-pc-v96-levels button:hover{border-color:#60a5fa;background:#eff6ff}.gm-pc-v96-levels button.is-active{border-color:#0f172a;background:#0f172a;color:#fff}
.gm-pc-v96-card-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.gm-pc-v96-chapter-card{display:flex;min-width:0;min-height:245px;flex-direction:column;text-align:left;border:1px solid #dbe4ee;border-radius:24px;background:#fff;padding:20px;box-shadow:0 14px 32px -28px rgba(15,23,42,.58);cursor:pointer;transition:.16s ease}.gm-pc-v96-chapter-card:hover{transform:translateY(-2px);border-color:#7dd3fc;box-shadow:0 20px 38px -27px rgba(2,132,199,.42)}.gm-pc-v96-qcm-card:hover{border-color:#d8b4fe;box-shadow:0 20px 38px -27px rgba(126,34,206,.35)}.gm-pc-v96-card-top{display:flex;align-items:center;justify-content:space-between;gap:12px}.gm-pc-v96-card-top>span{display:grid;place-items:center;width:44px;height:44px;border-radius:15px;background:#f8fafc;font-size:1.45rem}.gm-pc-v96-card-top em{font-style:normal;border:1px solid #e2e8f0;border-radius:999px;background:#f8fafc;padding:5px 9px;color:#64748b;font-size:.68rem;font-weight:900}.gm-pc-v96-chapter-card h3{margin:14px 0 7px;color:#0f172a;font-size:1rem;font-weight:950;line-height:1.35}.gm-pc-v96-chapter-card>p{margin:0;color:#64748b;font-size:.78rem;line-height:1.5}.gm-pc-v96-chapter-card ul{display:grid;gap:4px;margin:10px 0 0;padding:0;list-style:none;color:#475569;font-size:.73rem;line-height:1.4}.gm-pc-v96-chapter-card li{position:relative;padding-left:15px}.gm-pc-v96-chapter-card li::before{content:"•";position:absolute;left:2px;color:#0891b2}.gm-pc-v96-chapter-card>strong{margin-top:auto;padding-top:16px;color:#0e7490;font-size:.78rem}.gm-pc-v96-qcm-card>strong{color:#7e22ce}

.gm-pc-v96-detail-hero{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:24px;border:1px solid #bae6fd;border-radius:28px;background:linear-gradient(135deg,#f0f9ff,#fff);box-shadow:0 18px 46px -36px rgba(15,23,42,.55)}.gm-pc-v96-detail-title{display:flex;align-items:center;gap:15px;min-width:0}.gm-pc-v96-detail-title>span{display:grid;place-items:center;width:58px;height:58px;flex:0 0 58px;border-radius:18px;background:#fff;border:1px solid #dbe4ee;font-size:1.8rem}.gm-pc-v96-detail-hero h2{margin:3px 0 0;font-size:1.9rem;font-weight:950;line-height:1.15}.gm-pc-v96-detail-formula{max-width:380px;border:1px solid #c7d2fe;border-radius:20px;background:#eef2ff;padding:14px 16px}.gm-pc-v96-detail-formula small{display:block;color:#4338ca;font-size:.64rem;font-weight:950;text-transform:uppercase;letter-spacing:.1em}.gm-pc-v96-detail-formula strong{display:block;margin-top:4px;color:#1e1b4b;font-size:.88rem;line-height:1.45}
.gm-pc-v96-sheet-visual{margin:18px 0;padding:8px;border:1px solid #e2e8f0;border-radius:24px;background:#fff;box-shadow:0 14px 32px -30px rgba(15,23,42,.5)}.gm-pc-v96-sheet-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.gm-pc-v96-sheet-card{border:1px solid #e2e8f0;border-radius:22px;background:#fff;padding:20px;box-shadow:0 12px 28px -28px rgba(15,23,42,.6)}.gm-pc-v96-sheet-card--wide{grid-column:1/-1;background:linear-gradient(145deg,#f8fafc,#fff)}.gm-pc-v96-sheet-title{display:flex;align-items:center;gap:10px;margin-bottom:13px}.gm-pc-v96-sheet-title span{font-size:1.25rem}.gm-pc-v96-sheet-title h3{margin:0;font-size:1rem;font-weight:950}.gm-pc-v96-checklist,.gm-pc-v96-warning ul{display:grid;gap:8px;margin:0;padding:0;list-style:none;color:#475569;font-size:.82rem;line-height:1.5}.gm-pc-v96-checklist li{position:relative;padding-left:22px}.gm-pc-v96-checklist li::before{content:"✓";position:absolute;left:0;color:#059669;font-weight:950}.gm-pc-v96-steps{display:grid;gap:8px;margin:0;padding:0;list-style:none}.gm-pc-v96-steps li{display:flex;gap:10px;align-items:flex-start}.gm-pc-v96-steps li>span{display:grid;place-items:center;width:25px;height:25px;flex:0 0 25px;border-radius:50%;background:#0f766e;color:#fff;font-size:.7rem;font-weight:950}.gm-pc-v96-steps p{margin:2px 0 0;color:#475569;font-size:.8rem;line-height:1.45}.gm-pc-v96-example{margin:0;color:#334155;font-size:.86rem;line-height:1.65}.gm-pc-v96-vocab{display:grid;gap:9px;margin:0}.gm-pc-v96-vocab>div{border:1px solid #ede9fe;border-radius:14px;background:#faf5ff;padding:10px 12px}.gm-pc-v96-vocab dt{font-size:.8rem;font-weight:950;color:#4c1d95}.gm-pc-v96-vocab dd{margin:3px 0 0;color:#64748b;font-size:.73rem;line-height:1.4}.gm-pc-v96-warning{border-color:#fecdd3;background:#fff1f2}.gm-pc-v96-warning li{position:relative;padding-left:19px}.gm-pc-v96-warning li::before{content:"!";position:absolute;left:0;color:#be123c;font-weight:950}.gm-pc-v96-actions{display:flex;gap:12px;margin-top:18px}.gm-pc-v96-actions button{flex:1;border:0;border-radius:16px;background:#0f172a;padding:12px 16px;color:#fff;font-weight:900;cursor:pointer}.gm-pc-v96-actions button+button{background:#7e22ce}.gm-pc-v96-actions button:hover{filter:brightness(1.08)}

.gm-pc-v96-qcm-head{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:16px;padding:24px;border:1px solid #ddd6fe;border-radius:28px;background:linear-gradient(135deg,#faf5ff,#fff);box-shadow:0 18px 46px -36px rgba(88,28,135,.55)}.gm-pc-v96-qcm-head p{color:#7e22ce}.gm-pc-v96-qcm-head h2{margin:4px 0 5px;font-size:1.8rem;font-weight:950}.gm-pc-v96-qcm-head>div:first-child>span{color:#64748b;font-size:.83rem}.gm-pc-v96-qcm-size{display:flex;gap:7px}.gm-pc-v96-qcm-size button{border:1px solid #ddd6fe;border-radius:999px;background:#fff;padding:8px 11px;color:#6d28d9;font-size:.72rem;font-weight:900;cursor:pointer}.gm-pc-v96-qcm-size button.is-active{background:#6d28d9;color:#fff;border-color:#6d28d9}.gm-pc-v96-mini-visual{display:grid;grid-template-columns:minmax(0,1fr) minmax(210px,.38fr);gap:14px;align-items:center;margin:0 0 18px;padding:12px;border:1px solid #e2e8f0;border-radius:22px;background:#fff}.gm-pc-v96-mini-visual>div{min-width:0}.gm-pc-v96-mini-visual aside{border:1px solid #c7d2fe;border-radius:17px;background:#eef2ff;padding:13px}.gm-pc-v96-mini-visual small{display:block;color:#4338ca;font-size:.62rem;font-weight:950;text-transform:uppercase}.gm-pc-v96-mini-visual strong{display:block;margin-top:4px;color:#1e1b4b;font-size:.8rem;line-height:1.4}.gm-pc-v96-qcm-list{display:grid;gap:13px}.gm-pc-v96-question{border:1px solid #e2e8f0;border-radius:22px;background:#fff;padding:18px;box-shadow:0 10px 26px -27px rgba(15,23,42,.55)}.gm-pc-v96-question.is-correct{border-color:#a7f3d0}.gm-pc-v96-question.is-wrong{border-color:#fecdd3}.gm-pc-v96-question-title{display:flex;gap:12px;align-items:flex-start}.gm-pc-v96-question-title>span{display:grid;place-items:center;width:29px;height:29px;flex:0 0 29px;border-radius:10px;background:#f5f3ff;color:#6d28d9;font-size:.78rem;font-weight:950}.gm-pc-v96-question-title h3{margin:3px 0 0;font-size:.9rem;font-weight:900;line-height:1.45}.gm-pc-v96-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:13px}.gm-pc-v96-options button{display:flex;gap:9px;align-items:flex-start;text-align:left;border:1px solid #e2e8f0;border-radius:14px;background:#f8fafc;padding:10px 11px;color:#475569;font-size:.78rem;line-height:1.4;cursor:pointer}.gm-pc-v96-options button:hover:not(:disabled){border-color:#c4b5fd;background:#faf5ff}.gm-pc-v96-options button.is-selected{border-color:#8b5cf6;background:#f5f3ff;color:#4c1d95}.gm-pc-v96-options button.is-correct{border-color:#86efac;background:#f0fdf4;color:#166534}.gm-pc-v96-options button.is-wrong{border-color:#fda4af;background:#fff1f2;color:#9f1239}.gm-pc-v96-options b{display:grid;place-items:center;width:22px;height:22px;flex:0 0 22px;border-radius:7px;background:#fff;border:1px solid currentColor;font-size:.7rem}.gm-pc-v96-explanation{margin-top:11px;border-radius:14px;background:#f8fafc;padding:10px 12px}.gm-pc-v96-explanation strong{font-size:.76rem}.gm-pc-v96-explanation p{margin:3px 0 0;color:#64748b;font-size:.75rem;line-height:1.45}.gm-pc-v96-qcm-actions{position:sticky;bottom:10px;display:flex;justify-content:flex-end;gap:10px;margin-top:18px;border:1px solid #e2e8f0;border-radius:20px;background:rgba(255,255,255,.94);padding:11px;box-shadow:0 18px 48px -25px rgba(15,23,42,.45);backdrop-filter:blur(12px)}.gm-pc-v96-qcm-actions button{border:0;border-radius:14px;background:#6d28d9;padding:11px 18px;color:#fff;font-size:.82rem;font-weight:950;cursor:pointer}.gm-pc-v96-qcm-actions button:disabled{opacity:.4;cursor:not-allowed}.gm-pc-v96-score{display:flex;align-items:center;gap:9px;margin-right:auto}.gm-pc-v96-score strong{font-size:1.1rem}.gm-pc-v96-score span{border-radius:999px;background:#f5f3ff;padding:5px 8px;color:#6d28d9;font-size:.72rem;font-weight:900}

/* Le rendu V96 ne touche volontairement à aucune classe d'outil de physique-chimie. */
@media(max-width:1050px){.gm-pc-v96-card-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.gm-pc-v96-visual-grid,.gm-pc-v96-data-grid,.gm-pc-v96-exercise-visual,.gm-pc-v96-mini-visual{grid-template-columns:1fr}.gm-pc-v96-detail-hero,.gm-pc-v96-qcm-head{align-items:flex-start;flex-direction:column}.gm-pc-v96-detail-formula{max-width:none;width:100%}}
@media(max-width:720px){.gm-pc-v96-visual-card,.gm-pc-v96-data-card{padding:14px;border-radius:20px}.gm-pc-v96-card-grid,.gm-pc-v96-sheet-grid{grid-template-columns:1fr}.gm-pc-v96-sheet-card--wide{grid-column:auto}.gm-pc-v96-hero{align-items:flex-start;flex-direction:column;padding:20px}.gm-pc-v96-hero h2{font-size:1.7rem}.gm-pc-v96-hero-chip{min-width:92px;height:76px}.gm-pc-v96-detail-hero{padding:18px}.gm-pc-v96-detail-title{align-items:flex-start}.gm-pc-v96-detail-title>span{width:48px;height:48px;flex-basis:48px}.gm-pc-v96-detail-hero h2{font-size:1.45rem}.gm-pc-v96-options{grid-template-columns:1fr}.gm-pc-v96-actions{flex-direction:column}.gm-pc-v96-qcm-size{width:100%}.gm-pc-v96-qcm-size button{flex:1}.gm-pc-v96-optional>summary{grid-template-columns:auto 1fr}.gm-pc-v96-optional>summary small{grid-column:2;justify-self:start}.gm-pc-v96-card-grid{gap:12px}.gm-pc-v96-chapter-card{min-height:0}.gm-pc-v96-exercise-visual{padding:12px}}

/* ===== SOURCE: styles/gomathy-physics-excellence-v99.css ===== */
/* GoMathy V99 — excellence pédagogique Physique-Chimie. Zone strictement hors outils. */
.gm-pc-v99-course-panel,.gm-pc-v99-sheet,.gm-pc-v99-exercise-roadmap{font-family:inherit;color:#172033}
.gm-pc-v99-course-panel{margin:22px 0;border:1px solid #d9e2ea;border-radius:24px;background:linear-gradient(135deg,#fff,#f8fbff);box-shadow:0 14px 38px rgba(20,37,63,.08);overflow:hidden}
.gm-pc-v99-panel-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:20px 22px;border-bottom:1px solid #e3e9ef;background:linear-gradient(90deg,#eef8f8,#f7f2ff)}
.gm-pc-v99-panel-head p{margin:0 0 4px;font-size:11px;font-weight:900;letter-spacing:.12em;text-transform:uppercase;color:#0f766e}
.gm-pc-v99-panel-head h3{margin:0;font-size:22px;line-height:1.15;color:#172033}
.gm-pc-v99-panel-head span{padding:7px 11px;border-radius:999px;background:#172033;color:#fff;font-size:11px;font-weight:900;white-space:nowrap}
.gm-pc-v99-course-grid{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(260px,.75fr);gap:16px;padding:18px}
.gm-pc-v99-card{border:1px solid #e2e8f0;border-radius:18px;background:#fff;padding:16px;min-width:0}
.gm-pc-v99-card h4{margin:0 0 12px;font-size:15px;color:#172033}.gm-pc-v99-card>p{margin:0;color:#526072;font-size:13px;line-height:1.55}
.gm-pc-v99-formulas{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.gm-pc-v99-formula{border:1px solid #dbe6ef;border-radius:15px;background:#fbfdff;padding:12px}.gm-pc-v99-formula small{display:block;font-weight:900;color:#0f766e;margin-bottom:4px}.gm-pc-v99-formula strong{display:block;font-size:16px;line-height:1.3;color:#111827;word-break:break-word}.gm-pc-v99-formula em{display:block;margin-top:6px;font-style:normal;font-size:11px;line-height:1.4;color:#64748b}.gm-pc-v99-formula b{display:block;margin-top:5px;font-size:10px;color:#7c3aed}
.gm-pc-v99-bullets{display:grid;gap:8px;margin:0;padding:0;list-style:none}.gm-pc-v99-bullets li{position:relative;padding-left:20px;font-size:13px;line-height:1.45;color:#334155}.gm-pc-v99-bullets li:before{content:"✓";position:absolute;left:0;top:0;color:#0f766e;font-weight:900}.gm-pc-v99-bullets--graph li:before{content:"↗";color:#7c3aed}.gm-pc-v99-bullets--warn li:before{content:"!";display:grid;place-items:center;width:14px;height:14px;border-radius:50%;background:#fff0e8;color:#c2410c;font-size:10px;top:2px}
.gm-pc-v99-labline{display:grid;grid-template-columns:1fr auto 1fr;gap:10px;align-items:stretch;margin-top:12px}.gm-pc-v99-labbox{padding:12px;border-radius:15px;background:#f7fafc;border:1px solid #e2e8f0}.gm-pc-v99-labbox small{display:block;text-transform:uppercase;letter-spacing:.08em;font-size:9px;font-weight:900;color:#64748b}.gm-pc-v99-labbox strong{display:block;margin-top:4px;font-size:12px;line-height:1.4}.gm-pc-v99-labarrow{display:grid;place-items:center;font-weight:900;color:#0f766e}
.gm-pc-v99-details{margin-top:10px;border-top:1px dashed #d8e0e8;padding-top:10px}.gm-pc-v99-details summary{cursor:pointer;font-size:12px;font-weight:900;color:#334155}.gm-pc-v99-details>div{margin-top:10px}
/* Fiche premium */
.gm-pc-v99-sheet{margin:16px 0 20px}.gm-pc-v99-sheet__banner{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:12px;padding:14px 16px;border-radius:18px;background:#172033;color:#fff}.gm-pc-v99-sheet__banner div span{display:block;font-size:10px;font-weight:900;letter-spacing:.12em;text-transform:uppercase;color:#cbd5e1}.gm-pc-v99-sheet__banner strong{display:block;margin-top:3px;font-size:18px}.gm-pc-v99-sheet__banner em{font-style:normal;font-size:11px;color:#d7e2ee;white-space:nowrap}.gm-pc-v99-sheet__grid{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(280px,.8fr);gap:12px}.gm-pc-v99-sheet__main,.gm-pc-v99-sheet__side{display:grid;gap:12px}.gm-pc-v99-sheet .gm-pc-v99-card{box-shadow:0 7px 22px rgba(15,23,42,.05)}
.gm-pc-v99-constants{display:flex;flex-wrap:wrap;gap:7px}.gm-pc-v99-constants span{padding:6px 9px;border-radius:10px;background:#f1f5f9;font-size:11px;font-weight:800;color:#334155}
.gm-pc-v99-exam{background:linear-gradient(135deg,#fffaf0,#fff);border-color:#f1d9a5}.gm-pc-v99-exam h4{color:#8a5a09}
.gm-pc-v99-fiche-hide-secondary .gm-pc-v96-detail-formula{display:none}.gm-pc-v99-fiche-hide-secondary .gm-pc-v96-sheet-card:has(.gm-pc-v96-vocab){opacity:.88}
/* Exercices */
.gm-pc-v99-exercise-roadmap{margin:14px 0 18px;padding:15px;border:1px solid #dbe4ee;border-radius:18px;background:#fff}.gm-pc-v99-exercise-roadmap__top{display:flex;align-items:center;justify-content:space-between;gap:10px}.gm-pc-v99-exercise-roadmap__top strong{font-size:15px}.gm-pc-v99-exercise-roadmap__top span{font-size:10px;font-weight:900;background:#e8f7f3;color:#0f766e;border-radius:999px;padding:5px 8px}.gm-pc-v99-path{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:7px;margin-top:10px}.gm-pc-v99-path div{padding:8px;border-radius:12px;background:#f8fafc;border:1px solid #e2e8f0;text-align:center;font-size:10px;font-weight:800;color:#475569}.gm-pc-v99-path b{display:block;margin-bottom:2px;color:#172033}
/* QCM tags */
.gm-pc-v99-qtag{display:inline-flex;align-items:center;margin:0 0 8px 46px;padding:4px 8px;border-radius:999px;background:#eef8f8;color:#0f766e;font-size:9px;font-weight:900;letter-spacing:.06em;text-transform:uppercase}
.gm-pc-v99-card-badge{display:inline-flex;margin-top:10px;padding:5px 8px;border-radius:999px;background:#eef8f8;color:#0f766e;font-size:10px;font-weight:900}
@media(max-width:860px){.gm-pc-v99-course-grid,.gm-pc-v99-sheet__grid{grid-template-columns:1fr}.gm-pc-v99-formulas{grid-template-columns:1fr}.gm-pc-v99-path{grid-template-columns:repeat(2,minmax(0,1fr))}.gm-pc-v99-panel-head{align-items:center}.gm-pc-v99-panel-head h3{font-size:19px}}
@media(max-width:520px){.gm-pc-v99-course-panel{border-radius:18px}.gm-pc-v99-panel-head{padding:15px}.gm-pc-v99-course-grid{padding:12px}.gm-pc-v99-sheet__banner{align-items:flex-start;flex-direction:column}.gm-pc-v99-labline{grid-template-columns:1fr}.gm-pc-v99-labarrow{transform:rotate(90deg)}.gm-pc-v99-path{grid-template-columns:1fr 1fr}.gm-pc-v99-qtag{margin-left:0}}
@media print{.gm-pc-v99-sheet__banner{background:#fff!important;color:#111!important;border:1px solid #bbb}.gm-pc-v99-sheet__grid{grid-template-columns:1.2fr .8fr}.gm-pc-v99-formulas{grid-template-columns:1fr 1fr}.gm-pc-v99-sheet .gm-pc-v99-card{box-shadow:none;break-inside:avoid}.gm-pc-v96-actions,.gm-pc-v96-back,.gm-v97-reading-toolbar{display:none!important}}

/* ===== SOURCE: styles/gomathy-course-visual-v7.css ===== */
/* GoMathy v7 — liste des cours colorée + logo carré stable. Indépendant de Tailwind. */
.gomathy-logo-button{
  width:58px!important;height:58px!important;min-width:58px!important;min-height:58px!important;
  display:flex!important;align-items:center!important;justify-content:center!important;overflow:hidden!important;
  border-radius:18px!important;background:#fff!important;border:1px solid #dbeafe!important;
  box-shadow:0 10px 24px -16px rgba(15,23,42,.55)!important;flex:0 0 auto!important;
}
#gomathy-site-logo{
  display:block!important;width:100%!important;height:100%!important;max-width:none!important;
  object-fit:cover!important;object-position:center!important;transform:scale(1.18)!important;flex:0 0 auto!important;
}
@media(min-width:768px){.gomathy-logo-button{width:66px!important;height:66px!important;min-width:66px!important;min-height:66px!important;border-radius:20px!important}}
@media(min-width:1280px){.gomathy-logo-button{width:76px!important;height:76px!important;min-width:76px!important;min-height:76px!important;border-radius:22px!important}}

.gomathy-courses-page{
  position:relative;padding:clamp(1rem,2.2vw,2rem);border:1px solid #dbeafe;border-radius:32px;
  background:linear-gradient(180deg,#f8fbff 0%,#ffffff 42%,#fbfdff 100%);
  box-shadow:0 18px 50px -42px rgba(37,99,235,.55);
}
.gomathy-courses-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1.15rem}
.gomathy-course-card{
  --gmc-accent:#2563eb;--gmc-soft:#eff6ff;--gmc-border:#93c5fd;--gmc-deep:#1d4ed8;
  position:relative;display:flex;min-width:0;min-height:205px;flex-direction:column;overflow:hidden;
  padding:1.35rem 1.4rem 1.3rem;text-align:left;border:2px solid var(--gmc-border)!important;
  border-radius:26px!important;background:linear-gradient(145deg,var(--gmc-soft) 0%,#fff 72%)!important;
  box-shadow:0 14px 28px -24px color-mix(in srgb,var(--gmc-accent) 62%,transparent)!important;
  transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease!important;
}
.gomathy-course-card::before{content:"";position:absolute;inset:0 auto 0 0;width:7px;background:var(--gmc-accent)}
.gomathy-course-card::after{content:"";position:absolute;right:-32px;top:-38px;width:120px;height:120px;border-radius:999px;background:var(--gmc-accent);opacity:.08;pointer-events:none}
.gomathy-course-card:hover{transform:translateY(-4px);border-color:var(--gmc-accent)!important;box-shadow:0 22px 42px -27px color-mix(in srgb,var(--gmc-accent) 72%,transparent)!important}
.gomathy-course-card:focus-visible{outline:4px solid color-mix(in srgb,var(--gmc-accent) 24%,transparent);outline-offset:3px}
.gomathy-course-card__top{position:relative;z-index:1;display:flex;align-items:center;justify-content:space-between;gap:.8rem;margin-bottom:1rem}
.gomathy-course-card__icon{display:flex;width:54px;height:54px;flex:0 0 auto;align-items:center;justify-content:center;border:1px solid var(--gmc-border);border-radius:18px;background:#fff;font-size:1.8rem;box-shadow:0 8px 18px -14px rgba(15,23,42,.65)}
.gomathy-course-card__badge{max-width:58%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;border:1px solid var(--gmc-border);border-radius:999px;background:#fff;padding:.36rem .72rem;color:var(--gmc-deep);font-size:.72rem;font-weight:900}
.gomathy-course-card__title{position:relative;z-index:1;margin:0 0 .55rem;color:#0f172a;font-size:clamp(1.15rem,1.6vw,1.45rem);font-weight:950;line-height:1.22}
.gomathy-course-card__meta{position:relative;z-index:1;display:flex;align-items:flex-start;gap:.48rem;margin:0 0 1.1rem;color:#475569;font-size:.92rem;line-height:1.45}
.gomathy-course-card__action{position:relative;z-index:1;display:inline-flex;align-items:center;gap:.5rem;margin-top:auto;color:var(--gmc-deep);font-weight:950}
.gomathy-course-card__action span{transition:transform .18s ease}.gomathy-course-card:hover .gomathy-course-card__action span{transform:translateX(4px)}
.gomathy-course-card--violet{--gmc-accent:#7c3aed;--gmc-soft:#f5f3ff;--gmc-border:#c4b5fd;--gmc-deep:#6d28d9}
.gomathy-course-card--emerald{--gmc-accent:#059669;--gmc-soft:#ecfdf5;--gmc-border:#6ee7b7;--gmc-deep:#047857}
.gomathy-course-card--amber{--gmc-accent:#d97706;--gmc-soft:#fffbeb;--gmc-border:#fcd34d;--gmc-deep:#b45309}
.gomathy-course-card--rose{--gmc-accent:#e11d48;--gmc-soft:#fff1f2;--gmc-border:#fda4af;--gmc-deep:#be123c}
.gomathy-course-card--cyan{--gmc-accent:#0891b2;--gmc-soft:#ecfeff;--gmc-border:#67e8f9;--gmc-deep:#0e7490}
@media(max-width:760px){
  .gomathy-courses-page{padding:.8rem;border-radius:22px}.gomathy-courses-grid{grid-template-columns:1fr;gap:.85rem}
  .gomathy-course-card{min-height:178px;padding:1.05rem 1.05rem 1rem;border-radius:21px!important}
  .gomathy-course-card__icon{width:48px;height:48px;border-radius:15px;font-size:1.55rem}
  .gomathy-course-card__title{font-size:1.08rem}.gomathy-course-card__meta{font-size:.84rem}
}

/* ===== SOURCE: styles/gomathy-refonte-lisibilite-v8.css ===== */
/* GoMathy v10 — mise en page consolidée des cours et outils.
   Une seule couche cohérente remplace les corrections v8/v9 contradictoires. */

/* ---------- Cours : lecture confortable, sans effet zoom ---------- */
.gomathy-course-reader-v8{
  width:min(100%,1180px);margin:0 auto 3rem;padding:0 1rem;color:#1e293b
}
.gomathy-course-reader-v8__back{display:inline-flex;align-items:center;gap:.4rem;margin:0 0 1rem;border:0;background:transparent;color:#1e3a8a;font-weight:850;cursor:pointer}
.gomathy-course-reader-v8__header{display:flex;align-items:flex-start;gap:1rem;margin:0 0 1.25rem;padding:1.25rem 1.35rem;border:1px solid #dbeafe;border-radius:22px;background:linear-gradient(135deg,#eff6ff,#fff 58%,#faf5ff);box-shadow:0 14px 28px -26px rgba(15,23,42,.55)}
.gomathy-course-reader-v8__chapter-icon{display:grid;place-items:center;width:52px;height:52px;flex:0 0 52px;border:1px solid #c7d2fe;border-radius:16px;background:#fff;font-size:1.72rem;box-shadow:0 9px 20px -17px rgba(15,23,42,.55)}
.gomathy-course-reader-v8__eyebrow{margin:0 0 .2rem;color:#4f46e5;font-size:.72rem;font-weight:900;letter-spacing:.08em;text-transform:uppercase}
.gomathy-course-reader-v8__header h2{margin:0;color:#0f172a;font-size:clamp(1.55rem,2.6vw,2.15rem);line-height:1.18;font-weight:950}
.gomathy-course-reader-v8__header p:last-child{max-width:850px;margin:.45rem 0 0;color:#64748b;font-size:.93rem;line-height:1.55}
.gomathy-course-reader-v8 .gomathy-course-section{margin:0 0 1rem;border:1px solid #e2e8f0;border-left-width:5px;border-radius:18px;background:#fff;overflow:hidden;box-shadow:0 12px 25px -25px rgba(15,23,42,.6)}
.gomathy-course-reader-v8 .gomathy-course-section__head{display:flex;align-items:center;gap:.7rem;padding:.78rem 1rem;border-bottom:1px solid #e2e8f0;background:#f8fafc}
.gomathy-course-reader-v8 .gomathy-course-section__icon{display:grid;place-items:center;width:35px;height:35px;flex:0 0 35px;border-radius:11px;background:#fff;font-size:1.08rem;box-shadow:0 4px 12px -10px rgba(15,23,42,.65)}
.gomathy-course-reader-v8 .gomathy-course-section__title{margin:0;color:#0f172a;font-size:1.08rem;font-weight:950;line-height:1.25}
.gomathy-course-reader-v8 .gomathy-course-section__rule{display:none}
.gomathy-course-reader-v8 .gomathy-course-section__body{padding:1.05rem 1.15rem 1.18rem;color:#334155;font-size:.97rem;line-height:1.66;overflow-wrap:anywhere}
.gomathy-course-reader-v8 .gomathy-course-section__body p{margin:.38rem 0}
.gomathy-course-reader-v8 .gomathy-course-section__body ul,.gomathy-course-reader-v8 .gomathy-course-section__body ol{margin:.55rem 0;padding-left:1.35rem}
.gomathy-course-reader-v8 .gomathy-course-section__body li{margin:.34rem 0;line-height:1.6}
.gomathy-course-reader-v8 .gomathy-course-section__body strong{color:#0f172a;font-weight:850}
.gomathy-course-reader-v8 .gomathy-course-section__body .text-sm{font-size:.92rem!important;line-height:1.58!important}
.gomathy-course-reader-v8 .gomathy-course-section__body .text-xs{font-size:.8rem!important;line-height:1.5!important}
.gomathy-course-reader-v8 .gomathy-course-section__body .space-y-1>*+*{margin-top:.38rem!important}
.gomathy-course-reader-v8 .gomathy-course-section__body .space-y-3>*+*{margin-top:.68rem!important}
.gomathy-course-reader-v8 .gomathy-course-section__body .rounded-xl{border-radius:13px!important;padding:.78rem!important}
.gomathy-course-reader-v8 .gomathy-course-section__body .grid{gap:.7rem!important}
.gomathy-course-reader-v8 .gomathy-course-section--intro{border-left-color:#38bdf8}
.gomathy-course-reader-v8 .gomathy-course-section--retain{border-left-color:#8b5cf6}
.gomathy-course-reader-v8 .gomathy-course-section--method{border-left-color:#10b981}
.gomathy-course-reader-v8 .gomathy-course-section--example{border-left-color:#f59e0b}
.gomathy-course-reader-v8 .gomathy-course-section--practice{border-left-color:#0ea5e9}
.gomathy-course-reader-v8 .gomathy-course-section--vocab{border-left-color:#06b6d4}
.gomathy-course-reader-v8 .gomathy-course-section--warning{border-left-color:#f43f5e}
.gomathy-course-reader-v8 .gomathy-course-section--experiment{border-left-color:#14b8a6}
.gomathy-course-reader-v8 .gomathy-course-section--data{border-left-color:#6366f1}
.gomathy-course-reader-v8 .gomathy-course-section--quiz{border-left-color:#22c55e}
.gomathy-course-core{display:grid;gap:.55rem}
.gomathy-course-core>div,.gomathy-course-reader-v8 .gomathy-course-section__body>.space-y-3>div{box-shadow:none!important}
.gomathy-course-vocab-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.65rem}
.gomathy-course-vocab-item{padding:.78rem;border:1px solid #bae6fd;border-radius:13px;background:#f0f9ff;min-width:0}
.gomathy-course-vocab-item strong{display:block;margin-bottom:.18rem;color:#075985;font-size:.92rem}
.gomathy-course-vocab-item p{margin:0!important}
.gomathy-course-practice-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.75rem}
.gomathy-course-practice-item{padding:.85rem;border:1px solid #bae6fd;border-radius:14px;background:#f8fbff;min-width:0}
.gomathy-course-practice-item__label{margin:0 0 .35rem!important;color:#0369a1;font-size:.72rem;font-weight:900;text-transform:uppercase;letter-spacing:.06em}
.gomathy-course-practice-item details{margin-top:.6rem}
.gomathy-course-practice-item summary{cursor:pointer;color:#075985;font-weight:800}

/* ---------- Pages d'outils : larges mais non étirées ---------- */
body.gomathy-tool-active-v9 main{padding-top:.35rem!important;padding-bottom:.65rem!important}
body.gomathy-tool-active-v9 #pages{width:min(100%,1380px)!important;max-width:1380px!important;margin:0 auto!important;padding-left:.8rem!important;padding-right:.8rem!important}
.gomathy-tool-root-v8{width:100%;max-width:1380px;margin:0 auto}
.gomathy-tool-compact-v8 h2{font-size:clamp(1.45rem,2.2vw,1.95rem)!important;line-height:1.15!important;margin-bottom:.35rem!important}
.gomathy-tool-compact-v8>div>p.text-slate-600,.gomathy-tool-compact-v8>p.text-slate-600{margin-bottom:.7rem!important;font-size:.9rem!important;line-height:1.45!important}
.gomathy-tool-compact-v8 article{padding:.9rem!important;border-radius:18px!important;min-width:0}
.gomathy-tool-compact-v8 .grid{gap:.7rem!important}
.gomathy-tool-compact-v8 .mt-6,.gomathy-tool-compact-v8 .mt-5{margin-top:.75rem!important}
.gomathy-tool-compact-v8 .mb-6,.gomathy-tool-compact-v8 .mb-5{margin-bottom:.75rem!important}
.gomathy-tool-compact-v8 .p-6{padding:.95rem!important}.gomathy-tool-compact-v8 .p-5{padding:.85rem!important}.gomathy-tool-compact-v8 .p-4{padding:.75rem!important}
.gomathy-tool-compact-v8 input,.gomathy-tool-compact-v8 select{min-height:38px}
.gomathy-tool-core-grid-v8{align-items:start}
.gomathy-tool-primary-card-v8{min-width:0}
.gmx-tool-cockpit{display:none!important}
.gomathy-tool-guide-v8{display:none!important}
.gomathy-science-lab-details-v8,.gomathy-secondary-details-v8,.gomathy-advanced-details-v8{margin-top:.65rem;border:1px solid #dbeafe;border-radius:14px;background:#f8fbff;overflow:hidden}
.gomathy-science-lab-details-v8>summary,.gomathy-secondary-details-v8>summary,.gomathy-advanced-details-v8>summary{padding:.62rem .78rem;cursor:pointer;color:#334155;font-size:.78rem;font-weight:900;list-style:none}
.gomathy-science-lab-details-v8>summary::-webkit-details-marker,.gomathy-secondary-details-v8>summary::-webkit-details-marker,.gomathy-advanced-details-v8>summary::-webkit-details-marker{display:none}
.gomathy-science-lab-drawer-v9__panel,.gomathy-secondary-details-v8__body,.gomathy-advanced-details-v8__body{padding:.75rem;border-top:1px solid #dbeafe;background:#fff}

/* ---------- Tableau périodique : proportions naturelles ---------- */
.gomathy-periodic-tool-v9{width:min(100%,1280px)!important;max-width:1280px!important;margin:0 auto}
.gomathy-periodic-summary-v9{display:grid!important;grid-template-columns:minmax(280px,.72fr) minmax(420px,1.28fr)!important;gap:.7rem!important;margin-bottom:.65rem!important}
.gomathy-periodic-summary-v9 article{padding:.8rem!important;border-radius:17px!important}
.gomathy-periodic-table-scroll{overflow-x:auto!important;padding:.1rem 0 .45rem;scrollbar-gutter:stable}
.gomathy-periodic-stage-v9{width:1048px;min-width:1048px;max-width:1048px;margin:0 auto;padding:.5rem!important}
.gomathy-periodic-table-grid-v8{display:grid!important;width:1048px!important;min-width:1048px!important;grid-template-columns:52px repeat(18,52.33px)!important;gap:3px!important}
.gomathy-periodic-cell{box-sizing:border-box!important;width:52.33px!important;min-width:52.33px!important;height:56px!important;min-height:56px!important;padding:.22rem .16rem!important;border-radius:8px!important;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;overflow:hidden!important;text-align:center!important}
.gomathy-periodic-cell p{margin:0!important;font-size:.38rem!important;line-height:1!important}
.gomathy-periodic-symbol{display:block!important;font-size:.88rem!important;line-height:1!important;font-weight:950!important;text-align:center!important}
.gomathy-periodic-name{display:block!important;width:100%;margin-top:.1rem!important;font-size:.4rem!important;line-height:1!important;letter-spacing:-.018em!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:clip!important;text-align:center!important}
.gomathy-periodic-cell--compact .gomathy-periodic-name{font-size:.39rem!important}
.gomathy-periodic-table-grid-v8>div.flex{min-height:22px!important;font-size:.55rem!important;border-radius:6px!important}

/* ---------- Petit tableau de sélection de l'atome ---------- */
.gomathy-atom-periodic-v9{margin-top:.55rem!important;border:1px solid #99f6e4;border-radius:13px;background:#fff;overflow:hidden}
.gomathy-atom-periodic-v9>summary{padding:.55rem .7rem;font-size:.75rem;cursor:pointer;color:#115e59}
.gomathy-mini-periodic-wrap{overflow-x:auto;padding:.35rem 0;scrollbar-gutter:stable}
.gomathy-mini-periodic{min-width:930px;grid-template-columns:38px repeat(18,46px)!important;gap:2px!important}
.gomathy-mini-periodic button{width:46px!important;height:32px!important;min-width:46px!important;border-radius:6px!important;padding:.12rem!important}
.gomathy-mini-periodic button span{font-size:.7rem!important;font-weight:950}.gomathy-mini-periodic button small{font-size:.48rem!important}
.gomathy-mini-periodic button.atom-cat-nonmetal{background:#dcfce7;border-color:#86efac;color:#166534}
.gomathy-mini-periodic button.atom-cat-noble{background:#e0f2fe;border-color:#7dd3fc;color:#075985}
.gomathy-mini-periodic button.atom-cat-alkali{background:#fee2e2;border-color:#fca5a5;color:#991b1b}
.gomathy-mini-periodic button.atom-cat-alkaline{background:#fef3c7;border-color:#fcd34d;color:#92400e}
.gomathy-mini-periodic button.atom-cat-metalloid{background:#f3e8ff;border-color:#d8b4fe;color:#6b21a8}
.gomathy-mini-periodic button.atom-cat-halogen{background:#ccfbf1;border-color:#5eead4;color:#115e59}
.gomathy-mini-periodic button.atom-cat-transition{background:#ede9fe;border-color:#c4b5fd;color:#5b21b6}
.gomathy-mini-periodic button.atom-cat-post-transition{background:#e2e8f0;border-color:#94a3b8;color:#334155}
.gomathy-mini-periodic button.atom-cat-lanthanide{background:#ffedd5;border-color:#fdba74;color:#9a3412}
.gomathy-mini-periodic button.atom-cat-actinide{background:#fce7f3;border-color:#f9a8d4;color:#9d174d}
.gomathy-mini-periodic button.is-selected{outline:3px solid #0f766e;outline-offset:1px;transform:scale(1.06);z-index:2}

/* ---------- Mole : aucun chevauchement ---------- */
.gomathy-mole-chain{display:grid!important;grid-template-columns:minmax(0,1fr) 44px minmax(0,1fr) 54px minmax(0,1fr)!important;align-items:stretch!important;gap:.35rem!important;margin:.75rem 0!important}
.gomathy-mole-chain>div:not(.arrow){min-width:0;padding:.65rem .45rem!important;border:1px solid rgba(255,255,255,.9);border-radius:13px;background:#fff;text-align:center;overflow:hidden}
.gomathy-mole-chain p{margin:0!important;max-width:100%;overflow-wrap:anywhere;line-height:1.2!important}
.gomathy-mole-chain p.text-xl{font-size:1rem!important}.gomathy-mole-chain p.text-lg{font-size:.92rem!important}
.gomathy-mole-chain .arrow{display:grid;place-items:center;min-width:0;padding:.2rem;color:#92400e;font-size:.72rem;font-weight:950;text-align:center;line-height:1.15}

/* ---------- Lewis ---------- */
.gomathy-lewis-layout-v8{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(300px,.7fr);gap:.75rem;align-items:start}
.gomathy-lewis-main-v8,.gomathy-lewis-info-v8{min-width:0}
.gomathy-lewis-canvas-v8 svg{display:block;width:100%;height:min(46vh,350px);min-height:250px}
.gomathy-noncovalent-demo svg{display:block;width:100%;height:auto;max-height:250px}

/* ---------- Atelier graphique : repère non déformé ---------- */
#gomathy-graph-studio-root [hidden]{display:none!important}
#gomathy-graph-studio-root{font-size:14px}
#gomathy-graph-studio-root canvas{display:block!important;width:100%!important;height:100%!important;min-width:0;min-height:0}
#gomathy-graph-studio-root .gmx-graph-workspaces{position:sticky;top:0;z-index:4;padding:.55rem;background:#fff;border-bottom:1px solid #e2e8f0}
#gomathy-graph-studio-root .gmx-graph-workspace-button{min-height:38px}
#gomathy-graph-studio-root .gmx-graph-context{margin:.5rem .6rem .35rem!important;padding:.62rem .7rem!important}
#gomathy-graph-studio-root #geometric-objects-list>div{padding:.48rem .55rem!important}
#gomathy-graph-studio-root #gmx-graph-max-panel{margin:.5rem!important}
.gmx-graph-max-summary{display:flex;align-items:center;justify-content:space-between;gap:.5rem;padding:.65rem .75rem;cursor:pointer;color:#334155;font-size:.76rem;font-weight:950;list-style:none}
.gmx-graph-max-summary::-webkit-details-marker{display:none}.gmx-graph-max-summary small{color:#64748b;font-size:.65rem;font-weight:800;text-transform:uppercase;letter-spacing:.05em}
.gmx-graph-max-content{padding:0 .75rem .75rem}.gmx-graph-max-help{margin:.5rem 0 0;color:#64748b;font-size:.68rem;line-height:1.4}

/* ---------- Optique ---------- */
.gomathy-optics-tabs-v8{display:flex;gap:.45rem;margin:0 0 .65rem;padding:.3rem;border:1px solid #dbeafe;border-radius:14px;background:#eff6ff}
.gomathy-optics-tab-v8{flex:1 1 0;padding:.58rem .8rem;border:1px solid transparent;border-radius:10px;background:transparent;color:#475569;font-weight:900;cursor:pointer}
.gomathy-optics-tab-v8.is-active{border-color:#93c5fd;background:#fff;color:#1d4ed8;box-shadow:0 7px 18px -16px rgba(15,23,42,.65)}
.gomathy-optics-section-v8[hidden]{display:none!important}
.gomathy-optics-values-v9{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.35rem;margin-top:.5rem}
.gomathy-optics-values-v9 p{margin:0!important;padding:.38rem .48rem;border:1px solid #e2e8f0;border-radius:9px;background:#f8fafc;font-size:.72rem!important;line-height:1.25!important}

/* ---------- Outils principaux sur une vue de bureau ---------- */
@media(min-width:1100px){
  body.gomathy-tool-page--electricity #pages>div>.grid,
  body.gomathy-tool-page--reference #pages>div>.grid,
  body.gomathy-tool-page--atom #pages>div>.grid,
  body.gomathy-tool-page--gravity #pages>div>.grid,
  body.gomathy-tool-page--mole #pages>div>.grid{grid-template-columns:minmax(340px,.78fr) minmax(0,1.22fr)!important;gap:.7rem!important}
  body.gomathy-tool-page--electricity article,body.gomathy-tool-page--reference article,body.gomathy-tool-page--atom article,body.gomathy-tool-page--gravity article,body.gomathy-tool-page--mole article{padding:.75rem!important}
  body.gomathy-tool-page--electricity svg{height:210px!important;max-height:210px!important}
  body.gomathy-tool-page--reference svg{height:165px!important;max-height:165px!important}
  body.gomathy-tool-page--atom svg{height:250px!important;max-height:250px!important;min-width:250px!important}
  body.gomathy-tool-page--gravity svg{max-height:290px!important}
  body.gomathy-tool-page--optics svg{max-height:245px!important}
  body.gomathy-tool-page--periodic #pages{max-width:1320px!important}
  body.gomathy-tool-page--periodic .gomathy-periodic-table-scroll{overflow-x:hidden!important}
  body.gomathy-tool-page--periodic .gomathy-periodic-stage-v9{transform-origin:top center}
}


/* ---------- Lewis : interface stable, claire et compacte ---------- */
.gomathy-lewis-v8{width:min(100%,1240px);margin:0 auto;color:#1e293b}
.gomathy-tool-title-v8{margin:0 0 .75rem;padding:.9rem 1rem;border:1px solid #e9d5ff;border-radius:18px;background:linear-gradient(135deg,#faf5ff,#fff);box-shadow:0 10px 24px -22px rgba(88,28,135,.55)}
.gomathy-tool-title-v8 .eyebrow,.gomathy-lewis-info-v8 .eyebrow{margin:0 0 .15rem;color:#7e22ce;font-size:.7rem;font-weight:950;letter-spacing:.07em;text-transform:uppercase}
.gomathy-tool-title-v8 h2{margin:0;color:#111827;font-size:1.75rem;line-height:1.15;font-weight:950}
.gomathy-tool-title-v8 p:last-child{margin:.35rem 0 0;color:#64748b;font-size:.88rem;line-height:1.45}
.gomathy-lewis-layout-v8{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(290px,.65fr);gap:.8rem;align-items:stretch}
.gomathy-lewis-main-v8,.gomathy-lewis-info-v8{padding:.8rem;border:1px solid #e2e8f0;border-radius:18px;background:#fff;box-shadow:0 10px 22px -22px rgba(15,23,42,.55)}
.gomathy-lewis-quick-v8{display:flex;flex-wrap:wrap;gap:.38rem;margin-bottom:.45rem}
.gomathy-lewis-quick-v8 button,.gomathy-lewis-formulas-v8 button,.gomathy-composer-controls-v8 button{min-height:32px;padding:.32rem .62rem;border:1px solid #d8b4fe;border-radius:999px;background:#faf5ff;color:#6b21a8;font-size:.72rem;font-weight:900;cursor:pointer}
.gomathy-lewis-quick-v8 button.is-active,.gomathy-lewis-formulas-v8 button.is-active,.gomathy-composer-controls-v8 button.is-active{border-color:#7e22ce;background:#7e22ce;color:#fff}
.gomathy-lewis-canvas-v8{display:grid;place-items:center;height:285px;border:1px solid #ede9fe;border-radius:15px;background:radial-gradient(circle at 50% 45%,#fff,#faf5ff)}
.gomathy-lewis-canvas-v8 svg{width:100%;height:100%;max-height:none!important}
.gomathy-lewis-legend-v8{display:flex;flex-wrap:wrap;gap:.35rem;margin-top:.45rem}
.gomathy-lewis-legend-v8 span{padding:.25rem .48rem;border:1px solid #e2e8f0;border-radius:999px;background:#f8fafc;color:#475569;font-size:.67rem;font-weight:750}
.gomathy-lewis-info-v8 h3{margin:.1rem 0 .45rem;color:#111827;font-size:1.25rem;font-weight:950}
.gomathy-lewis-info-v8>p{margin:.3rem 0;font-size:.84rem;line-height:1.45}
.gomathy-lewis-method-v8{display:grid;gap:.38rem;margin:.65rem 0;padding:0;list-style:none}
.gomathy-lewis-method-v8 li{display:grid;grid-template-columns:24px minmax(0,1fr);gap:.45rem;align-items:center;padding:.4rem .5rem;border:1px solid #e2e8f0;border-radius:10px;background:#f8fafc;font-size:.76rem}
.gomathy-lewis-method-v8 li span{display:grid;place-items:center;width:24px;height:24px;border-radius:50%;background:#7e22ce;color:#fff;font-size:.65rem;font-weight:950}
.gomathy-secondary-button-v8{width:100%;padding:.52rem .65rem;border:1px solid #c4b5fd;border-radius:11px;background:#f5f3ff;color:#6d28d9;font-size:.74rem;font-weight:900;cursor:pointer}
.gomathy-noncovalent-demo{margin-top:.55rem;padding:.55rem;border:1px solid #ddd6fe;border-radius:12px;background:#faf5ff}
.gomathy-noncovalent-demo p{margin:.18rem 0;font-size:.7rem;line-height:1.35}
.gomathy-noncovalent-demo svg{height:205px!important;max-height:205px!important}
.gomathy-advanced-details-v8{margin-top:.65rem}
.gomathy-advanced-details-v8>summary{display:flex;justify-content:space-between;gap:.5rem}
.gomathy-advanced-details-v8>summary small{color:#64748b;font-size:.65rem}
.gomathy-formula-builder-v8,.gomathy-composer-controls-v8{display:flex;flex-wrap:wrap;gap:.45rem;align-items:end}
.gomathy-formula-builder-v8 label,.gomathy-composer-controls-v8 label{display:grid;gap:.25rem;color:#475569;font-size:.72rem;font-weight:800}
.gomathy-formula-builder-v8 input,.gomathy-composer-controls-v8 select{min-height:34px;padding:.35rem .5rem;border:1px solid #cbd5e1;border-radius:9px;background:#fff}
.gomathy-lewis-formulas-v8{display:flex;flex-wrap:wrap;gap:.35rem;margin-top:.55rem}

/* ---------- Tableau périodique : tout le cœur visible sur un écran ---------- */
body.gomathy-tool-page--periodic .gomathy-periodic-tool-v9>button[data-action="go-home"]{margin-bottom:.35rem!important}
body.gomathy-tool-page--periodic .gomathy-periodic-tool-v9>h2{margin:0 0 .5rem!important;font-size:1.85rem!important;line-height:1.1!important}
.gomathy-periodic-summary-v9{gap:.55rem!important;margin-bottom:.45rem!important}
.gomathy-periodic-summary-v9 article{padding:.6rem!important;border-radius:15px!important}
.gomathy-periodic-summary-v9 label{margin-bottom:.2rem!important;font-size:.72rem!important}
.gomathy-periodic-summary-v9 input{min-height:34px!important;padding:.38rem .6rem!important}
.gomathy-periodic-summary-v9 article:first-child .mt-4{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:.25rem!important;margin-top:.38rem!important}
.gomathy-periodic-summary-v9 article:first-child .mt-4 span{justify-content:center!important;padding:.17rem .3rem!important;font-size:.55rem!important;white-space:nowrap}
.gomathy-periodic-summary-v9 article:nth-child(2) h3{font-size:1.35rem!important;line-height:1.12!important}
.gomathy-periodic-summary-v9 article:nth-child(2) .mt-4{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:.28rem!important;margin-top:.38rem!important;font-size:.68rem!important}
.gomathy-periodic-summary-v9 article:nth-child(2) .mt-4 p{padding:.3rem .4rem!important;border-radius:8px!important;white-space:nowrap}
.gomathy-periodic-summary-v9 article:nth-child(2)>p.mt-3{margin-top:.35rem!important;padding:.3rem .45rem!important;font-size:.68rem!important}
.gomathy-periodic-summary-v9 article:nth-child(2)>button.mt-4{margin-top:.38rem!important;padding:.38rem .65rem!important;font-size:.68rem!important}

/* ---------- Mobile ---------- */
@media(max-width:1099px){
  body.gomathy-tool-active-v9 #pages{padding-left:.55rem!important;padding-right:.55rem!important}
  .gomathy-periodic-summary-v9{grid-template-columns:1fr!important}
  .gomathy-periodic-table-scroll{overflow-x:auto!important}
  .gomathy-mini-periodic-wrap{overflow-x:auto!important}
  .gomathy-lewis-layout-v8{grid-template-columns:1fr}.gomathy-lewis-canvas-v8{height:250px}.gomathy-periodic-summary-v9 article:first-child .mt-4{grid-template-columns:repeat(2,minmax(0,1fr))!important}.gomathy-periodic-summary-v9 article:nth-child(2) .mt-4{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media(max-width:760px){
  .gomathy-course-reader-v8{padding:0 .45rem}
  .gomathy-course-reader-v8__header{padding:.95rem;gap:.7rem}.gomathy-course-reader-v8__chapter-icon{width:44px;height:44px;flex-basis:44px;font-size:1.4rem}
  .gomathy-course-reader-v8__header h2{font-size:1.5rem}
  .gomathy-course-reader-v8 .gomathy-course-section__head{padding:.72rem .82rem}.gomathy-course-reader-v8 .gomathy-course-section__body{padding:.9rem;font-size:.94rem;line-height:1.6}
  .gomathy-course-vocab-grid,.gomathy-course-practice-list{grid-template-columns:1fr}
  .gomathy-mole-chain{grid-template-columns:1fr!important;gap:.28rem!important}
  .gomathy-mole-chain .arrow{min-height:28px}.gomathy-mole-chain .arrow::before{content:'↓';margin-right:.3rem}
  .gomathy-optics-tabs-v8{flex-direction:column}.gomathy-optics-values-v9{grid-template-columns:1fr 1fr}
  .gomathy-tool-compact-v8 article{padding:.75rem!important}
}

/* Structures textuelles nettoyées des cours */
.gomathy-course-narrative{display:grid;gap:.48rem}
.gomathy-course-narrative p{margin:0!important}
.gomathy-course-keypoints{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.5rem .85rem;margin:0!important;padding:0!important;list-style:none}
.gomathy-course-keypoints li{position:relative;margin:0!important;padding:.55rem .65rem .55rem 1.7rem;border:1px solid #e2e8f0;border-radius:12px;background:#f8fafc;min-width:0}
.gomathy-course-keypoints li::before{content:'✓';position:absolute;left:.58rem;top:.53rem;color:#4f46e5;font-weight:950}
.gomathy-course-method-list{display:grid;gap:.55rem;margin:0!important;padding:0!important;list-style:none}
.gomathy-course-method-list li{display:grid;grid-template-columns:28px minmax(0,1fr);gap:.65rem;align-items:start;margin:0!important;padding:.6rem .7rem;border:1px solid #d1fae5;border-radius:12px;background:#f0fdf4}
.gomathy-course-method-list li>span{display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:#059669;color:#fff;font-size:.75rem;font-weight:950}
.gomathy-course-method-list p{margin:.16rem 0 0!important}
@media(max-width:760px){.gomathy-course-keypoints{grid-template-columns:1fr}}

/* Ajustements finaux uniques — bureau */
.gomathy-course-reader-v8{box-sizing:border-box}
@media(min-width:1100px){
  body.gomathy-tool-active-v9 #site-header>.mx-auto{padding:.35rem .8rem!important}
  body.gomathy-tool-active-v9 #site-header>.mx-auto>div{min-height:58px!important;gap:.55rem!important}
  body.gomathy-tool-active-v9 .gomathy-logo-button{width:48px!important;height:48px!important;margin-right:.25rem!important}
  body.gomathy-tool-active-v9 #subject-select-wrap{width:190px!important;min-width:190px!important}
  body.gomathy-tool-active-v9 label[for="subject-select"]{display:none!important}
  body.gomathy-tool-active-v9 #subject-select{padding:.45rem .65rem!important;font-size:.78rem!important}
  body.gomathy-tool-active-v9 #top-nav>button,body.gomathy-tool-active-v9 #top-nav>div>button{padding:.48rem .72rem!important;font-size:.72rem!important}
  body.gomathy-tool-active-v9 footer{display:none!important}
  body.gomathy-tool-page--electricity .gomathy-electricity-results-v9>div{margin-bottom:.5rem!important}
  body.gomathy-tool-page--electricity .gomathy-electricity-results-v9 .grid{gap:.45rem!important;margin-bottom:.5rem!important}
  body.gomathy-tool-page--electricity .gomathy-electricity-results-v9 .grid>div{padding:.55rem!important}
  body.gomathy-tool-page--atom .gomathy-atom-periodic-v9{margin-top:.4rem!important}
  body.gomathy-tool-page--atom article:first-of-type>div.mt-4{margin-top:.55rem!important}
  body.gomathy-tool-page--atom article:first-of-type>div.mt-4.rounded-2xl{padding:.65rem!important}
  body.gomathy-tool-page--atom article:first-of-type>div.mt-4.rounded-2xl .mt-2{margin-top:.35rem!important}
}
/* Tableau périodique : ajustement vertical pour une vue complète sur écran 1440×900 */
@media(min-width:1100px){
  body.gomathy-tool-page--periodic #site-header>.mx-auto{padding:.18rem .7rem!important}
  body.gomathy-tool-page--periodic #site-header>.mx-auto>div{min-height:50px!important}
  body.gomathy-tool-page--periodic .gomathy-logo-button{width:42px!important;height:42px!important}
  body.gomathy-tool-page--periodic .gomathy-periodic-cell{height:44px!important;min-height:44px!important;padding:.12rem .1rem!important}
  body.gomathy-tool-page--periodic .gomathy-periodic-stage-v9{padding:.3rem!important}
  body.gomathy-tool-page--periodic .gomathy-periodic-table-grid-v8>div.flex{min-height:18px!important}
}

/* ===== SOURCE: styles/gomathy-tools-fullscreen-v60.css ===== */
/* GoMathy V60 — outils plein écran. L'atelier graphique est volontairement exclu. */
@media (min-width: 900px) {
  body.gomathy-v60-tool-active:not([data-gomathy-page="graph"]) main{overflow:hidden}
  body.gomathy-v60-tool-active:not([data-gomathy-page="graph"]) #pages{
    height:calc(100dvh - 150px)!important;min-height:0!important;overflow:hidden!important;
  }
  body.gomathy-v60-tool-active:not([data-gomathy-page="graph"]) #pages>div{
    height:100%;min-height:0;overflow:hidden;
  }
  body.gomathy-v60-tool-active:not([data-gomathy-page="graph"]) #gomathy-ad-container{display:none!important}

  /* Outils maths récents : Probas / Stats / Suites */
  body[data-gomathy-page="probability"] .gmx-ps-tool,
  body[data-gomathy-page="statistics"] .gmx-ps-tool,
  body[data-gomathy-page="sequences"] .gmx-ps-tool{height:100%;padding-bottom:.2rem;display:grid;grid-template-rows:auto minmax(0,1fr)}
  body[data-gomathy-page="probability"] .gmx-ps-shell,
  body[data-gomathy-page="statistics"] .gmx-ps-shell,
  body[data-gomathy-page="sequences"] .gmx-ps-shell{min-height:0;height:100%;display:grid;grid-template-rows:auto auto minmax(0,1fr)}
  body[data-gomathy-page="probability"] .gmx-ps-workspace,
  body[data-gomathy-page="statistics"] .gmx-ps-workspace,
  body[data-gomathy-page="sequences"] .gmx-seq-workspace{height:100%;min-height:0;overflow:hidden;padding:.48rem}
  body[data-gomathy-page="probability"] .gmx-ps-panel,
  body[data-gomathy-page="statistics"] .gmx-ps-panel,
  body[data-gomathy-page="sequences"] .gmx-seq-workspace{height:100%;min-height:0;align-items:stretch}
  body[data-gomathy-page="probability"] .gmx-ps-controls,
  body[data-gomathy-page="statistics"] .gmx-ps-controls,
  body[data-gomathy-page="sequences"] .gmx-ps-controls,
  body[data-gomathy-page="probability"] .gmx-ps-visual,
  body[data-gomathy-page="statistics"] .gmx-ps-visual,
  body[data-gomathy-page="sequences"] .gmx-ps-visual{min-height:0!important;height:100%;overflow:hidden;padding:.58rem}
  body[data-gomathy-page="probability"] .gmx-ps-controls,
  body[data-gomathy-page="statistics"] .gmx-ps-controls,
  body[data-gomathy-page="sequences"] .gmx-ps-controls{align-self:stretch}
  body[data-gomathy-page="probability"] .gmx-ps-head,
  body[data-gomathy-page="statistics"] .gmx-ps-head,
  body[data-gomathy-page="sequences"] .gmx-ps-head{padding:.6rem .9rem .38rem}
  body[data-gomathy-page="probability"] .gmx-ps-head h2,
  body[data-gomathy-page="statistics"] .gmx-ps-head h2,
  body[data-gomathy-page="sequences"] .gmx-ps-head h2{font-size:1.45rem}
  body[data-gomathy-page="probability"] .gmx-ps-head p,
  body[data-gomathy-page="statistics"] .gmx-ps-head p,
  body[data-gomathy-page="sequences"] .gmx-ps-head p{margin-top:.18rem;font-size:.72rem;line-height:1.28}
  body[data-gomathy-page="probability"] .gmx-ps-tabs,
  body[data-gomathy-page="statistics"] .gmx-ps-tabs,
  body[data-gomathy-page="sequences"] .gmx-ps-tabs{padding:.12rem .7rem .38rem}
  body[data-gomathy-page="probability"] .gmx-ps-tabs button,
  body[data-gomathy-page="statistics"] .gmx-ps-tabs button,
  body[data-gomathy-page="sequences"] .gmx-ps-tabs button{padding:.38rem .58rem}
  body[data-gomathy-page="probability"] .gmx-prob-tree-svg,
  body[data-gomathy-page="probability"] .gmx-prob-bin-svg,
  body[data-gomathy-page="probability"] .gmx-prob-urn-svg,
  body[data-gomathy-page="statistics"] svg,
  body[data-gomathy-page="sequences"] .gmx-seq-graph-svg,
  body[data-gomathy-page="sequences"] .gmx-seq-cobweb-svg{max-height:255px!important}
  body[data-gomathy-page="statistics"] .gmx-ps-controls textarea{max-height:72px;min-height:52px;resize:none}
  body[data-gomathy-page="probability"] .gmx-ps-metrics,
  body[data-gomathy-page="statistics"] .gmx-ps-metrics{grid-template-columns:repeat(4,minmax(0,1fr))}
  body[data-gomathy-page="sequences"] .gmx-seq-visual{justify-content:flex-start!important}
  body[data-gomathy-page="sequences"] .gmx-seq-intuition{margin-bottom:.25rem!important}

  /* Outils Physique-Chimie ajoutés en V8/V60 */
  .gomathy-extra-physics-v8{height:100%;display:grid;grid-template-rows:auto auto minmax(0,1fr);gap:.3rem;overflow:hidden}
  .gomathy-v60-back{display:inline-flex;width:max-content;margin:0 0 .15rem;color:#1e3a8a;font-weight:800;font-size:.78rem}
  .gomathy-extra-physics-v8 .gomathy-tool-title-v8{margin:0!important;padding:.55rem .8rem!important}
  .gomathy-extra-physics-v8 .gomathy-tool-title-v8 h2{font-size:1.55rem!important;line-height:1.05;margin:.1rem 0!important}
  .gomathy-extra-physics-v8 .gomathy-tool-title-v8 p{font-size:.72rem!important;line-height:1.25!important;margin:.12rem 0!important}
  .gomathy-extra-grid-v8{display:grid;grid-template-columns:minmax(270px,.78fr) minmax(0,1.22fr);gap:.55rem;min-height:0;height:100%;overflow:hidden}
  .gomathy-extra-controls-v8,.gomathy-extra-visual-v8{min-height:0;height:100%;overflow:hidden;border:1px solid #e2e8f0;border-radius:18px;background:#fff;padding:.72rem!important}
  .gomathy-extra-controls-v8{display:flex;flex-direction:column;gap:.35rem}
  .gomathy-extra-controls-v8 label{font-size:.66rem!important;margin:0!important;font-weight:850;color:#475569}
  .gomathy-extra-controls-v8 input,.gomathy-extra-controls-v8 select{margin-top:.18rem!important;padding:.38rem .46rem!important;font-size:.72rem!important;min-height:0!important}
  .gomathy-extra-controls-v8>button{padding:.48rem .65rem!important;margin:.05rem 0!important}
  .gomathy-extra-formula-v8{font-size:.72rem!important;line-height:1.3!important;padding:.5rem!important;margin:.05rem 0!important}
  .gpx-input-grid-v60{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.35rem .45rem}
  .gpx-note-v60{border-radius:10px;background:#f8fafc;padding:.42rem .55rem;color:#64748b;font-size:.62rem;line-height:1.3}
  .gomathy-extra-visual-v8{display:grid;grid-template-rows:minmax(0,1fr) auto;align-items:center;gap:.35rem}
  .gomathy-extra-visual-v8>svg{width:100%;height:100%;max-height:290px;min-height:0}
  .gomathy-extra-results-v8{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:.35rem!important;margin:0!important}
  .gomathy-extra-results-v8 p{min-width:0;margin:0!important;padding:.42rem .45rem!important;border-radius:11px!important}
  .gomathy-extra-results-v8 span{font-size:.56rem!important}
  .gomathy-extra-results-v8 strong{font-size:.72rem!important;line-height:1.22!important}
  .gpx-results-4-v60{grid-template-columns:repeat(4,minmax(0,1fr))!important}
  .gpx-results-5-v60{grid-template-columns:repeat(4,minmax(0,1fr))!important}
  .gpx-result-wide-v60{grid-column:span 4}
  .gomathy-extra-thermal-v8 .gomathy-extra-visual-v8{grid-template-columns:.58fr 1.42fr;grid-template-rows:1fr}
  .gomathy-extra-thermal-v8 .gomathy-extra-results-v8{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .gomathy-thermal-beaker-v8{transform:scale(.88);transform-origin:center}

  /* Anciens outils PC : la zone de travail est bornée à l'écran, les compléments restent dans des tiroirs. */
  body[data-gomathy-page="molecules"] .gomathy-tool-root-v8,
  body[data-gomathy-page="electricity-model"] .gomathy-tool-root-v8,
  body[data-gomathy-page="gravity-model"] .gomathy-tool-root-v8,
  body[data-gomathy-page="reference-frame"] .gomathy-tool-root-v8,
  body[data-gomathy-page="atom-model"] .gomathy-tool-root-v8,
  body[data-gomathy-page="periodic-table"] .gomathy-tool-root-v8,
  body[data-gomathy-page="chem-equations"] .gomathy-tool-root-v8,
  body[data-gomathy-page="lenses-model"] .gomathy-tool-root-v8,
  body[data-gomathy-page="eye-model"] .gomathy-tool-root-v8,
  body[data-gomathy-page="mol-model"] .gomathy-tool-root-v8,
  body[data-gomathy-page="pc-conversions"] .gomathy-tool-root-v8{
    height:100%;display:flex;flex-direction:column;min-height:0;overflow:hidden;position:relative
  }
  body.gomathy-v60-tool-active .gomathy-tool-root-v8>button:first-child{margin-bottom:.2rem!important;font-size:.78rem}
  body.gomathy-v60-tool-active .gomathy-tool-root-v8>h2{font-size:1.55rem!important;line-height:1.05!important;margin:.15rem 0 .45rem!important}
  body.gomathy-v60-tool-active .gomathy-tool-core-grid-v8{flex:1;min-height:0;height:auto;gap:.55rem!important;overflow:hidden}
  body.gomathy-v60-tool-active .gomathy-tool-primary-card-v8{min-height:0;height:100%;overflow:hidden;position:relative;padding:.82rem!important}
  body.gomathy-v60-tool-active .gomathy-tool-primary-card-v8 h3{font-size:1rem!important;margin-bottom:.45rem!important}
  body.gomathy-v60-tool-active .gomathy-tool-primary-card-v8 .space-y-4{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.38rem .5rem}
  body.gomathy-v60-tool-active .gomathy-tool-primary-card-v8 .space-y-4>*{margin-top:0!important;margin-bottom:0!important}
  body.gomathy-v60-tool-active .gomathy-tool-primary-card-v8 select,
  body.gomathy-v60-tool-active .gomathy-tool-primary-card-v8 input{padding:.38rem .48rem!important;font-size:.72rem!important}
  body[data-gomathy-page="gravity-model"] .gomathy-gravity-scene-v9,
  body[data-gomathy-page="electricity-model"] .gomathy-electricity-scene-v9{min-height:0!important;max-height:255px!important;margin:.2rem 0!important}
  body[data-gomathy-page="gravity-model"] .gomathy-gravity-scene-v9 svg,
  body[data-gomathy-page="electricity-model"] .gomathy-electricity-scene-v9 svg{max-height:245px!important}
  body[data-gomathy-page="gravity-model"] .gomathy-tool-primary-card-v8>.grid,
  body[data-gomathy-page="electricity-model"] .gomathy-tool-primary-card-v8>.grid{gap:.35rem!important;margin-bottom:.35rem!important}

  /* Les tiroirs ne poussent plus la feuille : ils se superposent à la carte. */
  body.gomathy-v60-tool-active details.gomathy-secondary-details-v8,
  body.gomathy-v60-tool-active details.gomathy-science-lab-details-v8,
  body.gomathy-v60-tool-active details.gomathy-advanced-details-v8{margin-top:.35rem!important;position:relative;overflow:visible}
  body.gomathy-v60-tool-active details.gomathy-secondary-details-v8>summary,
  body.gomathy-v60-tool-active details.gomathy-science-lab-details-v8>summary,
  body.gomathy-v60-tool-active details.gomathy-advanced-details-v8>summary{padding:.42rem .58rem!important;font-size:.68rem!important}
  body.gomathy-v60-tool-active details.gomathy-secondary-details-v8[open]>.gomathy-secondary-details-v8__body,
  body.gomathy-v60-tool-active details.gomathy-science-lab-details-v8[open]>.gomathy-science-lab-drawer-v9__panel,
  body.gomathy-v60-tool-active details.gomathy-advanced-details-v8[open]>.gomathy-advanced-details-v8__body{
    position:fixed;z-index:260;left:50%;top:155px;transform:translateX(-50%);width:min(1080px,calc(100vw - 48px));max-height:calc(100dvh - 180px);overflow:auto;border:1px solid #bfdbfe;border-radius:18px;background:#fff;box-shadow:0 30px 80px -28px rgba(15,23,42,.55);padding:1rem!important
  }

  /* Tableau périodique et optique : densité adaptée à la feuille. */
  body[data-gomathy-page="periodic-table"] .gomathy-periodic-stage-v9{min-height:0!important;flex:1;overflow:hidden!important}
  body[data-gomathy-page="periodic-table"] .gomathy-periodic-table-grid-v8{transform:scale(.88);transform-origin:top center;margin-bottom:-7%!important}
  body[data-gomathy-page="lenses-model"] .gomathy-optics-section-v8,
  body[data-gomathy-page="eye-model"] .gomathy-optics-section-v8{min-height:0;overflow:hidden}
  body[data-gomathy-page="lenses-model"] .gomathy-optics-section-v8 svg,
  body[data-gomathy-page="eye-model"] .gomathy-optics-section-v8 svg{max-height:280px!important}

  /* Contrôle sur mesure : la configuration devient un assistant à onglets. L'aperçu long reste un document. */
  body[data-gomathy-page="control"] #pages>div{overflow:hidden}
  .gomathy-control-wizard-v60{height:100%;display:flex;flex-direction:column;min-height:0;overflow:hidden}
  .gomathy-control-wizard-v60>.mb-8.max-w-4xl{margin-bottom:.35rem!important;max-width:none!important;display:flex;align-items:center;gap:.8rem}
  .gomathy-control-wizard-v60>.mb-8.max-w-4xl h2{font-size:1.45rem!important;margin-top:0!important}
  .gomathy-control-wizard-v60>.mb-8.max-w-4xl p{font-size:.72rem!important;margin-top:.15rem!important;line-height:1.25!important}
  .gmx-control-tabs-v60{display:flex;gap:.35rem;margin:.2rem 0 .45rem;padding:.28rem;border:1px solid #dbeafe;border-radius:14px;background:#eff6ff;flex:0 0 auto}
  .gmx-control-tabs-v60 button{border:0;border-radius:10px;background:transparent;padding:.46rem .72rem;font-size:.7rem;font-weight:900;color:#475569;cursor:pointer}
  .gmx-control-tabs-v60 button.is-active{background:#fff;color:#1e3a8a;box-shadow:0 5px 16px -12px rgba(15,23,42,.8)}
  .gomathy-control-wizard-v60>.gmx-control-stage-v60{flex:1;min-height:0;overflow:hidden;margin:0!important;padding:.75rem!important}
  .gomathy-control-wizard-v60>.gmx-control-stage-v60 h3{font-size:1.05rem!important}
  .gomathy-control-wizard-v60>.gmx-control-stage-v60 .mb-5{margin-bottom:.4rem!important}
  .gomathy-control-wizard-v60>.gmx-control-stage-v60 .mt-5{margin-top:.4rem!important}
  .gomathy-control-wizard-v60>.gmx-control-stage-v60 .mt-6{margin-top:.5rem!important}
  .gomathy-control-wizard-v60>.gmx-control-stage-v60 .mt-7{margin-top:.55rem!important}
  .gomathy-control-wizard-v60>.gmx-control-stage-v60 [class*="p-4"]{padding:.55rem!important}
  .gomathy-control-wizard-v60>.gmx-control-stage-v60 [class*="p-5"]{padding:.65rem!important}
  .gomathy-control-wizard-v60>.gmx-control-stage-v60 [class*="p-7"]{padding:.75rem!important}
  .gomathy-control-wizard-v60>.gmx-control-program-v60 .md\:grid-cols-2.lg\:grid-cols-3{grid-template-columns:repeat(6,minmax(0,1fr))!important;gap:.35rem!important}
  .gomathy-control-wizard-v60>.gmx-control-program-v60 .md\:grid-cols-2.lg\:grid-cols-3 button{padding:.5rem!important;min-height:0!important}
  .gomathy-control-wizard-v60>.gmx-control-program-v60 .md\:grid-cols-2.lg\:grid-cols-3 button span:first-child{font-size:.68rem!important;line-height:1.15}
  .gomathy-control-wizard-v60>.gmx-control-program-v60 .md\:grid-cols-2.lg\:grid-cols-3 button span:last-child{font-size:.55rem!important;line-height:1.1;margin-top:.15rem!important}
  .gomathy-control-wizard-v60>.gmx-control-preview-v60{overflow:auto!important}
}

/* === Laboratoire SVT V60 === */
.gsvt-lab-v60{height:100%;display:grid;grid-template-rows:auto auto auto minmax(0,1fr);gap:.38rem;min-height:0;color:#0f172a}
.gsvt-head-v60{display:flex;align-items:center;justify-content:space-between;gap:1rem;border:1px solid #a7f3d0;border-radius:20px;background:linear-gradient(135deg,#ecfdf5,#fff,#ecfeff);padding:.62rem .9rem}
.gsvt-head-v60 p{margin:0;color:#047857;font-size:.62rem;font-weight:950;letter-spacing:.12em;text-transform:uppercase}.gsvt-head-v60 h2{margin:.08rem 0;font-size:1.55rem;font-weight:950}.gsvt-head-v60 span{font-size:.72rem;color:#64748b}.gsvt-head-v60>b{border:1px solid #a7f3d0;border-radius:999px;background:#fff;padding:.35rem .62rem;font-size:.65rem;color:#047857;white-space:nowrap}
.gsvt-tabs-v60{display:flex;gap:.3rem;overflow-x:auto;padding:.25rem;border:1px solid #d1fae5;border-radius:14px;background:#f0fdf4;scrollbar-width:none}.gsvt-tabs-v60::-webkit-scrollbar{display:none}.gsvt-tabs-v60 button{flex:0 0 auto;border:0;border-radius:10px;background:transparent;padding:.45rem .7rem;font-size:.7rem;font-weight:900;color:#64748b;cursor:pointer}.gsvt-tabs-v60 button.is-active{background:#fff;color:#047857;box-shadow:0 5px 14px -12px rgba(15,23,42,.8)}
.gsvt-workspace-v60{min-height:0;height:100%;overflow:hidden}.gsvt-panel-v60{height:100%;min-height:0;display:grid;grid-template-columns:minmax(270px,.78fr) minmax(0,1.22fr);gap:.55rem}.gsvt-panel-v60[hidden]{display:none!important}.gsvt-controls-v60,.gsvt-visual-v60{height:100%;min-height:0;overflow:hidden;border:1px solid #dbeafe;border-radius:18px;background:#fff;padding:.7rem}.gsvt-controls-v60{display:flex;flex-direction:column;gap:.36rem}.gsvt-controls-v60 h3{margin:0;font-size:1rem;font-weight:950}.gsvt-controls-v60 h4{margin:.05rem 0;font-size:.75rem;font-weight:950}.gsvt-controls-v60 p{margin:0;color:#64748b;font-size:.66rem;line-height:1.3}.gsvt-controls-v60 hr{width:100%;border:0;border-top:1px solid #e2e8f0;margin:.1rem 0}.gsvt-controls-v60 label{display:block;color:#475569;font-size:.64rem;font-weight:900}.gsvt-controls-v60 input,.gsvt-controls-v60 select,.gsvt-controls-v60 textarea{box-sizing:border-box;width:100%;margin-top:.17rem;border:1px solid #cbd5e1;border-radius:9px;background:#fff;padding:.4rem .48rem;color:#0f172a;font-size:.72rem;outline:none}.gsvt-controls-v60 textarea{resize:none}.gsvt-two-v60{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.38rem}.gsvt-formula-v60{border:1px solid #a7f3d0;border-radius:10px;background:#ecfdf5;padding:.48rem;text-align:center;color:#065f46;font-size:.7rem;font-weight:900}.gsvt-tip-v60{border-radius:10px;background:#f8fafc;padding:.46rem .55rem;color:#64748b;font-size:.62rem;line-height:1.32}
.gsvt-visual-v60{display:flex;flex-direction:column;justify-content:center;gap:.42rem}.gsvt-metrics-v60{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.35rem}.gsvt-metrics-v60 p{margin:0;border:1px solid #e2e8f0;border-radius:11px;background:#f8fafc;padding:.45rem;text-align:center}.gsvt-metrics-v60 span{display:block;font-size:.53rem;font-weight:950;text-transform:uppercase;color:#64748b}.gsvt-metrics-v60 strong{display:block;margin-top:.1rem;font-size:.75rem;font-weight:950;color:#0f172a;line-height:1.2}
.gsvt-microscope-v60{position:relative;min-height:250px;border:1px solid #cbd5e1;border-radius:18px;background:radial-gradient(circle at 50% 50%,#ecfeff 0 43%,#dbeafe 44% 46%,#0f172a 47% 50%,#f8fafc 51%);overflow:hidden}.gsvt-cell-v60{position:absolute;left:50%;top:46%;width:190px;height:105px;transform:translate(-50%,-50%) rotate(-8deg);border:5px solid #10b981;border-radius:48% 52% 42% 58%;background:rgba(167,243,208,.46)}.gsvt-cell-v60 span{position:absolute;left:50%;top:50%;width:42px;height:34px;transform:translate(-50%,-50%);border-radius:50%;background:#7c3aedaa}.gsvt-cell-v60 i{position:absolute;left:24px;top:23px;width:22px;height:22px;border-radius:50%;background:#f59e0b99}.gsvt-scale-v60{position:absolute;right:25px;bottom:24px;display:grid;gap:.1rem;color:#0f172a;font-size:.62rem}.gsvt-scale-v60::before{content:'';display:block;width:120px;border-top:5px solid #0f172a}.gsvt-scale-v60 b,.gsvt-scale-v60 em{font-style:normal}
.gsvt-punnett-v60{align-self:center;display:grid;grid-template-columns:64px repeat(2,115px);grid-template-rows:50px repeat(2,82px);border:1px solid #a7f3d0;border-radius:16px;overflow:hidden;background:#fff}.gsvt-punnett-v60>*{display:grid;place-items:center;border-right:1px solid #d1fae5;border-bottom:1px solid #d1fae5;font-size:1rem}.gsvt-punnett-v60 b{background:#ecfdf5;color:#047857}.gsvt-punnett-v60 span{font-size:1.35rem;font-weight:950;color:#0f172a}
.gsvt-sequence-card-v60{display:grid;grid-template-columns:60px minmax(0,1fr);align-items:center;gap:.45rem;border:1px solid #e2e8f0;border-radius:11px;padding:.48rem}.gsvt-sequence-card-v60 span{font-size:.6rem;font-weight:950;color:#64748b}.gsvt-sequence-card-v60 code{overflow-wrap:anywhere;color:#0f172a;font-size:.82rem;font-weight:850}.gsvt-codons-v60{display:flex;flex-wrap:wrap;gap:.32rem;align-content:flex-start}.gsvt-codons-v60 span{display:grid;gap:.08rem;border:1px solid #c4b5fd;border-radius:9px;background:#faf5ff;padding:.38rem .48rem;text-align:center}.gsvt-codons-v60 span.is-stop{border-color:#fecaca;background:#fef2f2}.gsvt-codons-v60 b{font-size:.72rem}.gsvt-codons-v60 em{font-size:.57rem;font-style:normal;color:#64748b}.gsvt-protein-v60{border:1px solid #a7f3d0;border-radius:12px;background:#ecfdf5;padding:.55rem}.gsvt-protein-v60 span{display:block;font-size:.55rem;font-weight:950;text-transform:uppercase;color:#047857}.gsvt-protein-v60 strong{display:block;margin-top:.15rem;font-size:.8rem;line-height:1.3}
#gsvt-pop-svg{width:100%;height:auto;max-height:300px}

@media(max-width:899px){.gsvt-lab-v60{height:auto}.gsvt-panel-v60{grid-template-columns:1fr}.gsvt-controls-v60,.gsvt-visual-v60{height:auto;overflow:visible}.gsvt-metrics-v60{grid-template-columns:repeat(2,minmax(0,1fr))}.gpx-input-grid-v60{grid-template-columns:1fr}}
@media (min-width:900px){
  #pages.gomathy-v60-tight .gomathy-tool-root-v8>h2{font-size:1.35rem!important;margin-bottom:.3rem!important}
  #pages.gomathy-v60-tight .gomathy-tool-primary-card-v8{padding:.65rem!important}
  #pages.gomathy-v60-tight .gomathy-tool-primary-card-v8 p,
  #pages.gomathy-v60-tight .gomathy-tool-primary-card-v8 label{font-size:.67rem!important;line-height:1.25!important}
  #pages.gomathy-v60-tight .gomathy-tool-primary-card-v8 svg{max-height:225px!important}
  #pages.gomathy-v60-tight .gmx-ps-head p{display:none}
  #pages.gomathy-v60-tight .gmx-ps-head{padding:.42rem .72rem .25rem}
  #pages.gomathy-v60-tight .gmx-ps-tabs{padding-bottom:.25rem}
  #pages.gomathy-v60-tight .gmx-prob-tree-svg,
  #pages.gomathy-v60-tight .gmx-prob-bin-svg,
  #pages.gomathy-v60-tight .gmx-prob-urn-svg,
  #pages.gomathy-v60-tight .gmx-seq-graph-svg,
  #pages.gomathy-v60-tight .gmx-seq-cobweb-svg,
  #pages.gomathy-v60-tight .gmx-ps-visual svg{max-height:220px!important}
  #pages.gomathy-v60-tight .gomathy-extra-physics-v8 .gomathy-tool-title-v8 p{display:none}
  #pages.gomathy-v60-tight .gomathy-extra-visual-v8>svg{max-height:245px}
  #pages.gomathy-v60-ultra-tight .gomathy-tool-title-v8{display:none!important}
  #pages.gomathy-v60-ultra-tight .gomathy-tool-root-v8>h2{font-size:1.2rem!important}
  #pages.gomathy-v60-ultra-tight .gomathy-tool-primary-card-v8{padding:.52rem!important}
  #pages.gomathy-v60-ultra-tight .gomathy-tool-primary-card-v8 svg{max-height:200px!important}
  #pages.gomathy-v60-ultra-tight .gmx-ps-topbar{margin-bottom:.15rem}
  #pages.gomathy-v60-ultra-tight .gmx-ps-head{display:none}
  #pages.gomathy-v60-ultra-tight .gmx-ps-tabs{padding-top:.22rem}
}

/* === V60.1 : calcul mental + focus réellement sans défilement de feuille === */
@media (min-width:900px){
  body[data-gomathy-page="mental"] #pages>div>div.h-full,
  body[data-gomathy-page="focus"] #pages>div>div.h-full{height:100%!important;overflow:hidden!important;display:flex!important;flex-direction:column!important;min-height:0!important;padding-right:0!important}
  body[data-gomathy-page="mental"] #pages>div>div.h-full>.mb-3,
  body[data-gomathy-page="focus"] #pages>div>div.h-full>.mb-3{flex:0 0 auto;margin-bottom:.35rem!important;padding:.55rem .75rem!important}
  body[data-gomathy-page="mental"] #pages>div>div.h-full>.grid,
  body[data-gomathy-page="focus"] #pages>div>div.h-full>.grid{flex:1;min-height:0;height:auto;overflow:hidden;gap:.55rem!important}

  body[data-gomathy-page="mental"] #pages .rounded-\[24px\],
  body[data-gomathy-page="mental"] #pages .rounded-\[22px\]{padding:.72rem!important}
  body[data-gomathy-page="mental"] #pages .mb-4{margin-bottom:.45rem!important}
  body[data-gomathy-page="mental"] #pages .mb-3{margin-bottom:.35rem!important}
  body[data-gomathy-page="mental"] #pages .p-6{padding:.7rem!important}
  body[data-gomathy-page="mental"] #pages .text-5xl{font-size:2.25rem!important;line-height:1!important}
  body[data-gomathy-page="mental"] #mental-input{padding:.55rem .75rem!important;font-size:1.25rem!important;margin-bottom:.45rem!important}
  body[data-gomathy-page="mental"] #pages .grid.lg\:grid-cols-\[1\.6fr_1fr\]>section,
  body[data-gomathy-page="mental"] #pages .grid.lg\:grid-cols-\[1\.6fr_1fr\]>.space-y-4{height:100%;min-height:0;overflow:hidden}
  body[data-gomathy-page="mental"] #pages .grid.lg\:grid-cols-\[1\.6fr_1fr\]>.space-y-4{display:grid;grid-template-rows:1fr 1fr;gap:.45rem!important}
  body[data-gomathy-page="mental"] #pages button{min-height:0}

  body[data-gomathy-page="focus"] #pages .lg\:grid-cols-\[1\.05fr_0\.95fr\]>section,
  body[data-gomathy-page="focus"] #pages .lg\:grid-cols-\[1\.05fr_0\.95fr\]>.flex{height:100%;min-height:0;overflow:hidden}
  body[data-gomathy-page="focus"] #pages .lg\:grid-cols-\[1\.05fr_0\.95fr\]>.flex{display:grid!important;grid-template-rows:auto auto minmax(0,1fr);gap:.45rem!important}
  body[data-gomathy-page="focus"] #pages section{padding:.7rem!important}
  body[data-gomathy-page="focus"] #pages .mb-4{margin-bottom:.4rem!important}
  body[data-gomathy-page="focus"] #pages .mt-4{margin-top:.4rem!important}
  body[data-gomathy-page="focus"] #pages .mt-3{margin-top:.35rem!important}
  body[data-gomathy-page="focus"] #focus-timer-value{font-size:2.7rem!important;line-height:1!important}
  body[data-gomathy-page="focus"] #pages .rounded-\[26px\]{padding:.7rem!important}
  body[data-gomathy-page="focus"] #pages p,body[data-gomathy-page="focus"] #pages li{line-height:1.25}
  body[data-gomathy-page="focus"] #pages .text-lg{font-size:.92rem!important}

  /* Mole : le nouveau module solution reste accessible en tiroir et ne pousse jamais la feuille. */
  body[data-gomathy-page="mol-model"] details.gomathy-secondary-details-v8{margin-top:.3rem!important}
}

/* === V60.2 : finition des feuilles PC historiques === */
@media (min-width:900px){
  body[data-gomathy-page="chem-equations"] .gomathy-tool-root-v8>p.mb-6,
  body[data-gomathy-page="mol-model"] .gomathy-tool-root-v8>p.mb-6,
  body[data-gomathy-page="lenses-model"] .gomathy-tool-root-v8>p.mb-5,
  body[data-gomathy-page="eye-model"] .gomathy-tool-root-v8>p.mb-5{margin-bottom:.35rem!important;font-size:.68rem!important;line-height:1.25!important}

  body[data-gomathy-page="chem-equations"] .gomathy-tool-root-v8>.mb-6.rounded-\[24px\]{margin-bottom:.45rem!important;padding:.55rem!important}
  body[data-gomathy-page="chem-equations"] .gomathy-tool-core-grid-v8>article{height:100%;min-height:0;overflow:hidden;padding:.7rem!important}
  body[data-gomathy-page="chem-equations"] .gomathy-tool-core-grid-v8>article h3{margin-bottom:.35rem!important;font-size:1rem!important}
  body[data-gomathy-page="chem-equations"] .gomathy-tool-core-grid-v8>article input{padding:.38rem .48rem!important;font-size:.72rem!important;margin-bottom:.35rem!important}
  body[data-gomathy-page="chem-equations"] .gomathy-tool-core-grid-v8>article .space-y-2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.3rem!important}
  body[data-gomathy-page="chem-equations"] .gomathy-tool-core-grid-v8>article .space-y-2>*{margin:0!important;padding:.42rem!important;font-size:.68rem!important}
  body[data-gomathy-page="chem-equations"] .gomathy-tool-core-grid-v8>article .mt-5{margin-top:.4rem!important;padding:.55rem!important;font-size:.66rem!important}
  body[data-gomathy-page="chem-equations"] .gomathy-tool-core-grid-v8>article .mt-4{margin-top:.38rem!important}

  body[data-gomathy-page="mol-model"] .gomathy-tool-core-grid-v8>article{height:100%;min-height:0;overflow:hidden;padding:.7rem!important}
  body[data-gomathy-page="mol-model"] .gomathy-tool-core-grid-v8>article h3{font-size:1rem!important;margin-bottom:.3rem!important}
  body[data-gomathy-page="mol-model"] .gomathy-mole-chain{margin:.35rem 0!important;gap:.3rem!important}
  body[data-gomathy-page="mol-model"] .gomathy-tool-core-grid-v8 input{padding:.38rem .48rem!important;font-size:.7rem!important;margin-bottom:.3rem!important}
  body[data-gomathy-page="mol-model"] .gomathy-tool-core-grid-v8 .p-4{padding:.52rem!important}

  body[data-gomathy-page="lenses-model"] .gomathy-optics-tabs-v8,
  body[data-gomathy-page="eye-model"] .gomathy-optics-tabs-v8{margin:.2rem 0 .4rem!important}
  body[data-gomathy-page="lenses-model"] .gomathy-optics-section-v8>.gomathy-optics-section__heading,
  body[data-gomathy-page="eye-model"] .gomathy-optics-section-v8>.gomathy-optics-section__heading{margin-bottom:.3rem!important}
  body[data-gomathy-page="lenses-model"] .gomathy-optics-section-v8 .grid>article,
  body[data-gomathy-page="eye-model"] .gomathy-optics-section-v8 .grid>article{padding:.65rem!important;min-height:0;overflow:hidden}
  body[data-gomathy-page="lenses-model"] .gomathy-optics-section-v8 input,
  body[data-gomathy-page="lenses-model"] .gomathy-optics-section-v8 select,
  body[data-gomathy-page="eye-model"] .gomathy-optics-section-v8 input,
  body[data-gomathy-page="eye-model"] .gomathy-optics-section-v8 select{padding:.35rem .45rem!important;margin-bottom:.3rem!important;font-size:.7rem!important}
  body[data-gomathy-page="lenses-model"] .gomathy-optics-section-v8 .mb-4,
  body[data-gomathy-page="eye-model"] .gomathy-optics-section-v8 .mb-4{margin-bottom:.35rem!important}
  body[data-gomathy-page="lenses-model"] .gomathy-optics-values-v9,
  body[data-gomathy-page="eye-model"] .gomathy-optics-values-v9{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.25rem;font-size:.65rem}

  body[data-gomathy-page="periodic-table"] .gomathy-periodic-summary-v9{margin-bottom:.35rem!important;gap:.5rem!important}
  body[data-gomathy-page="periodic-table"] .gomathy-periodic-summary-v9>article{padding:.6rem!important}
  body[data-gomathy-page="periodic-table"] .gomathy-periodic-summary-v9 .mt-4{margin-top:.3rem!important}
  body[data-gomathy-page="periodic-table"] .gomathy-periodic-summary-v9 .mt-3{margin-top:.25rem!important}
  body[data-gomathy-page="periodic-table"] .gomathy-periodic-summary-v9 .mt-4.grid{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:.25rem!important}
  body[data-gomathy-page="periodic-table"] .gomathy-periodic-summary-v9 p{font-size:.66rem!important;padding:.35rem!important}
}

/* ===== SOURCE: styles/gomathy-control-v72.css ===== */
/* GoMathy V72 — contrôle sur mesure : moteur V59, parcours à onglets, sujet + corrigé séquentiels */
body[data-gomathy-page="control"] #pages{height:auto!important;min-height:0!important;overflow:visible!important}
body[data-gomathy-page="control"] .gmx-v72-control{max-width:1240px;margin:0 auto;padding:8px 6px 48px;color:#0f172a}
.gmx-v72-back{border:0;background:transparent;color:#1e3a8a;font:700 15px Georgia,serif;cursor:pointer;padding:8px 0 14px}
.gmx-v72-hero{display:grid;grid-template-columns:minmax(420px,.95fr) minmax(360px,1.05fr);gap:34px;align-items:center;margin-bottom:18px}
.gmx-v72-hero>div>span{display:inline-flex;border:1px solid #bfdbfe;background:#eff6ff;border-radius:999px;padding:7px 12px;color:#1e40af;font-size:12px;font-weight:900;text-transform:uppercase;letter-spacing:.05em}
.gmx-v72-hero h2{font:900 clamp(30px,3.2vw,46px)/1.02 Georgia,serif;margin:12px 0 0;color:#020617}
.gmx-v72-hero p{margin:0;color:#475569;font:400 16px/1.55 Georgia,serif}
.gmx-v72-tabs{display:flex;gap:8px;padding:7px;border:1px solid #dbeafe;background:#eff6ff;border-radius:18px;margin:0 0 14px;position:sticky;top:8px;z-index:20;box-shadow:0 8px 24px -22px #0f172a}
.gmx-v72-tabs button{border:0;background:transparent;color:#475569;border-radius:12px;padding:10px 16px;font:800 14px Georgia,serif;cursor:pointer;min-width:130px}
.gmx-v72-tabs button.is-active{background:#fff;color:#1e3a8a;box-shadow:0 5px 14px -12px #0f172a}
.gmx-v72-tabs button:disabled{opacity:.35;cursor:not-allowed}
.gmx-v72-stage{border:1px solid #dbe3ee;border-radius:26px;background:rgba(255,255,255,.96);padding:22px 26px;box-shadow:0 18px 42px -34px rgba(15,23,42,.65)}
.gmx-v72-stage__head{margin-bottom:18px}.gmx-v72-stage__head p,.gmx-v72-eyebrow{margin:0;color:#64748b;text-transform:uppercase;letter-spacing:.14em;font-size:12px;font-weight:900}.gmx-v72-stage__head h3{margin:5px 0 0;font:900 26px/1.12 Georgia,serif;color:#020617}
.gmx-v72-stage__head--split{display:flex;align-items:flex-end;justify-content:space-between;gap:16px}
.gmx-v72-presets{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.gmx-v72-preset{display:flex;min-height:165px;flex-direction:column;align-items:flex-start;text-align:left;border:1px solid #dbe3ee;background:#fff;border-radius:18px;padding:17px;cursor:pointer;transition:.16s ease;color:#0f172a}
.gmx-v72-preset:hover{transform:translateY(-1px);border-color:#93c5fd}.gmx-v72-preset.is-selected{border-color:#60a5fa;background:#eff6ff;box-shadow:0 0 0 2px #dbeafe}
.gmx-v72-preset__icon{font-size:25px}.gmx-v72-preset b{font:800 17px Georgia,serif;margin-top:10px}.gmx-v72-preset small{font:400 13px/1.45 Georgia,serif;color:#64748b;margin-top:6px}.gmx-v72-preset em{font-style:normal;font-size:12px;font-weight:800;background:#f1f5f9;border-radius:999px;padding:5px 9px;margin-top:auto}
.gmx-v72-stage__footer{display:flex;align-items:center;justify-content:space-between;gap:12px;border-top:1px solid #eef2f7;margin-top:18px;padding-top:14px;color:#64748b;font:400 13px Georgia,serif}
.gmx-v72-stage__footer button,.gmx-v72-mini-actions button,.gmx-v72-actions button{border:1px solid #cbd5e1;background:#fff;border-radius:12px;padding:10px 14px;font:800 13px Georgia,serif;color:#334155;cursor:pointer}
.gmx-v72-stage__footer button.is-primary,.gmx-v72-generate button.is-primary{background:#0f2d68;border-color:#0f2d68;color:#fff}.gmx-v72-stage__footer button:disabled{opacity:.38;cursor:not-allowed}
.gmx-v72-mini-actions{display:flex;gap:8px}
.gmx-v72-levels{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:15px}.gmx-v72-levels button{border:1px solid #dbe3ee;background:#fff;border-radius:999px;padding:9px 16px;font:800 14px Georgia,serif;color:#334155;cursor:pointer}.gmx-v72-levels button.is-active{background:#08122a;color:#fff;border-color:#08122a}
.gmx-v72-chapters{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;max-height:min(510px,58vh);overflow:auto;padding:2px 4px 2px 2px;scrollbar-width:thin}
.gmx-v72-chapter{position:relative;display:grid;grid-template-columns:28px 1fr;gap:10px;align-items:center;text-align:left;border:1px solid #dbe3ee;background:#fff;border-radius:15px;padding:12px 13px;cursor:pointer;min-height:72px}.gmx-v72-chapter:hover{border-color:#93c5fd}.gmx-v72-chapter.is-selected{border-color:#60a5fa;background:#eff6ff;box-shadow:0 0 0 1px #bfdbfe}.gmx-v72-chapter>span{width:26px;height:26px;display:grid;place-items:center;border-radius:999px;background:#f1f5f9;color:#64748b;font-weight:900}.gmx-v72-chapter.is-selected>span{background:#2563eb;color:#fff}.gmx-v72-chapter b{display:block;font:800 14px/1.25 Georgia,serif;color:#0f172a}.gmx-v72-chapter small{display:block;margin-top:4px;color:#64748b;font:400 11.5px/1.3 Georgia,serif}
.gmx-v72-program-summary{display:flex;gap:8px;flex-wrap:wrap;margin-top:13px}.gmx-v72-program-summary span{background:#f8fafc;border-radius:999px;padding:7px 10px;font:700 12px Georgia,serif;color:#475569}.gmx-v72-program-summary span:nth-child(2){background:#ecfdf5;color:#047857}
.gmx-v72-settings-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px 18px}.gmx-v72-setting{min-width:0}.gmx-v72-setting h4{margin:0 0 9px;font:800 14px Georgia,serif;color:#0f172a}.gmx-v72-duration{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.gmx-v72-two{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.gmx-v72-three{display:grid;grid-template-columns:1fr;gap:7px}.gmx-v72-duration button,.gmx-v72-two>button,.gmx-v72-three>button,.gmx-v72-setting>input{border:1px solid #dbe3ee;background:#fff;border-radius:12px;min-height:44px;padding:9px 10px;font:700 13px Georgia,serif;color:#334155}.gmx-v72-duration button,.gmx-v72-two>button,.gmx-v72-three>button{cursor:pointer}.gmx-v72-duration button.is-selected,.gmx-v72-choice.is-selected{border-color:#60a5fa;background:#eff6ff;color:#0f2d68;box-shadow:0 0 0 1px #bfdbfe}.gmx-v72-choice{text-align:left}.gmx-v72-choice b{display:block;font:800 14px Georgia,serif}.gmx-v72-choice small{display:block;margin-top:3px;color:#64748b;font:400 11.5px/1.35 Georgia,serif}.gmx-v72-setting>input{width:100%;box-sizing:border-box;font-weight:400}.gmx-v72-check{display:flex;align-items:center;gap:10px;margin-top:8px;border:1px solid #e2e8f0;border-radius:12px;padding:9px 10px;cursor:pointer}.gmx-v72-check input{width:17px;height:17px}.gmx-v72-check b{display:block;font:800 12.5px Georgia,serif}.gmx-v72-check small{display:block;color:#64748b;font:400 11px Georgia,serif;margin-top:2px}
.gmx-v72-generate{margin-top:18px;border:1px solid #bfdbfe;background:#eff6ff;border-radius:16px;padding:14px 16px;display:flex;align-items:center;justify-content:space-between;gap:18px}.gmx-v72-generate.is-warning{border-color:#fde68a;background:#fffbeb}.gmx-v72-generate b{font:800 14px Georgia,serif}.gmx-v72-generate p{margin:4px 0 0;color:#475569;font:400 12.5px/1.4 Georgia,serif;max-width:760px}.gmx-v72-generate button{border:0;border-radius:12px;padding:12px 20px;font:900 14px Georgia,serif;cursor:pointer;white-space:nowrap}
.gmx-v72-results__toolbar{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;margin:10px 0 14px}.gmx-v72-results__toolbar h2{font:900 34px/1.06 Georgia,serif;margin:5px 0;color:#020617}.gmx-v72-results__toolbar p:last-child{margin:5px 0 0;color:#64748b;font:400 13px Georgia,serif}.gmx-v72-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:7px}.gmx-v72-actions button.is-dark{background:#0f172a;color:#fff;border-color:#0f172a}.gmx-v72-actions button.is-green{background:#047857;color:#fff;border-color:#047857}
.gmx-v72-summary{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:9px;margin:0 0 10px}.gmx-v72-summary span{background:#f8fafc;border:1px solid #edf2f7;border-radius:14px;padding:11px 13px}.gmx-v72-summary b{display:block;font:900 15px Georgia,serif;color:#0f172a}.gmx-v72-summary small{display:block;margin-top:3px;color:#64748b;font:400 11px Georgia,serif}.gmx-v72-quality{border:1px solid #a7f3d0;background:#ecfdf5;color:#065f46;border-radius:14px;padding:11px 13px;font:400 12.5px/1.4 Georgia,serif;margin-bottom:18px}
.gmx-v72-sequential{display:grid;gap:18px}.gmx-v72-section-label{display:flex;align-items:center;gap:10px;margin-top:4px}.gmx-v72-section-label>span{width:34px;height:34px;border-radius:999px;background:#1e3a8a;color:#fff;display:grid;place-items:center;font-weight:900}.gmx-v72-section-label b{display:block;font:900 18px Georgia,serif}.gmx-v72-section-label small{color:#64748b;font:400 12px Georgia,serif}.gmx-v72-section-label--correction>span{background:#047857}
.gmx-v72-paper{border:1px solid #dbe3ee;background:#fff;border-radius:22px;padding:30px 34px;box-shadow:0 18px 40px -36px rgba(15,23,42,.75)}.gmx-v72-paper--correction{border-color:#bbf7d0;background:#fbfffd}.gmx-v72-paper__header{text-align:center;border-bottom:1px solid #e2e8f0;padding-bottom:20px}.gmx-v72-paper__header>p:first-child{text-transform:uppercase;letter-spacing:.14em;font:800 11px Georgia,serif;color:#64748b}.gmx-v72-paper__header h3{margin:7px 0 10px;font:900 26px Georgia,serif}.gmx-v72-paper__header>div{display:flex;justify-content:center;gap:18px;flex-wrap:wrap;color:#475569;font:700 13px Georgia,serif}.gmx-v72-paper__header .gmx-v72-paper__name{text-align:left;margin-top:18px;font-size:13px}.gmx-v72-paper__header>p:last-child{text-align:left;color:#64748b;font:400 12px Georgia,serif;margin:8px 0 0}.gmx-v72-paper__content{display:grid;gap:18px;padding-top:20px}.gmx-v72-exercise,.gmx-v72-qcm,.gmx-v72-correction{border:1px solid #e2e8f0;border-radius:16px;padding:17px 18px;background:#fff}.gmx-v72-exercise__head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;margin-bottom:12px}.gmx-v72-exercise__head span{display:block;color:#1d4ed8;text-transform:uppercase;letter-spacing:.08em;font:900 10px Georgia,serif}.gmx-v72-paper--correction .gmx-v72-exercise__head span{color:#047857}.gmx-v72-exercise__head h4{margin:4px 0 0;font:900 17px Georgia,serif}.gmx-v72-exercise__head>strong{white-space:nowrap;background:#eff6ff;color:#1e3a8a;border-radius:999px;padding:5px 9px;font:900 12px Georgia,serif}.gmx-v72-exercise ol,.gmx-v72-correction ol,.gmx-v72-qcm ol{list-style:none;padding:0;margin:0;display:grid;gap:11px}.gmx-v72-exercise li{display:grid;grid-template-columns:24px 1fr auto;gap:8px;color:#1e293b;font:400 14px/1.5 Georgia,serif}.gmx-v72-exercise li>em{font-style:normal;color:#64748b;font-size:11px;font-weight:800}.gmx-v72-answer-lines{height:24px;margin-top:7px;border-bottom:1px solid #e2e8f0}.gmx-v72-qcm li{border-top:1px solid #f1f5f9;padding-top:11px}.gmx-v72-qcm li:first-child{border-top:0;padding-top:0}.gmx-v72-qcm li p{margin:0 0 8px;font:700 14px/1.45 Georgia,serif}.gmx-v72-qcm__options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.gmx-v72-qcm__options div{border:1px solid #edf2f7;background:#f8fafc;border-radius:10px;padding:8px 10px;font:400 13px/1.4 Georgia,serif}.gmx-v72-correction li{display:grid;grid-template-columns:140px 1fr;gap:12px;border-top:1px solid #f0fdf4;padding-top:10px;font:400 13.5px/1.5 Georgia,serif}.gmx-v72-correction li:first-child{border-top:0;padding-top:0}.gmx-v72-correction li>b{color:#047857}.gmx-v72-explain{margin:5px 0 0;color:#64748b}.gmx-v72-result-footer{text-align:center;color:#64748b;font:400 11.5px Georgia,serif;margin-top:14px}
@media(max-width:980px){.gmx-v72-hero{grid-template-columns:1fr;gap:12px}.gmx-v72-presets{grid-template-columns:repeat(2,minmax(0,1fr))}.gmx-v72-chapters,.gmx-v72-settings-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.gmx-v72-summary{grid-template-columns:repeat(3,minmax(0,1fr))}.gmx-v72-results__toolbar{flex-direction:column}.gmx-v72-actions{justify-content:flex-start}}
@media(max-width:650px){.gmx-v72-control{padding:6px 0 32px}.gmx-v72-hero h2{font-size:30px}.gmx-v72-tabs{overflow-x:auto;position:static}.gmx-v72-tabs button{min-width:max-content}.gmx-v72-presets,.gmx-v72-chapters,.gmx-v72-settings-grid,.gmx-v72-summary{grid-template-columns:1fr}.gmx-v72-stage{padding:18px 15px}.gmx-v72-stage__head--split{align-items:flex-start;flex-direction:column}.gmx-v72-paper{padding:20px 15px}.gmx-v72-qcm__options{grid-template-columns:1fr}.gmx-v72-correction li{grid-template-columns:1fr}.gmx-v72-generate{align-items:stretch;flex-direction:column}}
body[data-gomathy-page="control"] .gmx-v72-choice.is-disabled {
  opacity: .58;
  cursor: not-allowed;
  background: #f4f6f8;
  border-style: dashed;
}

/* ===== SOURCE: styles/gomathy-svt-v2.css ===== */
/* GoMathy SVT v2 — vrais cours développés, lisibles et adaptés collège/lycée. */
.svt-course-shell{width:min(1460px,calc(100vw - 32px));margin:0 auto 48px;color:#122033}.svt-course-back{display:inline-flex;align-items:center;gap:8px;margin:0 0 18px;border:0;background:transparent;color:#065f46;font-weight:800;font-size:15px;cursor:pointer}.svt-course-hero{display:grid;grid-template-columns:86px minmax(0,1fr);gap:22px;padding:28px 30px;border:1px solid #a7f3d0;border-radius:28px;background:linear-gradient(135deg,#ecfdf5 0%,#fff 50%,#ecfeff 100%);box-shadow:0 14px 34px rgba(15,118,110,.08)}.svt-course-hero-icon{display:grid;place-items:center;width:72px;height:72px;border-radius:22px;background:#fff;font-size:40px;box-shadow:0 8px 20px rgba(15,118,110,.12)}.svt-course-kicker{margin:0;color:#047857;font-size:12px;font-weight:900;letter-spacing:.18em;text-transform:uppercase}.svt-course-hero h2{margin:5px 0 0;font-size:clamp(30px,3vw,44px);line-height:1.08;color:#0f172a}.svt-course-summary{max-width:1000px;margin:12px 0 0;color:#334155;font-size:17px;line-height:1.7}.svt-course-problem{display:flex;gap:12px;align-items:flex-start;max-width:1100px;margin-top:16px;padding:14px 16px;border-radius:16px;background:#fff;border:1px solid #d1fae5;line-height:1.55}.svt-course-problem strong{flex:0 0 auto;color:#065f46}.svt-course-outline{display:flex;gap:10px;overflow-x:auto;margin:18px 0 22px;padding:3px 1px 8px;scrollbar-width:thin}.svt-course-outline a{display:flex;align-items:center;gap:8px;min-width:max-content;padding:10px 13px;border:1px solid #dbeafe;border-radius:999px;background:#fff;color:#1e3a5f;font-size:13px;font-weight:800;text-decoration:none}.svt-course-outline a span{display:grid;place-items:center;width:24px;height:24px;border-radius:50%;background:#e0f2fe;color:#0369a1}.svt-course-main{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.svt-course-section{padding:23px 24px;border-radius:24px;border:1px solid transparent;box-shadow:0 9px 24px rgba(15,23,42,.055)}.svt-course-section.svt-tone-0{background:#f0fdf4;border-color:#bbf7d0}.svt-course-section.svt-tone-1{background:#eff6ff;border-color:#bfdbfe}.svt-course-section.svt-tone-2{background:#fff7ed;border-color:#fed7aa}.svt-course-section.svt-tone-3{background:#faf5ff;border-color:#e9d5ff}.svt-course-section.svt-tone-4{background:#fff1f2;border-color:#fecdd3}.svt-course-section.svt-tone-5{background:#ecfeff;border-color:#a5f3fc}.svt-section-heading,.svt-block-title{display:flex;align-items:flex-start;gap:12px}.svt-section-heading>span,.svt-block-title>span{display:grid;place-items:center;width:42px;height:42px;flex:0 0 42px;border-radius:14px;background:rgba(255,255,255,.85);font-size:23px;box-shadow:0 4px 12px rgba(15,23,42,.07)}.svt-section-heading p,.svt-block-title p{margin:1px 0 2px;color:#64748b;font-size:11px;font-weight:900;letter-spacing:.13em;text-transform:uppercase}.svt-section-heading h3,.svt-block-title h3{margin:0;color:#0f172a;font-size:20px;line-height:1.25}.svt-course-points{display:grid;gap:11px;margin:18px 0 0;padding:0;list-style:none}.svt-course-points li{position:relative;padding-left:22px;color:#26364b;font-size:15.5px;line-height:1.66}.svt-course-points li::before{content:"";position:absolute;left:1px;top:.69em;width:8px;height:8px;border-radius:50%;background:#10b981;box-shadow:0 0 0 4px rgba(16,185,129,.11)}.svt-vocabulary-card,.svt-method-card,.svt-schema-card{margin-top:20px;padding:24px;border-radius:24px;border:1px solid #dbeafe;background:#fff;box-shadow:0 9px 24px rgba(15,23,42,.05)}.svt-definition-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:18px}.svt-definition-grid article{padding:15px 16px;border-radius:17px;background:#f8fafc;border:1px solid #e2e8f0}.svt-definition-grid h4{margin:0 0 6px;color:#047857;font-size:15px}.svt-definition-grid p{margin:0;color:#475569;font-size:14px;line-height:1.55}.svt-method-steps{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:18px 0 0;padding:0;counter-reset:none;list-style:none}.svt-method-steps li{display:flex;gap:11px;align-items:flex-start;padding:14px 15px;border-radius:17px;background:#f8fafc;border:1px solid #e2e8f0}.svt-method-steps li>span{display:grid;place-items:center;width:27px;height:27px;flex:0 0 27px;border-radius:50%;background:#0f766e;color:#fff;font-size:13px;font-weight:900}.svt-method-steps p{margin:2px 0 0;color:#334155;font-size:14.5px;line-height:1.55}.svt-example-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-top:20px}.svt-example-card,.svt-activity-card{padding:24px;border-radius:24px;box-shadow:0 9px 24px rgba(15,23,42,.055)}.svt-example-card{border:1px solid #fde68a;background:#fffbeb}.svt-activity-card{border:1px solid #ddd6fe;background:#faf5ff}.svt-example-situation,.svt-activity-objective{margin-top:17px;padding:14px 15px;border-radius:16px;background:rgba(255,255,255,.8);color:#334155;font-size:14.5px;line-height:1.6}.svt-example-reasoning,.svt-example-conclusion,.svt-activity-expected{margin-top:12px;padding:14px 15px;border-radius:16px;background:rgba(255,255,255,.72);color:#334155}.svt-example-reasoning strong,.svt-example-conclusion strong,.svt-activity-expected strong{color:#92400e;font-size:13px;text-transform:uppercase;letter-spacing:.08em}.svt-example-reasoning p,.svt-example-conclusion p,.svt-activity-expected p{margin:6px 0 0;font-size:14.5px;line-height:1.62}.svt-schema-flow{display:flex;align-items:stretch;justify-content:center;gap:8px;flex-wrap:wrap;margin-top:20px}.svt-schema-node{display:flex;align-items:center;justify-content:center;min-width:135px;max-width:220px;padding:13px 15px;border-radius:16px;background:#ecfdf5;border:1px solid #a7f3d0;color:#065f46;font-size:14px;font-weight:850;text-align:center}.svt-schema-arrow{display:grid;place-items:center;color:#0f766e;font-size:24px;font-weight:900}.svt-final-grid{display:grid;grid-template-columns:1.4fr .8fr;gap:18px;margin-top:20px}.svt-takeaway-card,.svt-pitfall-card{padding:23px 24px;border-radius:24px}.svt-takeaway-card{border:1px solid #bbf7d0;background:#f0fdf4}.svt-pitfall-card{border:1px solid #fecdd3;background:#fff1f2}.svt-takeaway-card h3,.svt-pitfall-card h3{margin:0;color:#0f172a;font-size:19px}.svt-pitfall-card p{margin:15px 0 0;color:#7f1d1d;font-size:15px;line-height:1.65}.svt-source-note{margin:18px 4px 0;color:#64748b;font-size:12.5px;text-align:right}.svt-course-shell :target{scroll-margin-top:90px;animation:svtPulse 1.1s ease-out}@keyframes svtPulse{0%{box-shadow:0 0 0 7px rgba(16,185,129,.18)}100%{box-shadow:0 9px 24px rgba(15,23,42,.055)}}
@media(max-width:960px){.svt-course-main,.svt-example-grid,.svt-final-grid{grid-template-columns:1fr}.svt-definition-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.svt-course-hero{grid-template-columns:64px minmax(0,1fr);padding:22px}.svt-course-hero-icon{width:58px;height:58px;font-size:32px}.svt-course-hero h2{font-size:32px}.svt-method-steps{grid-template-columns:1fr}}
@media(max-width:620px){.svt-course-shell{width:min(100% - 18px,1460px)}.svt-course-hero{grid-template-columns:1fr;gap:13px;padding:19px;border-radius:22px}.svt-course-hero-icon{width:52px;height:52px}.svt-course-hero h2{font-size:27px}.svt-course-summary{font-size:15.5px;line-height:1.62}.svt-course-problem{display:block;font-size:14px}.svt-course-problem strong{display:block;margin-bottom:5px}.svt-course-section,.svt-vocabulary-card,.svt-method-card,.svt-example-card,.svt-activity-card,.svt-schema-card,.svt-takeaway-card,.svt-pitfall-card{padding:18px;border-radius:20px}.svt-definition-grid{grid-template-columns:1fr}.svt-course-points li{font-size:14.5px}.svt-schema-arrow{width:100%;height:17px;transform:rotate(90deg)}}

/* ===== SOURCE: styles/gomathy-svt-excellence-v124.css ===== */
/* GoMathy V124 — SVT : précision scientifique, schémas détaillés, fiches et exercices contextualisés */
.svt-v124-card{margin:0 0 22px;padding:24px;border:1px solid #99f6e4;border-radius:28px;background:linear-gradient(135deg,#f4fff9 0%,#fff 55%,#eef8ff 100%);box-shadow:0 14px 32px rgba(15,118,110,.08)}
.svt-v124-head{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:18px}.svt-v124-head p{margin:0;color:#047857;font-size:11px;font-weight:950;letter-spacing:.17em;text-transform:uppercase}.svt-v124-head h3{margin:4px 0 5px;color:#0f172a;font-size:25px;line-height:1.18}.svt-v124-head span{display:block;max-width:820px;color:#64748b;font-size:13.5px;line-height:1.55}
.svt-v124-controls{display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-end}.svt-v124-controls button{border:1px solid #d1fae5;border-radius:999px;background:#fff;padding:8px 11px;color:#065f46;font-size:12px;font-weight:850;cursor:pointer;transition:.16s ease}.svt-v124-controls button:hover{transform:translateY(-1px);box-shadow:0 4px 10px rgba(15,118,110,.08)}.svt-v124-controls button[aria-pressed="false"]{background:#f8fafc;color:#94a3b8;border-color:#e2e8f0}
.svt-v124-grid{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(285px,.68fr);gap:18px;align-items:stretch}.svt-v124-diagram{min-width:0;overflow:hidden;border:1px solid #dbeafe;border-radius:23px;background:#fff;padding:8px}.svt-v124-svg{display:block;width:100%;height:auto;max-height:560px}.svt-v124-svg text{font-family:Georgia,"Times New Roman",serif}.svt-v124-labels,.svt-v124-flows,.svt-v124-micro{transition:opacity .18s ease}.svt-v124-card.hide-labels .svt-v124-labels{opacity:0;pointer-events:none}.svt-v124-card.hide-flows .svt-v124-flows{opacity:.08;pointer-events:none}.svt-v124-card.hide-micro .svt-v124-micro{opacity:0;pointer-events:none}.svt-v124-card.quiz-mode .svt-v124-labels{opacity:0;pointer-events:none}.svt-v124-card.quiz-mode .svt-v124-diagram{outline:3px solid rgba(124,58,237,.18);outline-offset:-3px}.svt-v124-card.quiz-mode .svt-v124-controls button[data-svt-v124="quiz"]{background:#ede9fe;color:#6d28d9;border-color:#c4b5fd}
.svt-v124-side{display:grid;gap:10px}.svt-v124-side article{padding:14px 15px;border:1px solid #e2e8f0;border-radius:18px;background:#fff}.svt-v124-side b{display:block;color:#0f172a;font-size:13px}.svt-v124-side p{margin:7px 0 0;color:#475569;font-size:13.2px;line-height:1.57}.svt-v124-doc{background:linear-gradient(135deg,#fffbeb,#fff)!important;border-color:#fde68a!important}.svt-v124-doc details{margin-top:9px}.svt-v124-doc summary{cursor:pointer;color:#92400e;font-size:12.5px;font-weight:850}
.svt-v124-reasoning{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:0 0 22px}.svt-v124-reasoning>div{position:relative;min-height:122px;padding:17px 16px 15px 52px;border:1px solid #dbeafe;border-radius:19px;background:#fff}.svt-v124-reasoning span{position:absolute;left:15px;top:16px;display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:#0f766e;color:#fff;font-size:13px;font-weight:950}.svt-v124-reasoning b{color:#0f172a;font-size:14px}.svt-v124-reasoning p{margin:6px 0 0;color:#475569;font-size:12.8px;line-height:1.55}
.svt-v124-mini{display:grid;grid-template-columns:220px minmax(0,1fr);gap:14px;align-items:center;margin-top:14px;padding:13px;border:1px solid #d1fae5;border-radius:18px;background:linear-gradient(135deg,#f7fffb,#fff)}.svt-v124-mini-svg{height:142px;overflow:hidden;border:1px solid #e2e8f0;border-radius:14px;background:#fff}.svt-v124-mini-svg .svt-v124-svg{width:100%;height:100%;max-height:none}.svt-v124-mini-svg .svt-v124-labels{font-size:18px}.svt-v124-mini b{color:#065f46;font-size:13.5px}.svt-v124-mini p{margin:6px 0 0;color:#475569;font-size:12.5px;line-height:1.47}.svt-v124-mini-write{padding-top:6px;border-top:1px dashed #d1fae5;color:#334155!important;font-weight:650}
.svt-v124-exo-badge{display:inline-flex;margin:0 0 3px;padding:5px 9px;border-radius:999px;background:#ecfdf5;color:#047857;font-size:10.5px;font-weight:950;letter-spacing:.08em;text-transform:uppercase}.mx-auto.max-w-\[1450px\] article[data-svt-v124-exercise="1"]{position:relative;overflow:hidden}.mx-auto.max-w-\[1450px\] article[data-svt-v124-exercise="1"]::after{content:"";position:absolute;right:-24px;top:-24px;width:78px;height:78px;border-radius:50%;background:rgba(16,185,129,.06);pointer-events:none}
/* Les longs cours SVT gagnent un peu de respiration, mais restent compacts sur écran. */
.svt-course-shell .svt-course-points li{hyphens:auto}.svt-course-shell .svt-course-section{min-height:0}.svt-recap-page article{overflow:hidden}
@media(max-width:1100px){.svt-v124-grid{grid-template-columns:1fr}.svt-v124-side{grid-template-columns:repeat(2,minmax(0,1fr))}.svt-v124-reasoning{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.svt-v124-card{padding:16px;border-radius:22px}.svt-v124-head{display:block}.svt-v124-controls{justify-content:flex-start;margin-top:12px}.svt-v124-side{grid-template-columns:1fr}.svt-v124-reasoning{grid-template-columns:1fr}.svt-v124-mini{grid-template-columns:1fr}.svt-v124-mini-svg{height:180px}}

/* ===== SOURCE: styles/gomathy-svt-depth-v125.css ===== */
/* GoMathy V125 — SVT : atlas multi-échelles, mécanismes interactifs, fiches maîtrise */
.svt-v125-atlas{margin:0 0 22px;border:1px solid #a7f3d0;border-radius:28px;background:linear-gradient(145deg,#f0fdfa,#fff 54%,#f0f9ff);box-shadow:0 15px 36px rgba(15,118,110,.09);overflow:hidden}.svt-v125-atlas>header{display:flex;justify-content:space-between;gap:18px;align-items:flex-start;padding:21px 22px 15px;border-bottom:1px solid #d1fae5}.svt-v125-atlas header p{margin:0;color:#047857;font-size:10.5px;font-weight:950;letter-spacing:.18em}.svt-v125-atlas h3{margin:4px 0 4px;color:#0f172a;font-size:22px;line-height:1.2}.svt-v125-atlas header span{color:#64748b;font-size:13px;line-height:1.5}.svt-v125-tabs{display:flex;flex-wrap:wrap;gap:7px;justify-content:flex-end}.svt-v125-tabs button{border:1px solid #d1fae5;border-radius:999px;background:#fff;padding:8px 11px;color:#065f46;font-size:11.5px;font-weight:900;cursor:pointer}.svt-v125-tabs button.is-active{background:#065f46;color:#fff;border-color:#065f46;box-shadow:0 4px 12px rgba(6,95,70,.18)}.svt-v125-pane{display:none;padding:18px 20px 21px}.svt-v125-pane.is-active{display:block;animation:svt125fade .18s ease}@keyframes svt125fade{from{opacity:.35;transform:translateY(3px)}to{opacity:1;transform:none}}.svt-v125-plate{overflow:hidden;border:1px solid #dbeafe;border-radius:22px;background:#fff;padding:7px}.svt-v125-plate-svg{display:block;width:100%;height:auto;max-height:500px}.svt-v125-plate-svg text{font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif}.svt-v125-hotspot-markers circle{fill:#fff;stroke:#0f766e;stroke-width:4;filter:drop-shadow(0 2px 3px rgba(15,118,110,.2))}.svt-v125-caption{display:flex;gap:10px;align-items:baseline;margin-top:9px;padding:9px 12px;border-radius:14px;background:#f8fafc;color:#64748b;font-size:12.2px;line-height:1.5}.svt-v125-caption b{color:#334155;white-space:nowrap}.svt-v125-scale{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.svt-v125-scale article{position:relative;min-height:104px;padding:15px 15px 14px 47px;border:1px solid #dbeafe;border-radius:18px;background:#fff;display:flex;align-items:center}.svt-v125-scale span{position:absolute;left:14px;top:14px;display:grid;place-items:center;width:25px;height:25px;border-radius:50%;background:#0f766e;color:#fff;font-size:12px;font-weight:950}.svt-v125-scale b{font-size:13.5px;line-height:1.42;color:#0f172a}.svt-v125-scale i{position:absolute;right:-9px;z-index:2;color:#0f766e;font-size:22px;font-style:normal}.svt-v125-limit{margin-top:11px;padding:12px 14px;border:1px solid #fde68a;border-radius:16px;background:#fffbeb}.svt-v125-limit b{color:#92400e;font-size:12px}.svt-v125-limit p{margin:5px 0 0;color:#78350f;font-size:12.8px;line-height:1.55}.svt-v125-chain{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}.svt-v125-chain button{min-height:96px;padding:12px;border:1px solid #dbeafe;border-radius:17px;background:#fff;color:#334155;font-size:12.5px;font-weight:800;line-height:1.4;cursor:pointer;transition:.15s}.svt-v125-chain button span{display:grid;place-items:center;width:25px;height:25px;margin:0 auto 7px;border-radius:50%;background:#e2e8f0;color:#475569}.svt-v125-chain button.is-active{border-color:#5eead4;background:#ecfdf5;color:#065f46;transform:translateY(-1px);box-shadow:0 5px 14px rgba(15,118,110,.09)}.svt-v125-chain button.is-active span{background:#0f766e;color:#fff}.svt-v125-steptext{margin-top:11px;padding:14px 16px;border-radius:17px;background:#0f172a;color:#e2e8f0}.svt-v125-steptext strong{font-size:11px;letter-spacing:.08em;text-transform:uppercase;color:#5eead4}.svt-v125-steptext p{margin:5px 0 0;font-size:14px;line-height:1.55}.svt-v125-compare{display:grid;grid-template-columns:1fr 46px 1fr;gap:10px;align-items:stretch}.svt-v125-compare>article{padding:18px;border-radius:20px;border:1px solid #dbeafe;background:#fff}.svt-v125-compare>article:first-child{background:#eff6ff}.svt-v125-compare>article:last-child{background:#fff7ed}.svt-v125-compare article span{font-size:10.5px;font-weight:950;letter-spacing:.12em;text-transform:uppercase;color:#475569}.svt-v125-compare article p{margin:7px 0 0;color:#1e293b;font-size:13.5px;line-height:1.55}.svt-v125-compare>div{display:grid;place-items:center;font-size:24px;color:#0f766e;font-weight:950}.svt-v125-compare-note{margin-top:10px;padding:10px 13px;border-radius:14px;background:#f8fafc;color:#475569;font-size:12.8px;line-height:1.5}.svt-v125-recap{margin-top:12px;padding:13px;border:1px solid #99f6e4;border-radius:18px;background:linear-gradient(145deg,#f0fdfa,#fff)}.svt-v125-recap-title{display:flex;gap:9px;align-items:center}.svt-v125-recap-title>span{display:grid;place-items:center;width:34px;height:34px;border-radius:11px;background:#ccfbf1;font-size:18px}.svt-v125-recap-title b{display:block;color:#065f46;font-size:13px}.svt-v125-recap-title small{display:block;margin-top:1px;color:#64748b;font-size:10.5px}.svt-v125-recap-grid{display:grid;grid-template-columns:1.25fr 1fr 1fr;gap:8px;margin-top:10px}.svt-v125-recap-grid section{padding:10px 11px;border-radius:13px;background:#fff;border:1px solid #e2e8f0}.svt-v125-recap-grid h5{margin:0;color:#0f172a;font-size:10.5px;text-transform:uppercase;letter-spacing:.06em}.svt-v125-recap-grid p{margin:5px 0 0;color:#475569;font-size:11.5px;line-height:1.45}.svt-v125-recap-grid strong{color:#047857}.svt-v125-exo-badge{display:inline-flex;margin:0 0 4px;padding:5px 9px;border-radius:999px;background:#ecfeff;color:#0e7490;font-size:10px;font-weight:950;letter-spacing:.07em;text-transform:uppercase}.svt-course-shell .svt-course-section:has(.svt-course-points li:nth-child(5)){min-height:0}.svt-course-shell .svt-course-points li{max-width:78ch}
@media(max-width:1000px){.svt-v125-atlas>header{display:block}.svt-v125-tabs{justify-content:flex-start;margin-top:12px}.svt-v125-scale,.svt-v125-chain{grid-template-columns:repeat(2,minmax(0,1fr))}.svt-v125-scale i{display:none}.svt-v125-recap-grid{grid-template-columns:1fr}}
@media(max-width:660px){.svt-v125-atlas{border-radius:22px}.svt-v125-atlas>header,.svt-v125-pane{padding:15px}.svt-v125-tabs{display:grid;grid-template-columns:1fr 1fr}.svt-v125-scale,.svt-v125-chain{grid-template-columns:1fr}.svt-v125-compare{grid-template-columns:1fr}.svt-v125-compare>div{height:26px;transform:rotate(90deg)}.svt-v125-caption{display:block}.svt-v125-caption b{display:block;margin-bottom:3px}.svt-v125-plate-svg{min-width:620px}.svt-v125-plate{overflow-x:auto}}
.svt-v125-selftest{margin-top:9px;border:1px dashed #5eead4;border-radius:13px;background:#f0fdfa;padding:9px 11px}.svt-v125-selftest summary{cursor:pointer;color:#065f46;font-size:11.5px;font-weight:900}.svt-v125-selftest p{margin:7px 0 0;color:#475569;font-size:11.5px;line-height:1.5}.svt-v125-selftest b{color:#0f172a}

/* ===== SOURCE: styles/gomathy-svt-precision-v126.css ===== */
.svt126-superseded{display:none!important}
/* GoMathy V126 — SVT : précision scientifique, planches réalistes, données et rappel actif */
.svt126-pro-wrap{display:grid;gap:10px}.svt126-pro-toolbar{display:flex;align-items:center;gap:12px;justify-content:space-between;padding:10px 11px;border:1px solid #dbeafe;border-radius:16px;background:linear-gradient(135deg,#fff,#f8fafc)}.svt126-pro-toolbar>div:first-child{min-width:0}.svt126-pro-toolbar b{display:block;color:#0f172a;font-size:12px;font-weight:950}.svt126-pro-toolbar span{display:block;margin-top:2px;color:#475569;font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:440px}.svt126-pro-toolbar small{display:block;margin-top:3px;color:#0f766e;font-size:9.5px;font-weight:800;line-height:1.35;max-width:520px}.svt126-pro-toolbar>button{border:1px solid #99f6e4;border-radius:12px;background:#ecfdf5;color:#065f46;padding:8px 11px;font-size:11px;font-weight:900;cursor:pointer}.svt126-pro-toolbar>button[aria-pressed=true]{background:#065f46;color:#fff}.svt126-zoom{display:flex;align-items:center;gap:6px;margin-left:auto}.svt126-zoom button{width:30px;height:30px;border:1px solid #cbd5e1;border-radius:9px;background:#fff;color:#0f172a;font-size:18px;font-weight:900;cursor:pointer}.svt126-zoom label{display:flex;align-items:center;gap:7px;color:#475569;font-size:10px;font-weight:850}.svt126-zoom input{width:110px;height:24px;accent-color:#0f766e;cursor:grab}.svt126-zoom input:active{cursor:grabbing}.svt126-diagram-viewport{position:relative;overflow:auto;border:1px solid #dbeafe;border-radius:20px;background:#fff;min-height:300px;max-height:560px;scrollbar-width:thin}.svt126-diagram-stage{position:relative;width:100%;min-width:720px;transform-origin:50% 50%;transition:transform .04s linear}.svt126-svg{display:block;width:100%;height:auto}.svt126-svg-text{font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;font-size:14px;font-weight:850;fill:#0f172a}.svt126-hotspots{position:absolute;inset:0;pointer-events:none}.svt126-hotspot{position:absolute;transform:translate(-50%,-50%);pointer-events:auto;border:0;background:transparent;cursor:pointer;display:flex;align-items:center;gap:6px;z-index:4}.svt126-hotspot span{display:grid;place-items:center;width:29px;height:29px;border-radius:50%;background:#fff;color:#065f46;border:3px solid #0f766e;box-shadow:0 4px 10px rgba(15,118,110,.22);font-size:11px;font-weight:950;transition:.15s}.svt126-hotspot i{display:inline-flex;max-width:170px;padding:5px 8px;border-radius:9px;background:rgba(15,23,42,.91);color:#fff;font-style:normal;font-size:10px;font-weight:800;line-height:1.2;box-shadow:0 4px 12px rgba(15,23,42,.18);transition:.15s}.svt126-hotspot:hover span,.svt126-hotspot.is-selected span{background:#0f766e;color:#fff;transform:scale(1.08)}.svt126-pro-wrap.is-quiz .svt126-hotspot i{opacity:0;transform:translateX(-4px);pointer-events:none}.svt126-pro-wrap.is-quiz .svt126-hotspot.is-selected i{opacity:1;transform:none}.svt126-spot-card{min-height:60px;padding:10px 13px;border-radius:14px;background:#0f172a;color:#e2e8f0}.svt126-spot-card b{display:block;color:#5eead4;font-size:11.5px}.svt126-spot-card p{margin:4px 0 0;font-size:11.5px;line-height:1.5}.svt126-data-pane{display:grid;gap:12px}.svt126-data-pane>header{display:flex;justify-content:space-between;gap:16px;align-items:flex-start}.svt126-data-pane header p{margin:0;color:#0f766e;font-size:10px;font-weight:950;letter-spacing:.14em}.svt126-data-pane h4{margin:4px 0 0;color:#0f172a;font-size:18px}.svt126-data-pane header>span{max-width:390px;color:#64748b;font-size:10.5px;line-height:1.45;text-align:right}.svt126-data-grid{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(310px,.85fr);gap:13px}.svt126-data-grid>div{border:1px solid #dbeafe;border-radius:18px;background:#fff;padding:12px}.svt126-data-chart{display:block;width:100%;height:auto}.svt126-data-reason{display:grid;gap:7px}.svt126-data-reason article{padding:9px 10px;border-radius:12px;background:#f8fafc;border:1px solid #e2e8f0}.svt126-data-reason b{color:#0f172a;font-size:10.5px}.svt126-data-reason p{margin:3px 0 0;color:#475569;font-size:11.5px;line-height:1.45}.svt126-data-reason details{padding:9px 10px;border-radius:12px;background:#ecfdf5;border:1px dashed #5eead4}.svt126-data-reason summary{cursor:pointer;color:#065f46;font-size:10.5px;font-weight:900}.svt126-proof{margin:0 0 22px;border:1px solid #bfdbfe;border-radius:24px;background:linear-gradient(135deg,#f8fafc,#eff6ff);padding:17px 18px}.svt126-proof header p{margin:0;color:#1d4ed8;font-size:9.5px;font-weight:950;letter-spacing:.15em}.svt126-proof h3{margin:3px 0 12px;color:#0f172a;font-size:18px}.svt126-proof-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}.svt126-proof-grid article{padding:12px;border:1px solid #dbeafe;border-radius:16px;background:#fff}.svt126-proof-grid article>span{font-size:18px}.svt126-proof-grid b{display:block;margin-top:4px;color:#0f172a;font-size:11px}.svt126-proof-grid p{margin:5px 0 0;color:#475569;font-size:11.3px;line-height:1.45}.svt126-recall{margin-top:10px;padding-top:10px;border-top:1px solid #ccfbf1}.svt126-recall-head{display:flex;justify-content:space-between;gap:8px;align-items:center}.svt126-recall-head b{display:block;color:#065f46;font-size:11.5px}.svt126-recall-head small{display:block;color:#64748b;font-size:9.5px}.svt126-recall-head button{border:1px solid #99f6e4;border-radius:9px;background:#fff;color:#065f46;padding:5px 8px;font-size:9.5px;font-weight:900;cursor:pointer}.svt126-recall-chain{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;margin-top:8px}.svt126-recall-chain button{min-height:65px;border:1px dashed #94a3b8;border-radius:11px;background:#f8fafc;position:relative;padding:8px 7px;cursor:pointer}.svt126-recall-chain span{position:absolute;top:5px;left:6px;display:grid;place-items:center;width:18px;height:18px;border-radius:50%;background:#0f766e;color:#fff;font-size:8px;font-weight:950}.svt126-recall-chain em{display:block;color:#94a3b8;font-size:22px;font-style:normal;font-weight:950}.svt126-recall-chain b{display:none;color:#0f172a;font-size:9.5px;line-height:1.3}.svt126-recall-chain button.is-revealed{border-style:solid;border-color:#5eead4;background:#ecfdf5}.svt126-recall-chain button.is-revealed em{display:none}.svt126-recall-chain button.is-revealed b{display:block}.svt126-recall-foot{display:grid;gap:3px;margin-top:7px}.svt126-recall-foot p{margin:0;color:#475569;font-size:9.8px;line-height:1.4}.svt126-recall-foot strong{color:#0f172a}.svt126-exo-badge{display:inline-flex;margin:0 0 4px;padding:5px 9px;border-radius:999px;background:#eef2ff;color:#4338ca;font-size:10px;font-weight:950;letter-spacing:.06em;text-transform:uppercase}.svt-v125-tabs [data-svt126-tab].is-active{background:#065f46;color:#fff;border-color:#065f46;box-shadow:0 4px 12px rgba(6,95,70,.18)}[data-svt126-pane]{display:none}[data-svt126-pane].is-active{display:block;animation:svt125fade .18s ease}
@media(max-width:1100px){.svt126-proof-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.svt126-data-grid{grid-template-columns:1fr}.svt126-data-pane header>span{text-align:left}.svt126-data-pane>header{display:block}.svt126-data-pane header>span{display:block;margin-top:6px}.svt126-pro-toolbar{flex-wrap:wrap}.svt126-pro-toolbar span{max-width:100%}.svt126-zoom{margin-left:0}}
@media(max-width:700px){.svt126-proof-grid{grid-template-columns:1fr}.svt126-recall-chain{grid-template-columns:repeat(2,minmax(0,1fr))}.svt126-pro-toolbar{align-items:flex-start}.svt126-zoom{order:3;width:100%;justify-content:flex-start}.svt126-zoom input{width:min(42vw,150px)}.svt126-hotspot i{max-width:110px;font-size:8.5px}.svt126-diagram-stage{min-width:700px}.svt126-data-grid>div{padding:8px}}

/* ===== SOURCE: styles/gomathy-svt-realism-v127.css ===== */
/* GoMathy V127 — SVT réalisme scientifique, observation, mécanismes animés */
[data-svt127-pane]{display:none}[data-svt127-pane].is-active{display:block;animation:svt125fade .18s ease}.svt-v125-tabs [data-svt127-tab].is-active{background:#065f46;color:#fff;border-color:#065f46;box-shadow:0 4px 12px rgba(6,95,70,.18)}
.svt127-observation{display:grid;gap:12px}.svt127-observation>header,.svt127-dynamics>header{display:flex;justify-content:space-between;gap:16px;align-items:flex-start}.svt127-observation header p,.svt127-dynamics header p{margin:0;color:#0f766e;font-size:10px;font-weight:950;letter-spacing:.14em}.svt127-observation h4,.svt127-dynamics h4{margin:4px 0 0;color:#0f172a;font-size:18px}.svt127-observation>header>span{display:inline-flex;padding:6px 9px;border-radius:999px;background:#ecfdf5;color:#065f46;font-size:10px;font-weight:900;white-space:nowrap}.svt127-observation-grid{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(280px,.75fr);gap:13px}.svt127-micro-wrap{overflow:auto;border:1px solid #dbeafe;border-radius:20px;background:#fff}.svt127-micro-svg{display:block;width:100%;height:auto;min-width:650px}.svt127-observation aside{display:grid;gap:9px;align-content:start}.svt127-observation aside article,.svt127-observation details{padding:12px 13px;border:1px solid #dbeafe;border-radius:16px;background:#fff}.svt127-observation article small{display:block;color:#0f766e;font-size:9px;font-weight:950;letter-spacing:.12em}.svt127-observation article b{display:block;margin-top:5px;color:#0f172a;font-size:12px;line-height:1.4}.svt127-observation article p,.svt127-observation details{color:#475569;font-size:11px;line-height:1.5}.svt127-observation article p{margin:6px 0 0}.svt127-observation article.is-limit{background:#fff7ed;border-color:#fed7aa}.svt127-observation article.is-limit small{color:#c2410c}.svt127-observation details summary{cursor:pointer;color:#0f766e;font-weight:900}.svt127-observation details ol{padding-left:18px;margin:8px 0 0}.svt127-observation details li+li{margin-top:4px}
.svt127-reality-strip{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin:10px 0 20px}.svt127-reality-strip>div{display:grid;grid-template-columns:32px 1fr;column-gap:8px;padding:11px 12px;border:1px solid #dbeafe;border-radius:16px;background:linear-gradient(135deg,#fff,#f8fafc)}.svt127-reality-strip span{grid-row:1/3;font-size:21px}.svt127-reality-strip b{color:#0f172a;font-size:10.5px}.svt127-reality-strip p{margin:3px 0 0;color:#64748b;font-size:10.5px;line-height:1.42}.svt127-reality-strip strong{color:#0f766e}
.svt127-dynamics{display:grid;gap:14px}.svt127-play{display:flex;gap:6px}.svt127-play button{border:1px solid #99f6e4;border-radius:10px;background:#fff;color:#065f46;padding:7px 10px;font-size:10.5px;font-weight:900;cursor:pointer}.svt127-play [aria-pressed=true]{background:#065f46;color:#fff}.svt127-process{position:relative;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;padding:28px 12px 18px;border:1px solid #dbeafe;border-radius:20px;background:linear-gradient(180deg,#fff,#f8fafc);overflow:hidden}.svt127-flow-line{position:absolute;left:8%;right:8%;top:55px;height:4px;background:#cbd5e1;border-radius:4px;z-index:0}.svt127-flow-line i{position:absolute;top:-5px;left:0;width:14px;height:14px;border-radius:50%;background:#14b8a6;box-shadow:0 0 0 6px rgba(20,184,166,.13);transition:left .32s ease}.svt127-process[data-svt127-step="1"] .svt127-flow-line i{left:33%}.svt127-process[data-svt127-step="2"] .svt127-flow-line i{left:66%}.svt127-process[data-svt127-step="3"] .svt127-flow-line i{left:99%}.svt127-process>button{position:relative;z-index:1;border:1px solid #dbeafe;border-radius:15px;background:#fff;min-height:112px;padding:14px 9px 10px;color:#334155;cursor:pointer;transition:.18s}.svt127-process>button span{display:grid;place-items:center;margin:-30px auto 9px;width:34px;height:34px;border-radius:50%;background:#e2e8f0;color:#475569;border:4px solid #fff;box-shadow:0 1px 0 #cbd5e1;font-size:11px;font-weight:950}.svt127-process>button b{display:block;font-size:10.5px;line-height:1.42}.svt127-process>button.is-active{border-color:#5eead4;background:#ecfdf5;transform:translateY(-2px);box-shadow:0 8px 18px rgba(15,118,110,.12)}.svt127-process>button.is-active span{background:#0f766e;color:#fff}.svt127-step-slider{display:flex;align-items:center;gap:12px;padding:8px 11px;border-radius:14px;background:#f8fafc;border:1px solid #e2e8f0}.svt127-step-slider span{min-width:72px;color:#475569;font-size:10px;font-weight:900}.svt127-step-slider input{flex:1;accent-color:#0f766e;cursor:pointer}.svt127-dynamic-note{padding:11px 13px;border-radius:15px;background:#0f172a;color:#e2e8f0}.svt127-dynamic-note b{color:#5eead4;font-size:11px}.svt127-dynamic-note p{margin:4px 0 0;font-size:11px;line-height:1.48}
.svt127-fiche-reality{margin-top:9px;padding:10px 11px;border-radius:13px;background:#f0fdfa;border:1px solid #99f6e4}.svt127-fiche-reality>b{display:block;color:#065f46;font-size:10.5px}.svt127-fiche-reality>div{display:flex;gap:6px;flex-wrap:wrap;margin-top:6px}.svt127-fiche-reality span{padding:4px 7px;border-radius:999px;background:#fff;color:#0f766e;border:1px solid #ccfbf1;font-size:9px;font-weight:850}.svt127-fiche-reality p{margin:6px 0 0;color:#475569;font-size:9.7px;line-height:1.4}.svt127-exo-badge{display:inline-flex;margin:0 0 4px;padding:5px 9px;border-radius:999px;background:#ecfeff;color:#0e7490;font-size:10px;font-weight:950;letter-spacing:.05em;text-transform:uppercase}
@media(max-width:1050px){.svt127-observation-grid{grid-template-columns:1fr}.svt127-reality-strip{grid-template-columns:1fr}.svt127-process{grid-template-columns:repeat(2,minmax(0,1fr));row-gap:28px}.svt127-flow-line{display:none}}
@media(max-width:650px){.svt127-observation>header,.svt127-dynamics>header{display:block}.svt127-observation>header>span{margin-top:7px}.svt127-play{margin-top:9px}.svt127-process{grid-template-columns:1fr;gap:12px}.svt127-process>button{min-height:72px}.svt127-process>button span{margin:0 auto 6px}.svt127-micro-svg{min-width:620px}}

/* ===== SOURCE: styles/gomathy-svt-atlas-v128.css ===== */
/* GoMathy V128 — SVT atlas scientifique multi-échelle et planches de précision */
[data-svt128-pane]{display:none}[data-svt128-pane].is-active{display:block;animation:svt125fade .18s ease}.svt-v125-tabs [data-svt128-tab].is-active{background:#0f766e;color:#fff;border-color:#0f766e;box-shadow:0 4px 12px rgba(15,118,110,.18)}
.svt128-atlas{display:grid;gap:13px}.svt128-atlas>header{display:flex;justify-content:space-between;gap:16px;align-items:flex-start}.svt128-atlas>header p{margin:0;color:#0f766e;font-size:10px;font-weight:950;letter-spacing:.14em}.svt128-atlas h4{margin:4px 0 2px;color:#0f172a;font-size:18px}.svt128-atlas header small{color:#64748b;font-size:10.5px;line-height:1.4}.svt128-toggle{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}.svt128-toggle button{border:1px solid #99f6e4;border-radius:10px;background:#fff;color:#0f766e;padding:7px 10px;font-size:10px;font-weight:900;cursor:pointer}.svt128-toggle button.is-active{background:#ecfdf5;border-color:#5eead4;box-shadow:inset 0 0 0 1px #ccfbf1}.svt128-levels{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.svt128-levels button{display:flex;align-items:center;gap:8px;justify-content:center;border:1px solid #dbeafe;border-radius:13px;background:#fff;color:#475569;padding:9px 10px;font-size:10.5px;font-weight:900;cursor:pointer;transition:.16s}.svt128-levels button span{display:grid;place-items:center;width:22px;height:22px;border-radius:50%;background:#e2e8f0;color:#334155;font-size:10px}.svt128-levels button.is-active{border-color:#5eead4;background:#ecfdf5;color:#065f46;transform:translateY(-1px);box-shadow:0 5px 13px rgba(15,118,110,.08)}.svt128-levels button.is-active span{background:#0f766e;color:#fff}.svt128-stage{position:relative;border:1px solid #dbeafe;border-radius:24px;background:linear-gradient(180deg,#ffffff,#f8fafc);overflow:hidden;box-shadow:0 14px 34px rgba(15,23,42,.08)}.svt128-layer{display:none}.svt128-layer.is-active{display:block}.svt128-svg{display:block;width:100%;height:auto}.svt128-svg text{letter-spacing:.01em}.svt128-svg .svt128-label rect{opacity:.98}.svt128-svg .svt128-label text{paint-order:stroke;stroke:#ffffff;stroke-width:.8px}.svt128-label,.svt128-flow{transition:opacity .16s ease}.svt128-atlas.hide-labels .svt128-label{opacity:0;pointer-events:none}.svt128-atlas.hide-flux .svt128-flow{opacity:.08}.svt128-reading{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}.svt128-reading article{padding:12px 13px;border:1px solid #dbeafe;border-radius:16px;background:linear-gradient(180deg,#fff,#f8fafc);box-shadow:0 6px 18px rgba(15,23,42,.05)}.svt128-reading b{display:block;color:#0f172a;font-size:10.5px}.svt128-reading p{margin:5px 0 0;color:#64748b;font-size:10.5px;line-height:1.46}.svt128-reading .is-warning{background:#fff7ed;border-color:#fed7aa}.svt128-reading .is-warning b{color:#c2410c}.svt128-atlas>details{padding:11px 13px;border:1px solid #dbeafe;border-radius:15px;background:#f8fafc;color:#475569;font-size:10.5px;line-height:1.5}.svt128-atlas>details summary{cursor:pointer;color:#0f766e;font-weight:900}.svt128-atlas>details ol{margin:8px 0 0;padding-left:18px}.svt128-atlas>details li+li{margin-top:4px}
.svt128-scale-strip{display:grid;grid-template-columns:minmax(0,1fr) 24px minmax(0,1fr) 24px minmax(0,1fr);align-items:stretch;gap:7px;margin:10px 0 18px}.svt128-scale-strip>div{display:grid;grid-template-columns:30px 1fr;column-gap:8px;padding:10px 11px;border:1px solid #dbeafe;border-radius:15px;background:linear-gradient(135deg,#fff,#f8fafc)}.svt128-scale-strip span{grid-row:1/3;display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:#ecfdf5;color:#0f766e;font-weight:950}.svt128-scale-strip b{color:#0f172a;font-size:10.5px}.svt128-scale-strip p{margin:2px 0 0;color:#64748b;font-size:9.8px;line-height:1.36}.svt128-scale-strip>i{display:grid;place-items:center;color:#14b8a6;font-style:normal;font-weight:950}
.svt128-recap{margin-top:9px;padding:10px 11px;border:1px solid #a7f3d0;border-radius:13px;background:#f0fdfa}.svt128-recap header{display:flex;gap:8px;justify-content:space-between;align-items:center}.svt128-recap header b{color:#065f46;font-size:10.5px}.svt128-recap header span{color:#0f766e;font-size:8.7px;font-weight:850}.svt128-recap p{margin:6px 0 0;color:#475569;font-size:9.7px;line-height:1.4}.svt128-recap details{margin-top:7px;padding-top:7px;border-top:1px dashed #99f6e4}.svt128-recap summary{cursor:pointer;color:#0f766e;font-size:9.5px;font-weight:900}.svt128-exo-badge{display:inline-flex;margin:0 0 4px;padding:5px 9px;border-radius:999px;background:#f0fdfa;color:#0f766e;border:1px solid #99f6e4;font-size:9.5px;font-weight:950;letter-spacing:.04em;text-transform:uppercase}
@media(max-width:1100px){.svt128-reading{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:900px){.svt128-reading{grid-template-columns:1fr}.svt128-scale-strip{grid-template-columns:1fr}.svt128-scale-strip>i{transform:rotate(90deg);height:18px}.svt128-atlas>header{display:block}.svt128-toggle{justify-content:flex-start;margin-top:8px}}
@media(max-width:620px){.svt128-levels{grid-template-columns:1fr}.svt128-svg{min-width:0}.svt128-levels button{justify-content:flex-start}.svt128-recap header{display:block}.svt128-recap header span{display:block;margin-top:3px}.svt128-toggle button{flex:1}.svt128-stage{border-radius:15px}}

.svt128-atlas{padding:2px 0 4px}.svt128-atlas>header{background:linear-gradient(180deg,#fff,#f8fafc);padding:6px 2px;border-radius:16px}.svt128-levels button{box-shadow:0 6px 14px rgba(15,23,42,.04)}.svt128-levels button:hover{border-color:#5eead4;transform:translateY(-1px)}.svt128-toggle button:hover{border-color:#2dd4bf;background:#f0fdfa}.svt128-atlas>details{background:linear-gradient(180deg,#f8fafc,#fff)}

/* ===== SOURCE: styles/gomathy-svt-benchmark-v129.css ===== */
/* GoMathy V129 — SVT benchmark excellence */
.svt129-workplan,.svt129-competences,.svt129-dossier,.svt129-fiche,.svt129-sources{font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
.svt129-workplan{margin:18px 0 20px;padding:18px;border:1px solid #cbd5e1;border-radius:20px;background:linear-gradient(145deg,#fff,#f0fdfa);box-shadow:0 10px 28px rgba(15,23,42,.06)}
.svt129-workplan header{display:flex;justify-content:space-between;gap:18px;align-items:center;margin-bottom:14px}.svt129-workplan header p,.svt129-dossier header p,.svt129-competences header p{font-size:11px;font-weight:900;letter-spacing:.08em;color:#0f766e;margin:0 0 3px}.svt129-workplan h3,.svt129-competences h3{font-size:18px;margin:0;color:#0f172a}.svt129-progress{display:flex;align-items:center;gap:9px;min-width:180px}.svt129-progress span{font-weight:900;color:#134e4a}.svt129-progress i{height:9px;flex:1;background:#dbeafe;border-radius:999px;overflow:hidden}.svt129-progress em{display:block;width:0;height:100%;background:linear-gradient(90deg,#0f766e,#22c55e);transition:width .25s ease}
.svt129-workgrid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.svt129-workgrid button{display:flex;align-items:center;text-align:left;gap:10px;padding:11px 12px;border:1px solid #dbe4ea;border-radius:14px;background:#fff;color:#0f172a;cursor:pointer;transition:.18s ease}.svt129-workgrid button:hover{transform:translateY(-1px);border-color:#5eead4}.svt129-workgrid button>span{width:28px;height:28px;border-radius:50%;display:grid;place-items:center;background:#ecfeff;color:#0f766e;font-weight:900}.svt129-workgrid button div{display:grid;gap:2px;flex:1}.svt129-workgrid button b{font-size:13px}.svt129-workgrid button small{font-size:11px;color:#64748b;line-height:1.35}.svt129-workgrid button>i{font-style:normal;opacity:0;color:#15803d;font-weight:1000}.svt129-workgrid button.is-done{background:#ecfdf5;border-color:#86efac}.svt129-workgrid button.is-done>i{opacity:1}.svt129-workgrid button.is-done>span{background:#dcfce7;color:#166534}
.svt129-dossier{padding:18px}.svt129-dossier>header{display:flex;justify-content:space-between;align-items:flex-start;gap:14px;margin-bottom:15px}.svt129-dossier h4{margin:0;font-size:20px;color:#0f172a}.svt129-dossier>header>span{padding:6px 10px;border-radius:999px;background:#ecfdf5;color:#166534;font-weight:800;font-size:11px}.svt129-docs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.svt129-doc{border:1px solid #dbe4ea;border-radius:17px;background:#fff;padding:14px;min-height:260px;box-shadow:0 7px 20px rgba(15,23,42,.04)}.svt129-doc-kicker{font-size:10px;font-weight:1000;letter-spacing:.08em;color:#0f766e;margin-bottom:8px}.svt129-doc h5{font-size:15px;margin:0 0 10px;color:#0f172a}.svt129-doc p{font-size:12px;line-height:1.5;color:#334155}.svt129-doc small{display:block;margin-top:9px;font-size:10.5px;color:#64748b;line-height:1.45}.svt129-structures{display:flex;flex-wrap:wrap;gap:6px;margin:9px 0}.svt129-structures span{font-size:10.5px;background:#f0fdfa;border:1px solid #99f6e4;color:#115e59;padding:4px 7px;border-radius:999px;font-weight:800}.svt129-mini-chart{width:100%;height:auto;display:block;margin:6px 0}.svt129-doc-question{font-weight:800;color:#0f172a!important}.svt129-causal{display:flex;align-items:center;gap:5px;flex-wrap:wrap}.svt129-causal div{display:flex;align-items:center;gap:6px;background:#f8fafc;padding:6px 8px;border-radius:10px}.svt129-causal div span{width:21px;height:21px;border-radius:50%;display:grid;place-items:center;background:#0f766e;color:white;font-size:10px;font-weight:900}.svt129-causal div b{font-size:10.5px}.svt129-causal i{font-style:normal;color:#0f766e;font-weight:1000}.svt129-limit{margin-top:13px;padding:9px 10px;border-left:4px solid #f59e0b;background:#fffbeb;border-radius:8px}.svt129-limit b{font-size:11px;color:#92400e}.svt129-limit p{margin:4px 0 0;font-size:11px}.svt129-questions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin-top:12px}.svt129-questions article{display:flex;gap:9px;padding:11px;background:#f8fafc;border-radius:13px}.svt129-questions article>span{width:27px;height:27px;display:grid;place-items:center;border-radius:50%;background:#dbeafe;color:#1d4ed8;font-weight:900}.svt129-questions b{font-size:12px}.svt129-questions p{margin:3px 0 0;font-size:11px;line-height:1.4;color:#475569}.svt129-answer{margin-top:11px;border:1px solid #dbe4ea;border-radius:13px;background:white;padding:10px 12px}.svt129-answer summary{cursor:pointer;font-weight:900;font-size:12px;color:#134e4a}.svt129-answer p{font-size:12px;line-height:1.55;color:#334155}
.svt129-competences{margin:18px 0;padding:16px;border-radius:18px;background:#0f172a;color:white}.svt129-competences header{display:flex;justify-content:space-between;gap:15px;align-items:end;margin-bottom:12px}.svt129-competences header p{color:#5eead4}.svt129-competences h3{color:#fff}.svt129-competences header small{color:#cbd5e1}.svt129-competences>div{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px}.svt129-competences button{border:1px solid #334155;border-radius:12px;background:#1e293b;color:white;padding:10px;text-align:left;display:grid;grid-template-columns:24px 1fr;gap:2px 7px;cursor:pointer}.svt129-competences button>span{grid-row:1/3;width:22px;height:22px;border-radius:50%;display:grid;place-items:center;background:#334155;color:#64748b;font-weight:900}.svt129-competences button b{font-size:11.5px}.svt129-competences button small{font-size:9.5px;line-height:1.35;color:#94a3b8}.svt129-competences button.is-done{border-color:#34d399;background:#064e3b}.svt129-competences button.is-done>span{background:#dcfce7;color:#166534}.svt129-competences button.is-done small{color:#d1fae5}
.svt129-sources{margin:20px 0;border:1px solid #dbe4ea;border-radius:16px;background:#fff}.svt129-sources summary{cursor:pointer;padding:12px 14px;font-weight:900;color:#334155}.svt129-sources>div{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;padding:0 14px 10px}.svt129-sources a{display:flex;justify-content:space-between;gap:10px;padding:10px 11px;border-radius:10px;background:#f8fafc;color:#0f172a;text-decoration:none;border:1px solid #e2e8f0}.svt129-sources a:hover{border-color:#2dd4bf;background:#f0fdfa}.svt129-sources a b{font-size:11px}.svt129-sources a span{font-size:10px;color:#0f766e;font-weight:900}.svt129-sources>p{padding:0 14px 12px;margin:0;font-size:10.5px;color:#64748b}
.svt129-fiche{margin-top:12px;padding:13px;border:1px solid #cbd5e1;border-radius:16px;background:linear-gradient(145deg,#fff,#f8fafc)}.svt129-fiche header{display:flex;justify-content:space-between;gap:10px;margin-bottom:10px}.svt129-fiche header b{color:#0f766e}.svt129-fiche header span{font-size:10px;color:#64748b}.svt129-fiche-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.svt129-fiche-grid article{padding:9px;background:#fff;border:1px solid #e2e8f0;border-radius:11px}.svt129-fiche-grid article small{display:block;font-size:9px;color:#64748b;font-weight:900;letter-spacing:.04em}.svt129-fiche-grid article b{display:block;font-size:11px;margin-top:3px}.svt129-fiche-grid article p{font-size:10.5px;line-height:1.4;margin:4px 0 0}.svt129-fiche-grid article.warn{background:#fffbeb;border-color:#fde68a}.svt129-fiche details{margin-top:8px}.svt129-fiche summary{cursor:pointer;font-size:11px;font-weight:900;color:#134e4a}.svt129-fiche ol{padding-left:20px;font-size:10.5px;line-height:1.5}
.svt129-exo-badge{display:inline-flex;align-items:center;padding:4px 8px;margin:0 8px 5px 0;border-radius:999px;background:#ccfbf1;color:#115e59;font-size:10px;font-weight:900}
@media(max-width:900px){.svt129-workgrid,.svt129-docs,.svt129-questions{grid-template-columns:1fr}.svt129-competences>div{grid-template-columns:repeat(2,minmax(0,1fr))}.svt129-workplan header,.svt129-dossier>header,.svt129-competences header{align-items:flex-start;flex-direction:column}.svt129-progress{width:100%}.svt129-sources>div{grid-template-columns:1fr}}
@media(max-width:540px){.svt129-competences>div,.svt129-fiche-grid{grid-template-columns:1fr}.svt129-workplan,.svt129-dossier{padding:12px}.svt129-doc{min-height:0}}

/* ===== SOURCE: styles/gomathy-svt-atlas-v130.css ===== */
/* GoMathy V130 — SVT atlas HD : anatomie, histologie, microstructures, légendes premium */
.svt130-premium .svt128-stage{background:linear-gradient(145deg,#f8fbfc,#eef6f4);border-color:#cfe7e1;box-shadow:0 12px 30px rgba(15,23,42,.08);}
.svt130-premium .svt128-layer{background:#f8fbfc}
.svt130-svg{display:block;width:100%;height:auto;shape-rendering:geometricPrecision;text-rendering:optimizeLegibility}
.svt130-svg .svt130-pin{transition:opacity .16s ease,transform .16s ease}.svt130-svg .svt130-pin:hover{transform:scale(1.06);transform-origin:center}
.svt130-premium.svt130-no-micro .svt130-micro{opacity:0!important;pointer-events:none}
.svt130-premium .svt130-micro{transition:opacity .18s ease}
.svt130-premium .svt128-toggle [data-svt130-detail].is-active{background:#f0fdfa;border-color:#5eead4;color:#0f766e}
.svt130-premium .svt128-toggle [data-svt130-fullscreen]{border-color:#cbd5e1;color:#334155;background:#fff}
.svt130-premium .svt128-toggle [data-svt130-fullscreen]:hover{border-color:#94a3b8;background:#f8fafc}
.svt130-premium .svt128-levels button{min-height:42px;font-size:11px}
.svt130-premium .svt128-reading article{background:linear-gradient(145deg,#fff,#fbfdfd);box-shadow:0 5px 14px rgba(15,23,42,.035)}
.svt130-premium .svt128-reading article:first-child{border-color:#a7f3d0;background:linear-gradient(145deg,#f0fdfa,#fff)}
.svt130-premium .svt128-reading article:nth-child(2){border-color:#bae6fd;background:linear-gradient(145deg,#f0f9ff,#fff)}
.svt130-premium .svt128-reading .is-warning{background:linear-gradient(145deg,#fff7ed,#fff)}
.svt130-note{margin:0 0 9px;padding:8px 10px;border-radius:10px;background:#ecfdf5;color:#475569;font-size:10px;line-height:1.45}.svt130-note strong{color:#0f766e}
.svt130-scalebar text{letter-spacing:.02em}
.svt128-stage:fullscreen{display:grid;place-items:center;background:#eef6f4;padding:20px;overflow:auto}.svt128-stage:fullscreen .svt128-layer.is-active{width:min(1400px,96vw)}.svt128-stage:fullscreen .svt130-svg{max-height:94vh;width:auto;max-width:96vw;margin:auto;filter:drop-shadow(0 14px 32px rgba(15,23,42,.14))}
@media (min-width:1100px){.svt130-premium .svt128-stage{border-radius:23px}.svt130-premium .svt128-svg{min-height:520px}}
@media (max-width:760px){.svt130-premium .svt128-toggle{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%}.svt130-premium .svt128-toggle button{justify-content:center}.svt130-svg{min-width:760px}.svt130-premium .svt128-stage{overflow:auto}.svt130-premium .svt128-stage::-webkit-scrollbar{height:8px}.svt130-premium .svt128-stage::-webkit-scrollbar-thumb{background:#99f6e4;border-radius:99px}.svt130-premium .svt128-stage::-webkit-scrollbar-track{background:#f0fdfa}}
@media (prefers-reduced-motion:reduce){.svt130-premium *{scroll-behavior:auto!important;transition:none!important}}

/* ===== SOURCE: styles/gomathy-course-unified-v14.css ===== */
/* GoMathy v14 — Maths et Physique-Chimie alignés sur la présentation aérée des cours de SVT. */
.course-unified-shell{
  --course-accent:#4f46e5;
  --course-accent-dark:#3730a3;
  --course-soft:#eef2ff;
  --course-border:#c7d2fe;
  --course-hero-end:#f5f3ff;
}
.course-theme-physics{
  --course-accent:#0891b2;
  --course-accent-dark:#0e7490;
  --course-soft:#ecfeff;
  --course-border:#a5f3fc;
  --course-hero-end:#f0fdfa;
}
.course-unified-shell .svt-course-back{color:var(--course-accent-dark)}
.course-unified-shell .svt-course-hero{
  border-color:var(--course-border);
  background:linear-gradient(135deg,var(--course-soft) 0%,#fff 51%,var(--course-hero-end) 100%);
  box-shadow:0 14px 34px color-mix(in srgb,var(--course-accent) 10%,transparent);
}
.course-unified-shell .svt-course-hero-icon{
  box-shadow:0 8px 20px color-mix(in srgb,var(--course-accent) 14%,transparent)
}
.course-unified-shell .svt-course-kicker{color:var(--course-accent-dark)}
.course-unified-shell .svt-course-outline a{border-color:color-mix(in srgb,var(--course-border) 70%,#e2e8f0);color:#334155}
.course-unified-shell .svt-course-outline a:hover{border-color:var(--course-accent);background:var(--course-soft);color:var(--course-accent-dark)}
.course-unified-shell .svt-course-outline a span{background:var(--course-soft);color:var(--course-accent-dark)}
.course-unified-shell .svt-course-section:target,
.course-unified-shell .svt-method-card:target,
.course-unified-shell .svt-example-card:target,
.course-unified-shell .svt-activity-card:target,
.course-unified-shell .svt-vocabulary-card:target{
  scroll-margin-top:90px;
  outline:4px solid color-mix(in srgb,var(--course-accent) 16%,transparent);
  outline-offset:2px;
}
.course-unified-main .svt-course-section{min-height:100%;padding:24px 25px}
.course-unified-body{margin-top:18px;color:#334155;font-size:15.5px;line-height:1.68;min-width:0}
.course-unified-body> :first-child{margin-top:0!important}
.course-unified-body> :last-child{margin-bottom:0!important}
.course-unified-body p{margin:.62rem 0;line-height:1.68}
.course-unified-body strong{color:#0f172a;font-weight:850}
.course-unified-body .gomathy-course-narrative{display:grid;gap:.78rem}
.course-unified-body .gomathy-course-narrative p{margin:0;padding:0}
.course-unified-body .gomathy-course-keypoints{display:grid;gap:.72rem;margin:0;padding:0;list-style:none}
.course-unified-body .gomathy-course-keypoints li{position:relative;margin:0;padding-left:23px;line-height:1.62}
.course-unified-body .gomathy-course-keypoints li::before{
  content:"";position:absolute;left:1px;top:.68em;width:8px;height:8px;border-radius:50%;
  background:var(--course-accent);box-shadow:0 0 0 4px color-mix(in srgb,var(--course-accent) 12%,transparent)
}
.course-unified-method-card{border-color:var(--course-border);background:#fff}
.course-unified-body .gomathy-course-method-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:0;padding:0;list-style:none}
.course-unified-body .gomathy-course-method-list li{display:flex;gap:11px;align-items:flex-start;padding:14px 15px;border:1px solid #e2e8f0;border-radius:17px;background:#f8fafc;min-width:0}
.course-unified-body .gomathy-course-method-list li>span{display:grid;place-items:center;width:27px;height:27px;flex:0 0 27px;border-radius:50%;background:var(--course-accent);color:#fff;font-size:13px;font-weight:900}
.course-unified-body .gomathy-course-method-list li>p{margin:2px 0 0;line-height:1.55}
.course-unified-example-grid--single{grid-template-columns:1fr}
.course-unified-example-grid .course-unified-body{margin-top:16px}
.course-unified-example-grid .rounded-2xl,
.course-unified-example-grid .rounded-xl{box-shadow:none!important}
.course-unified-example-grid .gomathy-course-practice-list{display:grid;grid-template-columns:1fr;gap:.8rem}
.course-unified-example-grid .gomathy-course-practice-item{padding:.9rem 1rem;border:1px solid rgba(255,255,255,.9);border-radius:16px;background:rgba(255,255,255,.78)}
.course-unified-example-grid .gomathy-course-practice-item__label{margin:0 0 .45rem!important;color:#6d28d9;font-size:.72rem;font-weight:900;letter-spacing:.07em;text-transform:uppercase}
.course-unified-example-grid .gomathy-course-practice-item details{margin-top:.65rem;border-top:1px solid #e9d5ff;padding-top:.6rem}
.course-unified-example-grid .gomathy-course-practice-item summary{cursor:pointer;color:#6d28d9;font-size:.82rem;font-weight:900}
.course-unified-wide-card{border-color:#dbeafe;background:#fff}
.course-unified-wide-card .gomathy-course-vocab-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:18px}
.course-unified-wide-card .gomathy-course-vocab-item{padding:15px 16px;border:1px solid #e2e8f0;border-radius:17px;background:#f8fafc;min-width:0}
.course-unified-wide-card .gomathy-course-vocab-item strong{display:block;margin-bottom:6px;color:var(--course-accent-dark);font-size:15px}
.course-unified-wide-card .gomathy-course-vocab-item p{margin:0;color:#475569;font-size:14px;line-height:1.55}
.course-unified-final-grid .course-unified-body{margin-top:14px}
.course-unified-final-grid .svt-pitfall-card .gomathy-course-keypoints li::before{background:#f43f5e;box-shadow:0 0 0 4px rgba(244,63,94,.11)}
.course-unified-final-grid .svt-pitfall-card .course-unified-body{color:#7f1d1d}
.course-unified-final-grid .svt-pitfall-card .course-unified-body strong{color:#881337}
.course-unified-shell .math-inline{font-size:inherit}
.course-unified-shell .math-inline-fraction{vertical-align:-.35em}

/* Les listes de chapitres Maths/PC restent familières, mais respirent comme la SVT. */
.gomathy-courses-page{max-width:1460px!important;margin-left:auto!important;margin-right:auto!important}
.gomathy-courses-grid{gap:18px!important}
.gomathy-course-card{min-height:185px!important;padding:1.25rem 1.3rem!important}

@media(max-width:960px){
  .course-unified-body .gomathy-course-method-list{grid-template-columns:1fr}
  .course-unified-wide-card .gomathy-course-vocab-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:620px){
  .course-unified-body{font-size:14.5px;line-height:1.62}
  .course-unified-wide-card .gomathy-course-vocab-grid{grid-template-columns:1fr}
  .course-unified-main .svt-course-section{padding:18px}
}

/* GoMathy v19 — Partie 1 optimisée et colonnes non étirées. */
.course-unified-main{align-items:start}
.course-unified-main>.svt-course-section{height:auto;min-height:0;align-self:start}
.course-unified-intro-compact{align-self:start!important}
.course-unified-intro-visual{margin-top:16px}
.course-unified-intro-visual>.math-visual-v17{margin:0;padding:15px;border-radius:18px;background:rgba(255,255,255,.74);box-shadow:none}
.course-unified-intro-visual .math-visual-v17__head{margin-bottom:10px}
.course-unified-intro-visual .math-visual-v17__grid{grid-template-columns:1fr;gap:10px}
.course-unified-intro-visual .math-visual-v17__graphic,.course-unified-intro-visual .math-visual-v17__table{padding:9px;border-radius:14px}
.course-unified-intro-visual .math-svg-v17{max-height:235px;min-height:155px}
.course-unified-intro-visual .math-table-v17{font-size:11.5px}
.course-unified-intro-visual .math-table-v17 th,.course-unified-intro-visual .math-table-v17 td{padding:7px 8px}
@media(max-width:960px){.course-unified-intro-visual .math-svg-v17{max-height:280px}}

/* ===== SOURCE: styles/gomathy-maths-depth-v15.css ===== */
/* GoMathy v15 — cours de mathématiques réellement développés. */
.gomathy-course-rich-source{display:grid;gap:.85rem;min-width:0}
.gomathy-course-rich-source>.space-y-3,.gomathy-course-rich-source>.space-y-4{display:grid!important;gap:.8rem!important}
.math-depth-source-note{margin:.65rem 0 0!important;padding:.5rem .7rem;border-radius:10px;background:#f8fafc;color:#64748b!important;font-size:.72rem!important;line-height:1.4!important}
.math-depth-objectives{margin-top:.85rem;padding:1rem 1.1rem;border:1px solid #c7d2fe;border-radius:17px;background:linear-gradient(135deg,#eef2ff,#fff)}
.math-depth-eyebrow{margin:0 0 .2rem!important;color:#4f46e5!important;font-size:.7rem!important;font-weight:950!important;letter-spacing:.07em;text-transform:uppercase}
.math-depth-objectives h3{margin:0 0 .55rem;color:#0f172a;font-size:1rem;font-weight:950}
.math-depth-objectives ul{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.38rem .9rem;margin:0!important;padding:0!important;list-style:none}
.math-depth-objectives li{position:relative;padding-left:1rem;color:#475569;font-size:.86rem;line-height:1.45}
.math-depth-objectives li:before{content:'✓';position:absolute;left:0;color:#4f46e5;font-weight:950}
.math-depth-section{margin-top:.65rem}
.math-depth-section__title{display:flex;align-items:center;gap:.65rem;margin:0 0 .65rem;padding:.65rem .8rem;border-radius:14px;background:#f8fafc;border:1px solid #e2e8f0}
.math-depth-section__title>span{font-size:1.35rem}.math-depth-section__title small{display:block;color:#64748b;font-size:.64rem;font-weight:900;letter-spacing:.07em;text-transform:uppercase}.math-depth-section__title h3{margin:0;color:#0f172a;font-size:1rem;font-weight:950}
.math-depth-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.72rem}
.math-depth-card{min-width:0;padding:.85rem .9rem;border:1px solid #dbeafe;border-radius:15px;background:#fff;box-shadow:0 9px 20px -22px rgba(15,23,42,.7)}
.math-depth-card:nth-child(6n+1){background:#eff6ff;border-color:#bfdbfe}.math-depth-card:nth-child(6n+2){background:#f5f3ff;border-color:#ddd6fe}.math-depth-card:nth-child(6n+3){background:#ecfdf5;border-color:#a7f3d0}.math-depth-card:nth-child(6n+4){background:#fffbeb;border-color:#fde68a}.math-depth-card:nth-child(6n+5){background:#ecfeff;border-color:#a5f3fc}.math-depth-card:nth-child(6n){background:#fff1f2;border-color:#fecdd3}
.math-depth-card__head{display:flex;align-items:center;gap:.45rem;margin-bottom:.45rem}.math-depth-card__head h4{margin:0;color:#0f172a;font-size:.92rem;font-weight:950}
.math-depth-card ul{display:grid;gap:.28rem;margin:0!important;padding-left:1rem!important}.math-depth-card li{color:#475569;font-size:.82rem;line-height:1.48}
.math-depth-methods{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.75rem;margin-top:.75rem}.math-depth-methods article{padding:.9rem;border:1px solid #a7f3d0;border-radius:15px;background:#f0fdf4}.math-depth-methods h4{margin:0 0 .5rem;color:#065f46;font-size:.92rem;font-weight:950}.math-depth-methods ol{display:grid;gap:.36rem;margin:0!important;padding:0!important;list-style:none}.math-depth-methods li{display:grid;grid-template-columns:25px minmax(0,1fr);gap:.45rem;align-items:start}.math-depth-methods li>span{display:grid;place-items:center;width:25px;height:25px;border-radius:999px;background:#059669;color:#fff;font-size:.7rem;font-weight:950}.math-depth-methods li p{margin:.1rem 0 0!important;color:#475569;font-size:.8rem;line-height:1.45}
.math-depth-examples{display:grid;gap:.75rem;margin-top:.7rem}.math-depth-examples article{padding:.9rem;border:1px solid #fed7aa;border-radius:15px;background:#fff7ed}.math-depth-example__prompt{margin:0 0 .5rem!important;color:#9a3412;font-weight:950}.math-depth-example__work{display:grid;gap:.22rem;padding:.65rem;border-radius:11px;background:#fff;color:#475569;font-size:.82rem;line-height:1.45}.math-depth-example__work p{margin:0!important}.math-depth-example__result{margin:.5rem 0 0!important;color:#7c2d12;font-size:.82rem!important}
.math-depth-pitfalls{margin-top:.65rem;padding:.8rem .9rem;border:1px solid #fecaca;border-left:4px solid #ef4444;border-radius:13px;background:#fef2f2}.math-depth-pitfalls p{margin:0 0 .35rem!important;color:#991b1b!important}.math-depth-pitfalls ul{display:grid;gap:.25rem;margin:0!important;padding-left:1.15rem!important}.math-depth-pitfalls li{color:#b91c1c;font-size:.8rem;line-height:1.4}
.course-theme-maths .svt-course-section{overflow:visible}.course-theme-maths .course-unified-body{min-width:0}.course-theme-maths .gomathy-course-rich-source table{width:100%;border-collapse:collapse}.course-theme-maths .gomathy-course-rich-source th,.course-theme-maths .gomathy-course-rich-source td{padding:.42rem .5rem;border-bottom:1px solid #e2e8f0;text-align:left;vertical-align:top}
@media(max-width:820px){.math-depth-objectives ul,.math-depth-grid,.math-depth-methods{grid-template-columns:1fr}.math-depth-card,.math-depth-methods article,.math-depth-examples article{padding:.75rem}.math-depth-source-note{font-size:.68rem!important}}
.math-depth-mastery{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.75rem;margin-top:.8rem}
.math-depth-mastery>div{padding:.9rem;border:1px solid #cbd5e1;border-radius:15px;background:#f8fafc}.math-depth-mastery>div:nth-child(2){background:#f0fdf4;border-color:#bbf7d0}
.math-depth-mastery h4{margin:.15rem 0 .5rem;color:#0f172a;font-size:.9rem;font-weight:950}.math-depth-mastery ul{display:grid;gap:.25rem;margin:0!important;padding-left:1rem!important}.math-depth-mastery li{color:#475569;font-size:.78rem;line-height:1.42}
@media(max-width:820px){.math-depth-mastery{grid-template-columns:1fr}}

/* v15.1 — contrôle de maîtrise pour éviter les cours trop proches d'une simple fiche */
.math-depth-mastery{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.8rem;margin-top:.85rem}
.math-depth-mastery>article{min-width:0;padding:.95rem 1rem;border:1px solid #cbd5e1;border-radius:16px;background:#f8fafc}
.math-depth-mastery>article:nth-child(2){border-color:#bbf7d0;background:#f0fdf4}
.math-depth-mastery h4{margin:.15rem 0 .6rem;color:#0f172a;font-size:.98rem;font-weight:950}
.math-depth-mastery ul{display:grid;gap:.38rem;margin:0;padding-left:1.1rem;color:#334155;font-size:.87rem;line-height:1.5}
.math-depth-mastery li{padding-left:.12rem}
@media(max-width:820px){.math-depth-mastery{grid-template-columns:1fr}}

/* ===== SOURCE: styles/gomathy-maths-web-audit-v16.css ===== */
/* GoMathy v16 — audit chapitre par chapitre des incontournables maths. */
.course-theme-maths .math-web-audit-v16,
.course-theme-maths .math-web-types-v16,
.course-theme-maths .math-web-proof-v16,
.course-theme-maths .math-web-pitfalls-v16{
  margin-top:1rem;padding:1rem 1.05rem;border-radius:17px;min-width:0
}
.course-theme-maths .math-web-audit-v16{
  border:1px solid #bfdbfe;border-left:5px solid #2563eb;
  background:linear-gradient(135deg,#eff6ff 0%,#fff 72%)
}
.course-theme-maths .math-web-types-v16{
  border:1px solid #c4b5fd;border-left:5px solid #7c3aed;
  background:linear-gradient(135deg,#f5f3ff 0%,#fff 74%)
}
.course-theme-maths .math-web-proof-v16{border:1px solid #a7f3d0;background:#f0fdf4}
.course-theme-maths .math-web-pitfalls-v16{border:1px solid #fecaca;background:#fef2f2}
.course-theme-maths .math-web-audit-v16__head,
.course-theme-maths .math-web-types-v16__head{display:flex;align-items:flex-start;gap:.7rem;margin-bottom:.7rem}
.course-theme-maths .math-web-audit-v16__icon,
.course-theme-maths .math-web-types-v16__icon{display:grid;place-items:center;width:34px;height:34px;flex:0 0 34px;border-radius:11px;background:#fff;box-shadow:0 6px 15px -13px rgba(15,23,42,.7);font-size:1rem}
.course-theme-maths .math-web-audit-v16 h4,
.course-theme-maths .math-web-types-v16 h4,
.course-theme-maths .math-web-proof-v16 h4,
.course-theme-maths .math-web-pitfalls-v16 h4{margin:0;color:#0f172a;font-size:.96rem;font-weight:950;line-height:1.25}
.course-theme-maths .math-web-audit-v16__head p,
.course-theme-maths .math-web-types-v16__head p{margin:.18rem 0 0!important;color:#64748b;font-size:.75rem!important;line-height:1.4!important}
.course-theme-maths .math-web-audit-v16 ul{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.5rem .8rem;margin:.65rem 0 0!important;padding:0!important;list-style:none}
.course-theme-maths .math-web-audit-v16 li{position:relative;min-width:0;margin:0!important;padding:.62rem .7rem .62rem 1.75rem;border:1px solid rgba(147,197,253,.62);border-radius:12px;background:rgba(255,255,255,.78);color:#334155;font-size:.83rem;line-height:1.46}
.course-theme-maths .math-web-audit-v16 li::before{content:'✓';position:absolute;left:.58rem;top:.62rem;color:#2563eb;font-weight:950}
.course-theme-maths .math-web-types-v16 ol{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.55rem;margin:.7rem 0 0!important;padding:0!important;list-style:none;counter-reset:mathwebtype}
.course-theme-maths .math-web-types-v16 li{counter-increment:mathwebtype;display:grid;grid-template-columns:27px minmax(0,1fr);gap:.5rem;align-items:start;min-width:0;margin:0!important;padding:.66rem .7rem;border:1px solid #ddd6fe;border-radius:12px;background:#fff;color:#475569;font-size:.8rem;line-height:1.43}
.course-theme-maths .math-web-types-v16 li::before{content:counter(mathwebtype);display:grid;place-items:center;width:27px;height:27px;border-radius:50%;background:#7c3aed;color:#fff;font-size:.7rem;font-weight:950}
.course-theme-maths .math-web-proof-v16 ul,
.course-theme-maths .math-web-pitfalls-v16 ul{display:grid;gap:.35rem;margin:.55rem 0 0!important;padding-left:1.05rem!important}
.course-theme-maths .math-web-proof-v16 li{color:#065f46;font-size:.8rem;line-height:1.45}.course-theme-maths .math-web-pitfalls-v16 li{color:#991b1b;font-size:.8rem;line-height:1.45}
.course-theme-maths .math-web-source-v16{margin:.72rem 0 0!important;color:#64748b!important;font-size:.68rem!important;line-height:1.45!important}
.course-theme-maths .math-web-source-v16 strong{color:#475569!important}
@media(max-width:900px){.course-theme-maths .math-web-audit-v16 ul{grid-template-columns:1fr}.course-theme-maths .math-web-types-v16 ol{grid-template-columns:1fr}}

/* ===== SOURCE: styles/gomathy-maths-visuals-v120.css ===== */
/* GoMathy v17 — visuels pédagogiques intégrés aux cours de mathématiques. */
.course-theme-maths .math-visual-v17{margin:18px 0 20px;padding:20px;border:1px solid #c7d2fe;border-radius:24px;background:linear-gradient(135deg,#f8faff 0%,#fff 50%,#faf5ff 100%);box-shadow:0 10px 26px rgba(79,70,229,.06)}
.course-theme-maths .math-visual-v17__head{display:flex;gap:12px;align-items:flex-start;margin-bottom:14px}
.course-theme-maths .math-visual-v17__icon{display:grid;place-items:center;width:43px;height:43px;flex:0 0 43px;border:1px solid #ddd6fe;border-radius:14px;background:#fff;font-size:22px;box-shadow:0 5px 15px rgba(15,23,42,.06)}
.course-theme-maths .math-visual-v17__head p{margin:1px 0 2px;color:#7c3aed;font-size:10px;font-weight:950;letter-spacing:.13em;text-transform:uppercase}
.course-theme-maths .math-visual-v17__head h3{margin:0;color:#0f172a;font-size:19px;line-height:1.22;font-weight:950}
.course-theme-maths .math-visual-v17__head span{display:block;margin-top:4px;color:#64748b;font-size:13px;line-height:1.45}
.course-theme-maths .math-visual-v17__grid{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(330px,.95fr);gap:14px;align-items:stretch}
.course-theme-maths .math-visual-v17__graphic,.course-theme-maths .math-visual-v17__table{min-width:0;padding:12px;border:1px solid #e2e8f0;border-radius:18px;background:rgba(255,255,255,.9)}
.course-theme-maths .math-svg-v17{display:block;width:100%;height:auto;max-height:285px;min-height:180px}
.course-theme-maths .math-visual-v17__caption{margin:0 0 9px!important;color:#475569;font-size:12px!important;font-weight:850;line-height:1.4!important}
.course-theme-maths .math-table-v17-wrap{width:100%;overflow-x:auto;border:1px solid #e2e8f0;border-radius:13px;background:#fff}
.course-theme-maths .math-table-v17{width:100%;border-collapse:collapse;font-size:12.5px;line-height:1.35}
.course-theme-maths .math-table-v17 th{padding:9px 10px;background:#eef2ff;color:#3730a3;text-align:left;font-size:11px;font-weight:950;letter-spacing:.02em;white-space:nowrap}
.course-theme-maths .math-table-v17 td{padding:9px 10px;border-top:1px solid #e2e8f0;color:#334155;vertical-align:top}
.course-theme-maths .math-table-v17 tbody tr:nth-child(even) td{background:#fafafa}
.course-theme-maths .math-table-v17 td:first-child{font-weight:850;color:#0f172a}

/* Optimisation des cases internes : plus légères, mieux réparties. */
.course-theme-maths .math-web-audit-v16,.course-theme-maths .math-web-types-v16{padding:.86rem .9rem;border-radius:15px}
.course-theme-maths .math-web-audit-v16 ul{gap:.42rem .55rem}
.course-theme-maths .math-web-audit-v16 li{padding:.52rem .58rem .52rem 1.55rem;border-radius:10px;font-size:.79rem;line-height:1.4}
.course-theme-maths .math-web-audit-v16 li::before{left:.5rem;top:.51rem}
.course-theme-maths .math-web-types-v16 ol{gap:.45rem}
.course-theme-maths .math-web-types-v16 li{padding:.56rem .6rem;border-radius:10px;font-size:.77rem;line-height:1.38;grid-template-columns:24px minmax(0,1fr)}
.course-theme-maths .math-web-types-v16 li::before{width:24px;height:24px;font-size:.66rem}
.course-theme-maths .course-unified-wide-card .gomathy-course-vocab-grid{gap:9px}
.course-theme-maths .course-unified-wide-card .gomathy-course-vocab-item{padding:12px 13px;border-radius:14px}
.course-theme-maths .course-unified-body .gomathy-course-method-list{gap:9px}
.course-theme-maths .course-unified-body .gomathy-course-method-list li{padding:11px 12px;border-radius:14px}
.course-theme-maths .svt-course-section{overflow:visible}

@media(min-width:1200px){
  .course-theme-maths .svt-course-main{gap:15px}
  .course-theme-maths .course-unified-main .svt-course-section{padding:21px 22px}
  .course-theme-maths .course-unified-body{margin-top:14px}
}
@media(max-width:900px){
  .course-theme-maths .math-visual-v17__grid{grid-template-columns:1fr}
  .course-theme-maths .math-svg-v17{max-height:320px}
}
@media(max-width:620px){
  .course-theme-maths .math-visual-v17{padding:14px;border-radius:19px}
  .course-theme-maths .math-visual-v17__graphic,.course-theme-maths .math-visual-v17__table{padding:8px;border-radius:14px}
  .course-theme-maths .math-table-v17{font-size:11.5px}
  .course-theme-maths .math-table-v17 th,.course-theme-maths .math-table-v17 td{padding:7px 8px}
}

/* GoMathy V112 — commandes pédagogiques intégrées aux visuels de cours. */
.course-theme-maths .math-visual-v112-controls{display:flex;flex-wrap:wrap;gap:7px;align-items:center;margin:0 0 9px}
.course-theme-maths .math-visual-v112-btn{appearance:none;border:1px solid #cbd5e1;border-radius:999px;background:#fff;color:#475569;padding:6px 10px;font-size:11px;font-weight:900;line-height:1;cursor:pointer;transition:.15s ease}
.course-theme-maths .math-visual-v112-btn:hover{border-color:#93c5fd;background:#f8fbff;transform:translateY(-1px)}
.course-theme-maths .math-visual-v112-btn.is-active{border-color:#818cf8;background:#eef2ff;color:#3730a3;box-shadow:inset 0 0 0 1px rgba(99,102,241,.08)}
.course-theme-maths .math-visual-v112-range{display:grid;grid-template-columns:auto minmax(120px,1fr) auto;gap:8px;align-items:center;margin:7px 0 9px;color:#475569;font-size:11px;font-weight:850}
.course-theme-maths .math-visual-v112-range input{width:100%;accent-color:#4f46e5}
.course-theme-maths .math-visual-v112-value{min-width:48px;text-align:right;color:#312e81;font-weight:950}
.course-theme-maths .math-visual-v112-status{margin-top:8px;padding:8px 10px;border:1px solid #dbeafe;border-radius:12px;background:#f8fbff;color:#334155;font-size:12px;line-height:1.4}
.course-theme-maths .math-visual-v112-status b{color:#0f172a}
.course-theme-maths .math-visual-v112-legend{display:flex;flex-wrap:wrap;gap:6px 12px;margin-top:6px;color:#64748b;font-size:10.5px;font-weight:750}
.course-theme-maths .math-visual-v112-legend span{display:inline-flex;align-items:center;gap:5px}
.course-theme-maths .math-visual-v112-dot{width:8px;height:10px;border-radius:999px;background:currentColor;display:inline-block}
@media(max-width:620px){.course-theme-maths .math-visual-v112-range{grid-template-columns:1fr auto}.course-theme-maths .math-visual-v112-range input{grid-column:1/-1;grid-row:2}.course-theme-maths .math-visual-v112-btn{font-size:10.5px;padding:6px 8px}}


/* GoMathy V116 — interactions mathématiques renforcées. */
.course-theme-maths [data-mv-kind] .math-visual-v112-range{
  padding:.28rem .4rem;
  border-radius:10px;
  background:#fbfdff;
}
.course-theme-maths [data-mv-kind] .math-visual-v112-range:focus-within{
  outline:2px solid rgba(99,102,241,.18);
  outline-offset:1px;
}
.course-theme-maths [data-mv-kind] input[type="range"]{cursor:pointer}
.course-theme-maths .math-visual-v112-status{
  min-height:2.65rem;
}
@media(max-width:620px){
  .course-theme-maths [data-mv-kind] .math-visual-v112-range{padding:.22rem .32rem}
}


/* GoMathy V117 — interactions pédagogiques supplémentaires. */
.course-theme-maths .math-visual-v17 [data-mv-kind] .math-visual-v112-range + .math-visual-v112-range{margin-top:.36rem}
.course-theme-maths .math-visual-v17 .math-visual-v112-controls + .math-visual-v112-range{margin-top:.48rem}
.course-theme-maths .math-visual-v17 [data-mv-kind="limits"] .math-visual-v112-controls,
.course-theme-maths .math-visual-v17 [data-mv-kind="variation"] .math-visual-v112-controls{justify-content:center}
@media(max-width:720px){
 .course-theme-maths .math-visual-v17 .math-visual-v112-controls{gap:.3rem}
 .course-theme-maths .math-visual-v17 .math-visual-v112-btn{font-size:.7rem;padding:.38rem .52rem}
}


/* GoMathy V120 — sliders réellement fluides au maintien de la souris. */
.course-theme-maths .math-visual-v120-slider{
  min-width:0;
  display:grid;
  grid-template-columns:34px minmax(100px,1fr) 34px;
  gap:7px;
  align-items:center;
}
.course-theme-maths .math-visual-v120-step{
  appearance:none;
  display:grid;
  place-items:center;
  width:34px;
  height:34px;
  padding:0;
  border:1px solid #c7d2fe;
  border-radius:10px;
  background:#fff;
  color:#4338ca;
  font-size:20px;
  font-weight:900;
  line-height:1;
  cursor:pointer;
  box-shadow:0 2px 7px rgba(79,70,229,.08);
  transition:background .12s ease,border-color .12s ease,transform .08s ease;
}
.course-theme-maths .math-visual-v120-step:hover{background:#eef2ff;border-color:#818cf8}
.course-theme-maths .math-visual-v120-step:active{transform:scale(.94)}
.course-theme-maths .math-visual-v120-step:focus-visible{outline:3px solid rgba(99,102,241,.24);outline-offset:2px}
.course-theme-maths .math-visual-v120-slider input[type="range"]{
  appearance:none;
  -webkit-appearance:none;
  width:100%;
  height:40px;
  margin:0;
  padding:0;
  background:transparent;
  cursor:grab;
  touch-action:none;
  user-select:none;
}
.course-theme-maths .math-visual-v120-slider input[type="range"].is-dragging{cursor:grabbing}
.course-theme-maths .math-visual-v120-slider input[type="range"]::-webkit-slider-runnable-track{
  height:10px;border-radius:999px;background:#c7d2fe;border:1px solid #a5b4fc;
}
.course-theme-maths .math-visual-v120-slider input[type="range"]::-webkit-slider-thumb{
  -webkit-appearance:none;appearance:none;width:26px;height:26px;margin-top:-9px;border:3px solid #fff;border-radius:50%;background:#4f46e5;box-shadow:0 1px 5px rgba(49,46,129,.35);
}
.course-theme-maths .math-visual-v120-slider input[type="range"]::-moz-range-track{
  height:10px;border-radius:999px;background:#c7d2fe;border:1px solid #a5b4fc;
}
.course-theme-maths .math-visual-v120-slider input[type="range"]::-moz-range-thumb{
  width:22px;height:22px;border:3px solid #fff;border-radius:50%;background:#4f46e5;box-shadow:0 1px 5px rgba(49,46,129,.35);
}
@media(max-width:620px){
  .course-theme-maths .math-visual-v120-slider{grid-column:1/-1;grid-row:2;grid-template-columns:38px minmax(80px,1fr) 38px;gap:6px}
  .course-theme-maths .math-visual-v120-step{width:38px;height:38px}
}

/* ===== SOURCE: styles/gomathy-maths-formulas-v20.css ===== */
/* GoMathy v20 — tableaux de formules contextualisés */
.course-theme-maths .math-formula-v20{margin:1rem 0 0;padding:.95rem;border:1px solid #c7d2fe;border-radius:18px;background:linear-gradient(135deg,#f8faff,#fff 72%);box-shadow:0 8px 20px -20px rgba(67,56,202,.45)}
.course-theme-maths .math-formula-v20__head{display:flex;gap:.72rem;align-items:flex-start;margin-bottom:.68rem}
.course-theme-maths .math-formula-v20__icon{display:grid;place-items:center;width:38px;height:38px;flex:0 0 38px;border:1px solid #ddd6fe;border-radius:12px;background:#fff;font-size:1.05rem}
.course-theme-maths .math-formula-v20__head p{margin:0;color:#6d28d9;font-size:.61rem;font-weight:950;letter-spacing:.1em;text-transform:uppercase}
.course-theme-maths .math-formula-v20__head h4{margin:.05rem 0;color:#172554;font-size:1rem;line-height:1.25;font-weight:950}
.course-theme-maths .math-formula-v20__head span{display:block;margin-top:.12rem;color:#64748b;font-size:.73rem;line-height:1.35}
.course-theme-maths .math-formula-v20__wrap{overflow-x:auto;border:1px solid #e0e7ff;border-radius:13px;background:#fff;scrollbar-gutter:stable}
.course-theme-maths .math-formula-v20 table{width:100%;border-collapse:collapse;min-width:610px;font-size:.78rem;line-height:1.34}
.course-theme-maths .math-formula-v20 th{padding:.52rem .58rem;background:#eef2ff;color:#3730a3;text-align:left;font-size:.68rem;font-weight:950;letter-spacing:.025em}
.course-theme-maths .math-formula-v20 td{padding:.5rem .58rem;border-top:1px solid #eef2ff;color:#334155;vertical-align:top}
.course-theme-maths .math-formula-v20 tbody tr:nth-child(even) td{background:#fafaff}
.course-theme-maths .math-formula-v20__formula{white-space:nowrap;color:#111827!important;font-family:Georgia,'Times New Roman',serif;font-size:.86rem!important;font-weight:850}
.course-theme-maths .math-formula-v20 td small{display:block;margin-top:.16rem;color:#64748b;font-family:inherit;font-size:.68rem;line-height:1.3}
.course-theme-maths #math-essential .math-formula-v20{margin-top:.85rem}
@media(min-width:1050px){
 .course-theme-maths .math-formula-v20 table{min-width:0}
 .course-theme-maths .math-formula-v20 th:first-child,.course-theme-maths .math-formula-v20 td:first-child{width:26%}
 .course-theme-maths .math-formula-v20 th:nth-child(2),.course-theme-maths .math-formula-v20 td:nth-child(2){width:31%}
}
@media(max-width:720px){
 .course-theme-maths .math-formula-v20{padding:.7rem;border-radius:15px}
 .course-theme-maths .math-formula-v20 table{font-size:.74rem}
 .course-theme-maths .math-formula-v20 th,.course-theme-maths .math-formula-v20 td{padding:.44rem .48rem}
}
@media(max-width:720px){
 .course-theme-maths .math-formula-v20{box-sizing:border-box!important;width:min(100%,calc(100vw - 2rem))!important;max-width:calc(100vw - 2rem)!important;min-width:0!important;overflow:hidden!important}
 .course-theme-maths .math-formula-v20__wrap{display:block!important;width:100%!important;max-width:100%!important;min-width:0!important;overflow-x:auto!important;-webkit-overflow-scrolling:touch}
 .course-theme-maths .math-formula-v20 table{width:610px!important;min-width:610px!important}
}

/* ===== SOURCE: styles/gomathy-maths-formulas-v33.css ===== */
/* GoMathy v31 — harmonisation des formules mathématiques dans les cours */
.course-theme-maths .math-formula-v31{
  margin:1rem 0 0;
  padding:.9rem;
  border:1px solid #c7d2fe;
  border-radius:18px;
  background:linear-gradient(145deg,#f8faff 0%,#fff 72%);
  box-shadow:0 12px 26px -26px rgba(67,56,202,.55);
}
.course-theme-maths .math-formula-v31__head{
  display:flex;
  align-items:center;
  gap:.72rem;
  margin-bottom:.7rem;
}
.course-theme-maths .math-formula-v31__head>div:last-child{min-width:0}
.course-theme-maths .math-formula-v31__head h4{font-size:1rem!important;line-height:1.28!important}
.course-theme-maths .math-formula-v31__wrap{
  width:100%;
  overflow-x:auto;
  border:1px solid #dbe4ff;
  border-radius:14px;
  background:#fff;
  scrollbar-gutter:stable;
}
.course-theme-maths .math-formula-v31 table{
  width:100%;
  min-width:650px;
  table-layout:fixed;
  border-collapse:separate;
  border-spacing:0;
  font-size:.8rem;
  line-height:1.38;
}
.course-theme-maths .math-formula-v31 th{
  padding:.55rem .65rem;
  border:0;
  background:#eef2ff;
  color:#3730a3;
  font-size:.68rem;
  font-weight:950;
  letter-spacing:.025em;
  vertical-align:middle;
}
.course-theme-maths .math-formula-v31 th.is-math-head{text-align:center}
.course-theme-maths .math-formula-v31 th.is-text-head{text-align:left}
.course-theme-maths .math-formula-v31 td{
  padding:.58rem .68rem;
  border-top:1px solid #edf0ff;
  color:#334155;
  vertical-align:middle;
  overflow-wrap:anywhere;
}
.course-theme-maths .math-formula-v31 td+td{border-left:1px solid #f0f2ff}
.course-theme-maths .math-formula-v31 tbody tr:nth-child(even) td{background:#fbfbff}
.course-theme-maths .math-formula-v31 tbody tr:hover td{background:#f6f7ff}
.course-theme-maths .math-formula-v31 td.is-math{
  text-align:center;
  color:#111827;
  font-family:Georgia,'Times New Roman',serif;
  font-size:.91rem;
  font-weight:850;
  line-height:1.45;
  letter-spacing:.005em;
  overflow-wrap:normal;
  word-break:normal;
}
.course-theme-maths .math-formula-v31 td.is-text{text-align:left}
.course-theme-maths .math-formula-v31__expr{
  display:inline-flex;
  max-width:100%;
  align-items:center;
  justify-content:center;
  min-height:1.8rem;
  padding:.16rem .34rem;
  border-radius:8px;
  background:rgba(238,242,255,.58);
  white-space:normal;
}
.course-theme-maths .math-formula-v31__expr--stack{
  display:flex;
  flex-direction:column;
  gap:.2rem;
  margin:0 auto;
}
.course-theme-maths .math-formula-v31__expr--stack>span{display:block;text-align:center}
.course-theme-maths .math-formula-v31 td small{
  display:block;
  margin-top:.2rem;
  color:#64748b;
  font-family:inherit;
  font-size:.68rem;
  font-weight:500;
  line-height:1.35;
}
/* Les formulaires ont souvent la relation dans la 2e colonne : elle gagne un peu de largeur. */
.course-theme-maths .math-formula-v31 th:nth-child(1),
.course-theme-maths .math-formula-v31 td:nth-child(1){width:27%}
.course-theme-maths .math-formula-v31 th:nth-child(2),
.course-theme-maths .math-formula-v31 td:nth-child(2){width:35%}
.course-theme-maths .math-formula-v31 th:nth-child(3),
.course-theme-maths .math-formula-v31 td:nth-child(3){width:38%}
.course-theme-maths .math-reference-v23 th:nth-child(1),
.course-theme-maths .math-reference-v23 td:nth-child(1){width:26%}
.course-theme-maths .math-reference-v23 th:nth-child(2),
.course-theme-maths .math-reference-v23 td:nth-child(2){width:37%}
.course-theme-maths .math-reference-v23 th:nth-child(3),
.course-theme-maths .math-reference-v23 td:nth-child(3){width:37%}
/* Deux tableaux successifs : séparation légère plutôt que deux énormes cartes. */
.course-theme-maths .math-formula-v31+.math-formula-v31{margin-top:.72rem}
.course-theme-maths .math-formula-v31+.math-reference-v23{border-color:#bfdbfe;background:linear-gradient(145deg,#f8fbff,#fff 74%)}

@media(min-width:1150px){
  .course-theme-maths .math-formula-v31 table{min-width:0}
  .course-theme-maths .math-formula-v31__wrap{overflow-x:visible}
}
@media(max-width:720px){
  .course-theme-maths .math-formula-v31{padding:.68rem;border-radius:15px}
  .course-theme-maths .math-formula-v31 table{width:680px!important;min-width:680px!important;font-size:.75rem}
  .course-theme-maths .math-formula-v31 th,.course-theme-maths .math-formula-v31 td{padding:.46rem .5rem}
  .course-theme-maths .math-formula-v31 td.is-math{font-size:.86rem}
  .course-theme-maths .math-formula-v31__head span{font-size:.68rem!important}
}

/* Tableau matriciel dédié aux valeurs remarquables : plus lisible qu'une cellule longue. */
.course-theme-maths .math-formula-v31__matrix-wrap{margin-top:.7rem;padding-top:.65rem;border-top:1px dashed #c7d2fe}
.course-theme-maths .math-formula-v31__matrix-title{margin:0 0 .42rem;color:#4338ca;font-size:.72rem;font-weight:950;text-align:center;text-transform:uppercase;letter-spacing:.06em}
.course-theme-maths .math-formula-v31__matrix-scroll{overflow-x:auto;border:1px solid #dbe4ff;border-radius:12px;background:#fff}
.course-theme-maths .math-formula-v31 table.math-formula-v31__matrix{width:100%;min-width:600px;table-layout:fixed;font-size:.78rem}
.course-theme-maths .math-formula-v31__matrix th,.course-theme-maths .math-formula-v31__matrix td{width:auto!important;padding:.5rem .4rem!important;text-align:center!important;vertical-align:middle!important}
.course-theme-maths .math-formula-v31__matrix thead th{background:#eef2ff;color:#3730a3}
.course-theme-maths .math-formula-v31__matrix tbody th{background:#f8faff;color:#4338ca;font-family:Georgia,'Times New Roman',serif;font-size:.86rem}
.course-theme-maths .math-formula-v31__matrix td{font-family:Georgia,'Times New Roman',serif;font-size:.88rem!important;font-weight:850;color:#111827!important;white-space:nowrap}
@media(max-width:720px){.course-theme-maths .math-formula-v31__matrix-scroll{overflow-x:auto}.course-theme-maths .math-formula-v31 table.math-formula-v31__matrix{width:620px!important;min-width:620px!important}}


/* GoMathy V32 — écritures mathématiques structurées : fractions, binomiaux, vecteurs. */
.course-theme-maths .math-formula-v32__frac{
  display:inline-grid;
  grid-template-rows:auto auto;
  align-items:center;
  justify-items:center;
  vertical-align:middle;
  line-height:1.05;
  margin:0 .12em;
  min-width:1.55em;
}
.course-theme-maths .math-formula-v32__frac>span:first-child{
  width:100%;
  padding:0 .18em .11em;
  border-bottom:1.35px solid currentColor;
  text-align:center;
}
.course-theme-maths .math-formula-v32__frac>span:last-child{
  padding:.11em .18em 0;
  text-align:center;
}
.course-theme-maths .math-formula-v32__binom{
  position:relative;
  display:inline-grid;
  grid-template-rows:auto auto;
  align-items:center;
  justify-items:center;
  vertical-align:middle;
  line-height:1;
  margin:0 .28em;
  padding:0 .18em;
  min-width:1.2em;
}
.course-theme-maths .math-formula-v32__binom::before,
.course-theme-maths .math-formula-v32__binom::after{
  position:absolute;
  top:50%;
  transform:translateY(-52%);
  font-family:Georgia,'Times New Roman',serif;
  font-size:2.1em;
  font-weight:400;
  line-height:1;
}
.course-theme-maths .math-formula-v32__binom::before{content:"(";right:100%}
.course-theme-maths .math-formula-v32__binom::after{content:")";left:100%}
.course-theme-maths .math-formula-v32__binom>span{font-size:.78em;line-height:1.02}
.course-theme-maths .math-formula-v32__vec{
  position:relative;
  display:inline-block;
  padding-top:.14em;
  margin:0 .04em;
  font-style:italic;
}
.course-theme-maths .math-formula-v32__vec::before{
  content:"→";
  position:absolute;
  left:50%;
  top:-.68em;
  transform:translateX(-50%);
  font-size:.68em;
  font-style:normal;
  font-weight:700;
  line-height:1;
}

/* ===== SOURCE: styles/gomathy-maths-formula-layout-v34.css ===== */
/* GoMathy v34 — cartes de formules centrées et régulières dans les cours de maths. */
.course-theme-maths .gomathy-formula-card-v34{
  overflow:visible!important;
}
.course-theme-maths .gomathy-formula-card-v34>p:first-child,
.course-theme-maths .gomathy-formula-card-v34 .math-depth-card__head{
  margin-bottom:.72rem!important;
}
.course-theme-maths .gomathy-formula-grid-v34{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:.55rem;
  width:100%;
  margin:.15rem 0 0;
}
.course-theme-maths .gomathy-formula-chip-v34{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  min-width:0;
  min-height:64px;
  padding:.62rem .72rem;
  border:1px solid color-mix(in srgb,currentColor 14%,transparent);
  border-radius:13px;
  background:rgba(255,255,255,.72);
  text-align:center;
  box-shadow:0 6px 15px -15px rgba(15,23,42,.65);
}
.course-theme-maths .gomathy-formula-chip-v34__formula{
  display:flex;
  width:100%;
  min-width:0;
  align-items:center;
  justify-content:center;
  color:inherit;
  font-family:Georgia,'Times New Roman',serif;
  font-size:.93rem;
  font-weight:800;
  line-height:1.48;
  text-align:center;
  overflow-wrap:normal;
  word-break:normal;
}
.course-theme-maths .gomathy-formula-chip-v34__formula>.math-inline{
  display:inline-flex!important;
  max-width:100%;
  align-items:center;
  justify-content:center;
  flex-wrap:wrap;
  gap:.08rem;
  text-align:center;
}
.course-theme-maths .gomathy-formula-chip-v34__formula .math-inline-fraction{
  margin:.02rem .14rem!important;
  vertical-align:middle!important;
}
.course-theme-maths .gomathy-formula-chip-v34__note{
  width:100%;
  margin-top:.28rem;
  padding-top:.28rem;
  border-top:1px dashed rgba(100,116,139,.22);
  color:#64748b!important;
  font-family:inherit;
  font-size:.69rem;
  font-weight:650;
  line-height:1.35;
  text-align:center;
}
.course-theme-maths .gomathy-formula-chip-v34__note .math-inline{
  color:inherit!important;
}
.course-theme-maths .gomathy-formula-chip-v34--text{
  align-items:flex-start;
  text-align:left;
}
.course-theme-maths .gomathy-formula-chip-v34--text .gomathy-formula-chip-v34__formula{
  justify-content:flex-start;
  font-family:inherit;
  font-size:.82rem;
  font-weight:650;
  text-align:left;
}
/* Une carte étroite passe naturellement sur une seule colonne. */
@container (max-width:460px){
  .course-theme-maths .gomathy-formula-grid-v34{grid-template-columns:1fr}
}
/* Fallback si les container queries ne sont pas disponibles. */
.course-theme-maths .math-depth-card .gomathy-formula-grid-v34{grid-template-columns:1fr}
@media(min-width:1280px){
  .course-theme-maths #math-essential .space-y-3>.gomathy-formula-card-v34 .gomathy-formula-grid-v34{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:720px){
  .course-theme-maths .gomathy-formula-grid-v34{grid-template-columns:1fr;gap:.45rem}
  .course-theme-maths .gomathy-formula-chip-v34{min-height:58px;padding:.54rem .6rem}
  .course-theme-maths .gomathy-formula-chip-v34__formula{font-size:.88rem}
}

/* ===== SOURCE: styles/gomathy-course-ergonomics-v21.css ===== */
/* GoMathy v21 — ergonomie interne des cartes de cours.
   Objectif : aucune sous-carte ne doit comprimer le texte dans une colonne illisible. */

.course-theme-maths .course-unified-body,
.course-theme-maths .course-unified-body *,
.course-theme-pc .course-unified-body,
.course-theme-pc .course-unified-body *{
  box-sizing:border-box;
}

.course-theme-maths .course-unified-body p,
.course-theme-maths .course-unified-body li,
.course-theme-pc .course-unified-body p,
.course-theme-pc .course-unified-body li{
  min-width:0;
  max-width:none;
  word-break:normal;
  overflow-wrap:break-word;
  hyphens:auto;
}

/* Exercices-types : le bug v20 venait d'un deuxième numéro qui occupait la colonne du texte. */
.course-theme-maths .math-web-types-v16 ol{
  display:grid!important;
  grid-template-columns:repeat(auto-fit,minmax(300px,1fr))!important;
  gap:.65rem!important;
  align-items:stretch;
}
.course-theme-maths .math-web-types-v16 li{
  display:grid!important;
  grid-template-columns:28px minmax(0,1fr)!important;
  grid-auto-flow:row;
  gap:.6rem!important;
  align-items:start!important;
  width:100%;
  min-width:0;
  height:auto;
  padding:.7rem .78rem!important;
}
.course-theme-maths .math-web-types-v16 li>span{
  display:none!important;
}
.course-theme-maths .math-web-types-v16 li>p{
  grid-column:2!important;
  grid-row:1!important;
  width:100%!important;
  min-width:0!important;
  max-width:none!important;
  margin:.1rem 0 0!important;
  padding:0!important;
  white-space:normal!important;
  word-break:normal!important;
  overflow-wrap:break-word!important;
  line-height:1.5!important;
}

/* Incontournables : 3 colonnes seulement quand la place réelle le permet. */
.course-theme-maths .math-web-audit-v16 ul{
  grid-template-columns:repeat(auto-fit,minmax(285px,1fr))!important;
  gap:.55rem!important;
}
.course-theme-maths .math-web-audit-v16 li{
  min-width:0!important;
  height:auto!important;
}

/* Blocs d'approfondissement : largeur de lecture minimale plutôt que 2 colonnes forcées. */
.course-theme-maths .math-depth-grid,
.course-theme-maths .math-depth-methods,
.course-theme-maths .math-depth-mastery{
  grid-template-columns:repeat(auto-fit,minmax(290px,1fr))!important;
}
.course-theme-maths .math-depth-card,
.course-theme-maths .math-depth-methods>article,
.course-theme-maths .math-depth-mastery>article,
.course-theme-maths .math-depth-mastery>div{
  min-width:0!important;
  width:100%!important;
}
.course-theme-maths .math-depth-methods li>p,
.course-theme-maths .math-depth-card li,
.course-theme-maths .math-depth-mastery li{
  min-width:0!important;
  width:auto!important;
  max-width:none!important;
}

/* Objectifs et vocabulaire : densité adaptative. */
.course-theme-maths .math-depth-objectives ul{
  grid-template-columns:repeat(auto-fit,minmax(270px,1fr))!important;
}
.course-theme-maths .course-unified-wide-card .gomathy-course-vocab-grid{
  grid-template-columns:repeat(auto-fit,minmax(245px,1fr))!important;
}

/* Les grilles de méthodes ne conservent jamais une petite colonne vide. */
.course-theme-maths .course-unified-body .gomathy-course-method-list{
  grid-template-columns:repeat(auto-fit,minmax(300px,1fr))!important;
}
.course-theme-maths .course-unified-body .gomathy-course-method-list li>p{
  min-width:0!important;
  width:100%!important;
}

/* Cartes de tableaux et visuels : proportions stables, pas d'étirement d'une colonne voisine. */
.course-theme-maths .math-visual-v17__grid{
  grid-template-columns:repeat(auto-fit,minmax(310px,1fr))!important;
  align-items:start!important;
}
.course-theme-maths .math-visual-v17__graphic,
.course-theme-maths .math-visual-v17__table{
  min-width:0!important;
  height:auto!important;
}

/* Les tableaux de formules restent dans leur carte ; seul le tableau défile si nécessaire. */
.course-theme-maths .math-formula-v20{
  min-width:0!important;
  max-width:100%!important;
}
.course-theme-maths .math-formula-v20__wrap{
  max-width:100%!important;
}

@media(max-width:760px){
  .course-theme-maths .math-web-types-v16 ol,
  .course-theme-maths .math-web-audit-v16 ul,
  .course-theme-maths .math-depth-grid,
  .course-theme-maths .math-depth-methods,
  .course-theme-maths .math-depth-mastery,
  .course-theme-maths .math-depth-objectives ul,
  .course-theme-maths .course-unified-wide-card .gomathy-course-vocab-grid,
  .course-theme-maths .course-unified-body .gomathy-course-method-list,
  .course-theme-maths .math-visual-v17__grid{
    grid-template-columns:1fr!important;
  }
}

/* ===== SOURCE: styles/gomathy-course-flow-v22.css ===== */
/* GoMathy v22 — flux vertical intelligent des grandes cartes de cours.
   Corrige les grands vides créés par deux colonnes dont les hauteurs diffèrent fortement. */

.course-unified-shell .course-pair-stacked-v22{
  grid-template-columns:minmax(0,1fr)!important;
  align-items:start!important;
}
.course-unified-shell .course-pair-stacked-v22>*{
  width:100%!important;
  min-width:0!important;
  max-width:none!important;
  align-self:start!important;
}

/* Quand Partie 1 passe en pleine largeur, son texte et son visuel exploitent la largeur au lieu de former une longue colonne. */
@media(min-width:1050px){
  .course-theme-maths .course-unified-main.course-pair-stacked-v22 .course-unified-intro-has-visual{
    display:grid!important;
    grid-template-columns:minmax(300px,.72fr) minmax(480px,1.28fr)!important;
    grid-template-rows:auto auto!important;
    column-gap:18px!important;
    row-gap:10px!important;
  }
  .course-theme-maths .course-unified-main.course-pair-stacked-v22 .course-unified-intro-has-visual>.svt-section-heading{
    grid-column:1/-1!important;
  }
  .course-theme-maths .course-unified-main.course-pair-stacked-v22 .course-unified-intro-has-visual>.course-unified-body{
    grid-column:1!important;
    grid-row:2!important;
    margin-top:0!important;
  }
  .course-theme-maths .course-unified-main.course-pair-stacked-v22 .course-unified-intro-has-visual>.course-unified-intro-visual{
    grid-column:2!important;
    grid-row:2!important;
    margin-top:0!important;
    align-self:start!important;
  }
  .course-theme-maths .course-unified-main.course-pair-stacked-v22 .course-unified-intro-visual>.math-visual-v17{
    height:auto!important;
  }
  .course-theme-maths .course-unified-main.course-pair-stacked-v22 .course-unified-intro-visual .math-visual-v17__grid{
    grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;
    align-items:start!important;
  }
}

/* Une paire Exemple/Entraînement ou Bilan/Pièges trop déséquilibrée passe elle aussi en flux vertical. */
.course-unified-shell .course-pair-stacked-v22.course-unified-example-grid .course-unified-body,
.course-unified-shell .course-pair-stacked-v22.course-unified-final-grid .course-unified-body{
  max-width:none!important;
}

/* Petit repère visuel en développement/QA ; pas d'effet décoratif visible pour l'utilisateur. */
.course-unified-shell [data-course-flow-v22="stacked"]{contain:layout style}

@media(max-width:1049px){
  .course-unified-shell .course-pair-stacked-v22,
  .course-theme-maths .course-unified-main.course-pair-stacked-v22 .course-unified-intro-has-visual{
    display:grid!important;
    grid-template-columns:1fr!important;
  }
  .course-theme-maths .course-unified-main.course-pair-stacked-v22 .course-unified-intro-has-visual>*{
    grid-column:1!important;
    grid-row:auto!important;
  }
  .course-theme-maths .course-unified-main.course-pair-stacked-v22 .course-unified-intro-visual{
    margin-top:12px!important;
  }
}

/* ===== SOURCE: styles/gomathy-graph-focus-v18.css ===== */
/* GoMathy v18 — Atelier graphique Focus : le repère avant les commandes. */
#gomathy-graph-studio-root{
  --gmx-rail:62px;
  --gmx-drawer:292px;
  --gmx-toolbar:48px;
}
#gomathy-graph-studio-root>div{position:relative}
#gomathy-graph-studio-root .gmx-graph-rail{
  position:relative;z-index:64;display:flex;flex:0 0 var(--gmx-rail);width:var(--gmx-rail);height:100%;
  flex-direction:column;justify-content:space-between;align-items:center;padding:.55rem .38rem;
  border-right:1px solid #e2e8f0;background:rgba(255,255,255,.98);box-shadow:4px 0 18px -18px rgba(15,23,42,.55)
}
.gmx-graph-rail__modes,.gmx-graph-rail__bottom{display:flex;width:100%;flex-direction:column;gap:.35rem}
.gmx-graph-rail__button{display:flex;width:100%;min-height:54px;flex-direction:column;align-items:center;justify-content:center;gap:.15rem;border:1px solid transparent;border-radius:13px;background:transparent;color:#64748b;padding:.3rem .16rem;font-size:.54rem;font-weight:850;line-height:1.05;cursor:pointer;transition:.15s ease}
.gmx-graph-rail__button:hover{border-color:#cbd5e1;background:#f8fafc;color:#0f172a}
.gmx-graph-rail__button.is-active{border-color:#a5f3fc;background:#ecfeff;color:#155e75;box-shadow:0 6px 16px -15px rgba(8,145,178,.8)}
.gmx-graph-rail__icon{display:block;font-size:1.25rem;font-weight:950;line-height:1}
#gmx-graph-fullscreen{border-color:#dbeafe;background:#eff6ff;color:#1d4ed8}
#gmx-graph-fullscreen.is-active{border-color:#86efac;background:#ecfdf5;color:#047857}

/* Le tiroir flotte sur le repère : il n'en réduit jamais la largeur. */
#gomathy-graph-studio-root #graph-left-panel{
  position:absolute!important;z-index:60;left:calc(var(--gmx-rail) + .55rem);top:.55rem;bottom:.55rem;
  width:min(var(--gmx-drawer),calc(100vw - var(--gmx-rail) - 1.4rem))!important;max-width:var(--gmx-drawer)!important;height:auto!important;
  border:1px solid #cbd5e1!important;border-radius:18px!important;background:rgba(255,255,255,.985)!important;
  box-shadow:0 20px 55px -22px rgba(15,23,42,.36)!important;overflow:hidden!important
}
#gomathy-graph-studio-root #graph-left-panel.hidden{display:none!important}
#gomathy-graph-studio-root #graph-left-panel>div:first-child{padding:.55rem .65rem!important;background:#fff!important}
#gomathy-graph-studio-root #graph-left-panel>div:first-child p:first-child{font-size:.63rem!important}
#gomathy-graph-studio-root #graph-left-panel>div:first-child p:nth-child(2){display:none!important}
#gomathy-graph-studio-root #graph-left-panel>div:nth-child(2){padding:.45rem!important}
#gomathy-graph-studio-root #graph-toggle-left-panel-inline{padding:.35rem .5rem!important;font-size:.62rem!important}

/* Les anciens onglets prennent de la place pour rien : la rail les remplace. */
#gomathy-graph-studio-root .gmx-graph-workspaces{display:none!important}
#gomathy-graph-studio-root .gmx-graph-context{margin:.42rem .5rem!important;padding:.5rem .58rem!important;border-radius:12px!important}
#gomathy-graph-studio-root .gmx-graph-context__eyebrow{display:none!important}
#gomathy-graph-studio-root .gmx-graph-context__title{margin:0!important;font-size:.76rem!important}
#gomathy-graph-studio-root .gmx-graph-context__hint{display:none!important}
#gomathy-graph-studio-root .gmx-graph-context__actions{gap:.25rem!important}
#gomathy-graph-studio-root .gmx-graph-context__actions button{padding:.3rem .45rem!important;font-size:.58rem!important}

/* Les cartes du tiroir deviennent des contrôles compacts. */
#gomathy-graph-studio-root [data-gmx-workspace-card]{margin:.38rem!important;padding:.58rem!important;border-radius:12px!important}
#gomathy-graph-studio-root [data-gmx-workspace-card] p.mb-2{margin-bottom:.35rem!important;font-size:.63rem!important}
#gomathy-graph-studio-root [data-gmx-workspace-card] label{font-size:.66rem!important}
#gomathy-graph-studio-root [data-gmx-workspace-card] input,
#gomathy-graph-studio-root [data-gmx-workspace-card] select{min-height:32px!important;padding:.34rem .45rem!important;font-size:.72rem!important}
#gomathy-graph-studio-root [data-gmx-workspace-card] button{min-height:31px!important;padding:.34rem .48rem!important;font-size:.66rem!important}
#gomathy-graph-studio-root #geometric-objects-list>div{padding:.36rem .45rem!important}
#gomathy-graph-studio-root #geometric-objects-list button{min-height:28px!important}
#gomathy-graph-studio-root #graph-function-list{max-height:132px;overflow:auto}

/* Barre supérieure : uniquement l'essentiel. */
#gomathy-graph-studio-root main>div:first-child{min-height:var(--gmx-toolbar);padding:.4rem .65rem!important}
#gomathy-graph-studio-root main>div:first-child>div{min-height:34px}
#gomathy-graph-studio-root .gmx-graph-toolbar-primary{gap:.28rem!important;flex-wrap:nowrap!important}
#gomathy-graph-studio-root .gmx-graph-toolbar-primary>button,
#gomathy-graph-studio-root .gmx-graph-menu>summary{padding:.38rem .58rem!important;font-size:.64rem!important;white-space:nowrap}
#gomathy-graph-studio-root #graph-project-status{display:none!important}
#gomathy-graph-studio-root #graph-project-name{display:none!important}

/* Menus secondaires flottants. */
#gomathy-graph-studio-root .gmx-graph-menu__panel{max-height:min(72vh,600px);overflow:auto;width:min(310px,86vw)!important}
#gomathy-graph-studio-root #gmx-graph-max-panel{margin:0!important;border:0!important;background:transparent!important;padding:0!important;box-shadow:none!important}
#gomathy-graph-studio-root #gmx-graph-max-panel>summary{display:none!important}
#gomathy-graph-studio-root .gmx-graph-max-content{padding:0!important}
#gomathy-graph-studio-root .gmx-graph-max-grid{grid-template-columns:1fr!important;margin-top:0!important}
#gomathy-graph-studio-root .gmx-graph-mission{margin-top:.45rem!important}

/* Le repère occupe tout le reste de la surface. */
#gomathy-graph-studio-root main{min-width:0!important;flex:1 1 auto!important}
#gomathy-graph-studio-root canvas{width:100%!important;height:100%!important;display:block!important}

/* Vrai plein écran navigateur + repli CSS de secours. */
#gomathy-graph-studio-root:fullscreen,
#gomathy-graph-studio-root.gmx-focus-fallback{
  position:fixed!important;inset:0!important;top:0!important;bottom:0!important;width:100vw!important;height:100vh!important;z-index:9999!important;background:#f8fafc!important
}
#gomathy-graph-studio-root:fullscreen .gmx-graph-rail,
#gomathy-graph-studio-root.gmx-focus-fallback .gmx-graph-rail{padding-top:.4rem;padding-bottom:.4rem}
#gomathy-graph-studio-root:fullscreen main>div:first-child,
#gomathy-graph-studio-root.gmx-focus-fallback main>div:first-child{background:rgba(255,255,255,.94)!important;backdrop-filter:blur(10px)}
body:has(#gomathy-graph-studio-root.gmx-focus-fallback){overflow:hidden!important}

/* Petit écran : on conserve la feuille mobile existante et une rail horizontale. */
@media(max-width:900px){
  #gomathy-graph-studio-root{--gmx-rail:0px}
  #gomathy-graph-studio-root .gmx-graph-rail{position:absolute;left:50%;bottom:.55rem;top:auto;transform:translateX(-50%);z-index:78;width:min(96vw,560px);height:auto;flex-direction:row;padding:.3rem;border:1px solid #cbd5e1;border-radius:17px;box-shadow:0 15px 45px rgba(15,23,42,.2)}
  .gmx-graph-rail__modes,.gmx-graph-rail__bottom{flex-direction:row;gap:.2rem}
  .gmx-graph-rail__modes{flex:1}.gmx-graph-rail__bottom{width:auto}
  .gmx-graph-rail__button{min-height:43px;min-width:44px;padding:.2rem .28rem}
  .gmx-graph-rail__button span:last-child{display:none}
  .gmx-graph-rail__icon{font-size:1rem}
  #gomathy-graph-studio-root #graph-left-panel{left:.5rem!important;right:.5rem!important;top:auto!important;bottom:4.3rem!important;width:auto!important;max-width:none!important;height:min(70vh,620px)!important}
  #gomathy-graph-studio-root .gmx-graph-open-tools{display:none!important}
  #gomathy-graph-studio-root .gmx-graph-backdrop{display:none!important}
  #gomathy-graph-studio-root main{padding-bottom:3.9rem}
}
@media(prefers-reduced-motion:reduce){.gmx-graph-rail__button{transition:none}}
#gomathy-graph-studio-root .gmx-graph-native-toggle{display:none!important}
#gomathy-graph-studio-root:fullscreen,
#gomathy-graph-studio-root.gmx-focus-fallback{max-width:none!important;margin:0!important;transform:none!important}
#gomathy-graph-studio-root .gmx-graph-reading-legacy{display:none!important}

/* ===== SOURCE: styles/gomathy-graph-geometry-v24.css ===== */
/* GoMathy v24 — Géométrie : construire d'abord, régler ensuite. */
#gomathy-graph-studio-root[data-gmx-workspace="geometry"] #graph-left-panel{
  --gmx-geometry-accent:#0f766e;
}
#gomathy-graph-studio-root .gmx-geometry-palette{
  display:grid;gap:.55rem;margin:.15rem 0 .55rem;
}
#gomathy-graph-studio-root .gmx-geometry-palette__primary{
  display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.35rem;
}
#gomathy-graph-studio-root [data-gmx-geometry-tool]{
  display:flex;min-width:0;min-height:58px;flex-direction:column;align-items:center;justify-content:center;gap:.18rem;
  border:1px solid #dbe4ea;border-radius:12px;background:#fff;color:#475569;padding:.35rem .2rem;
  font:inherit;cursor:pointer;transition:border-color .14s ease,background .14s ease,color .14s ease,transform .14s ease,box-shadow .14s ease;
}
#gomathy-graph-studio-root [data-gmx-geometry-tool]>span{font-size:1.15rem;line-height:1;font-weight:950}
#gomathy-graph-studio-root [data-gmx-geometry-tool]>b{max-width:100%;font-size:.61rem;line-height:1.12;font-weight:900;white-space:normal;text-align:center}
#gomathy-graph-studio-root [data-gmx-geometry-tool]:hover{border-color:#99f6e4;background:#f0fdfa;color:#115e59;transform:translateY(-1px)}
#gomathy-graph-studio-root [data-gmx-geometry-tool].is-active{border-color:#2dd4bf;background:#ccfbf1;color:#115e59;box-shadow:0 7px 18px -15px rgba(13,148,136,.75)}
#gomathy-graph-studio-root .gmx-geometry-guide{
  display:grid;grid-template-columns:auto minmax(0,1fr);gap:.35rem .55rem;align-items:start;
  border:1px solid #bae6fd;border-radius:11px;background:#f0f9ff;padding:.5rem .58rem;color:#334155;
}
#gomathy-graph-studio-root .gmx-geometry-guide strong{color:#0c4a6e;font-size:.68rem;white-space:nowrap}
#gomathy-graph-studio-root .gmx-geometry-guide span{font-size:.64rem;line-height:1.35}
#gomathy-graph-studio-root .gmx-geometry-more,
#gomathy-graph-studio-root .gmx-geometry-precise,
#gomathy-graph-studio-root .gmx-geometry-objects{
  border:1px solid #e2e8f0;border-radius:11px;background:#fff;overflow:hidden;
}
#gomathy-graph-studio-root .gmx-geometry-more>summary,
#gomathy-graph-studio-root .gmx-geometry-precise>summary,
#gomathy-graph-studio-root .gmx-geometry-objects>summary{
  display:flex;align-items:center;justify-content:space-between;gap:.4rem;min-height:36px;padding:.42rem .55rem;
  cursor:pointer;list-style:none;color:#334155;font-size:.66rem;font-weight:900;
}
#gomathy-graph-studio-root .gmx-geometry-more>summary::-webkit-details-marker,
#gomathy-graph-studio-root .gmx-geometry-precise>summary::-webkit-details-marker,
#gomathy-graph-studio-root .gmx-geometry-objects>summary::-webkit-details-marker{display:none}
#gomathy-graph-studio-root .gmx-geometry-more>summary::after,
#gomathy-graph-studio-root .gmx-geometry-precise>summary::after,
#gomathy-graph-studio-root .gmx-geometry-objects>summary::after{content:"+";color:#64748b;font-size:.86rem}
#gomathy-graph-studio-root .gmx-geometry-more[open]>summary::after,
#gomathy-graph-studio-root .gmx-geometry-precise[open]>summary::after,
#gomathy-graph-studio-root .gmx-geometry-objects[open]>summary::after{content:"−"}
#gomathy-graph-studio-root .gmx-geometry-more__grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.35rem;padding:0 .5rem .5rem}
#gomathy-graph-studio-root .gmx-geometry-more__grid [data-gmx-geometry-tool]{min-height:48px}
#gomathy-graph-studio-root .gmx-geometry-precise__body,
#gomathy-graph-studio-root .gmx-geometry-objects__body{padding:0 .45rem .45rem}
#gomathy-graph-studio-root .gmx-geometry-precise__body>.rounded-md,
#gomathy-graph-studio-root .gmx-geometry-objects__body>.rounded-md{margin:0!important;border:0!important;background:#f8fafc!important;padding:.5rem!important}
#gomathy-graph-studio-root .gmx-geometry-legacy-type,
#gomathy-graph-studio-root .gmx-geometry-legacy-options{display:none!important}
#gomathy-graph-studio-root .gmx-geometry-precise .text-\[10px\].font-black.uppercase{display:none!important}
#gomathy-graph-studio-root #geometry-action-status{margin-top:.45rem!important;border:0!important;background:#ecfeff!important;color:#155e75!important;font-size:.62rem!important;line-height:1.35!important;padding:.42rem .5rem!important}
#gomathy-graph-studio-root .gmx-geometry-objects #geometric-objects-list{max-height:200px;overflow:auto;padding-right:.1rem}
#gomathy-graph-studio-root .gmx-geometry-objects #geometric-objects-list>div{border:1px solid #e2e8f0!important;border-radius:9px!important;background:#fff!important;margin:.24rem 0!important}
#gomathy-graph-studio-root #gmx-geometry-object-count{display:inline-grid;place-items:center;min-width:22px;height:20px;border-radius:999px;background:#f1f5f9;color:#475569;padding:0 .35rem;font-size:.58rem}

/* Le mode géométrie garde le repère prioritaire : le tiroir reste fin. */
#gomathy-graph-studio-root[data-gmx-workspace="geometry"] #graph-left-panel{width:min(300px,calc(100vw - var(--gmx-rail) - 1.4rem))!important;max-width:300px!important}
#gomathy-graph-studio-root[data-gmx-workspace="geometry"] #graph-left-panel>div:nth-child(2){padding:.4rem!important}
#gomathy-graph-studio-root[data-gmx-workspace="geometry"] [data-gmx-workspace-card="geometry"]{margin:.28rem!important;padding:.45rem!important}
#gomathy-graph-studio-root[data-gmx-workspace="geometry"] .gmx-graph-context{margin:.3rem .4rem!important;padding:.38rem .5rem!important}

@media(max-width:900px){
  #gomathy-graph-studio-root[data-gmx-workspace="geometry"] #graph-left-panel{left:.4rem!important;right:.4rem!important;width:auto!important;max-width:none!important}
  #gomathy-graph-studio-root .gmx-geometry-palette__primary{grid-template-columns:repeat(3,minmax(0,1fr))}
  #gomathy-graph-studio-root [data-gmx-geometry-tool]{min-height:52px}
}
@media(prefers-reduced-motion:reduce){#gomathy-graph-studio-root [data-gmx-geometry-tool]{transition:none}}
/* v24.1 — le tiroir Géométrie épouse son contenu au lieu d'afficher une grande zone blanche. */
@media(min-width:901px){
  #gomathy-graph-studio-root[data-gmx-workspace="geometry"] #graph-left-panel{
    bottom:auto!important;height:auto!important;max-height:calc(100% - 1.1rem)!important;
  }
  #gomathy-graph-studio-root[data-gmx-workspace="geometry"] .gmx-graph-context{display:none!important}
}

/* ===== SOURCE: styles/gomathy-graph-objects-v26.css ===== */
/* GoMathy v26 — édition contextuelle des objets géométriques. */
#gomathy-graph-studio-root .gmx-geometry-objects__body>.rounded-md{
  padding:.42rem!important;background:#f8fafc!important;overflow:hidden!important;
}
#gomathy-graph-studio-root .gmx-geometry-objects #geometric-objects-list{
  display:block;max-height:none!important;overflow:visible!important;padding:0!important;min-width:0!important;
}
#gomathy-graph-studio-root .gmx-object-list-compact{
  display:grid;gap:.28rem;max-height:156px;overflow-y:auto;overflow-x:hidden;padding-right:.15rem;scrollbar-width:thin;
}
#gomathy-graph-studio-root .gmx-object-item{
  display:grid;grid-template-columns:32px minmax(0,1fr) 24px 28px;gap:.35rem;align-items:center;
  min-width:0;padding:.38rem .42rem;border:1px solid #e2e8f0;border-radius:10px;background:#fff;cursor:pointer;
  transition:border-color .14s ease,background .14s ease,box-shadow .14s ease;
}
#gomathy-graph-studio-root .gmx-object-item:hover{border-color:#99f6e4;background:#f8fffe}
#gomathy-graph-studio-root .gmx-object-item.is-selected{border-color:#2dd4bf;background:#ecfeff;box-shadow:0 0 0 2px rgba(45,212,191,.1)}
#gomathy-graph-studio-root .gmx-object-item__icon{
  display:grid;place-items:center;width:30px;height:30px;border:1px solid color-mix(in srgb,var(--gmx-object-color,#0f766e) 30%,#fff);
  border-radius:9px;background:color-mix(in srgb,var(--gmx-object-color,#0f766e) 10%,#fff);color:var(--gmx-object-color,#0f766e);font-size:1rem;font-weight:950;
}
#gomathy-graph-studio-root .gmx-object-item__copy{display:block;min-width:0}
#gomathy-graph-studio-root .gmx-object-item__copy strong,#gomathy-graph-studio-root .gmx-object-item__copy small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#gomathy-graph-studio-root .gmx-object-item__copy strong{color:#0f172a;font-size:.68rem;font-weight:950}
#gomathy-graph-studio-root .gmx-object-item__copy small{margin-top:.08rem;color:#64748b;font-size:.57rem;font-weight:700}
#gomathy-graph-studio-root .gmx-object-item>input[type="checkbox"]{width:16px;height:16px;margin:auto;accent-color:#0f766e}
#gomathy-graph-studio-root .gmx-object-item>button{display:grid;place-items:center;width:27px;height:27px;border:1px solid #e2e8f0;border-radius:8px;background:#fff;font-size:.68rem;cursor:pointer}

#gomathy-graph-studio-root .gmx-object-editor{
  min-width:0;margin-top:.42rem;border:1px solid #bae6fd;border-radius:12px;background:#fff;overflow:hidden;
}
#gomathy-graph-studio-root .gmx-object-editor__title{display:flex;align-items:center;justify-content:space-between;gap:.45rem;padding:.48rem .55rem;border-bottom:1px solid #e0f2fe;background:#f0f9ff}
#gomathy-graph-studio-root .gmx-object-editor__title span{color:#0c4a6e;font-size:.66rem;font-weight:950}
#gomathy-graph-studio-root .gmx-object-editor__title small{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#64748b;font-size:.54rem;font-weight:750}
#gomathy-graph-studio-root .gmx-object-editor__grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.42rem;padding:.5rem}
#gomathy-graph-studio-root .gmx-object-field{display:grid;min-width:0;gap:.18rem;color:#64748b;font-size:.55rem;font-weight:850}
#gomathy-graph-studio-root .gmx-object-field--wide{grid-column:1/-1}
#gomathy-graph-studio-root .gmx-object-field input,#gomathy-graph-studio-root .gmx-object-field select{
  box-sizing:border-box;width:100%;min-width:0;height:32px;border:1px solid #cbd5e1;border-radius:8px;background:#fff;padding:.28rem .42rem;color:#334155;font-size:.66rem;font-weight:800;
}
#gomathy-graph-studio-root .gmx-object-color{display:grid;grid-template-columns:24px minmax(0,1fr) 34px;gap:.35rem;align-items:center;min-width:0}
#gomathy-graph-studio-root .gmx-object-color__swatch{width:22px;height:22px;border:2px solid #fff;border-radius:999px;background:var(--gmx-object-color);box-shadow:0 0 0 1px #cbd5e1}
#gomathy-graph-studio-root .gmx-object-color input[type="color"]{width:34px!important;padding:2px!important;cursor:pointer}

#gomathy-graph-studio-root .gmx-object-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.32rem;padding:.45rem .5rem;border-top:1px solid #f1f5f9;background:#fafcff}
#gomathy-graph-studio-root .gmx-object-actions button,#gomathy-graph-studio-root .gmx-object-action-toggle{
  display:flex;min-width:0;min-height:31px;align-items:center;justify-content:center;gap:.25rem;border:1px solid #dbe4ea;border-radius:8px;background:#fff;padding:.28rem .4rem;color:#475569;font-size:.58rem;font-weight:900;cursor:pointer;text-align:center;
}
#gomathy-graph-studio-root .gmx-object-action-toggle input{width:14px;height:14px;accent-color:#0f766e}
#gomathy-graph-studio-root .gmx-object-actions .is-danger{border-color:#fecaca;color:#b91c1c;background:#fffafa}
#gomathy-graph-studio-root .gmx-object-actions button:disabled{opacity:.45;cursor:not-allowed}

#gomathy-graph-studio-root .gmx-object-more,#gomathy-graph-studio-root .gmx-object-points{margin:.1rem .5rem .45rem;border:1px solid #e2e8f0;border-radius:9px;background:#fff;overflow:hidden}
#gomathy-graph-studio-root .gmx-object-more>summary,#gomathy-graph-studio-root .gmx-object-points>summary{display:flex;align-items:center;justify-content:space-between;gap:.4rem;padding:.38rem .45rem;cursor:pointer;list-style:none;color:#475569;font-size:.58rem;font-weight:900}
#gomathy-graph-studio-root .gmx-object-more>summary::-webkit-details-marker,#gomathy-graph-studio-root .gmx-object-points>summary::-webkit-details-marker{display:none}
#gomathy-graph-studio-root .gmx-object-more>div{display:grid;grid-template-columns:1fr 1fr;gap:.3rem;padding:0 .4rem .4rem}
#gomathy-graph-studio-root .gmx-object-more button{min-height:29px;border:1px solid #e2e8f0;border-radius:8px;background:#f8fafc;color:#475569;font-size:.56rem;font-weight:850;cursor:pointer}
#gomathy-graph-studio-root .gmx-object-points__body{display:grid;gap:.35rem;padding:0 .4rem .4rem}
#gomathy-graph-studio-root .gmx-object-points>summary span{display:grid;place-items:center;min-width:19px;height:18px;border-radius:999px;background:#f1f5f9;font-size:.52rem}
#gomathy-graph-studio-root .gmx-object-child-point{border:1px solid #e2e8f0;border-radius:9px;background:#f8fafc;padding:.38rem}
#gomathy-graph-studio-root .gmx-object-child-point.is-locked{opacity:.72}
#gomathy-graph-studio-root .gmx-object-child-point__head{display:grid;grid-template-columns:12px minmax(0,1fr) 28px;gap:.3rem;align-items:center;margin-bottom:.32rem}
#gomathy-graph-studio-root .gmx-object-child-point__head strong{font-size:.58rem;color:#334155;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#gomathy-graph-studio-root .gmx-object-child-point__head button{width:27px;height:25px;border:1px solid #e2e8f0;border-radius:7px;background:#fff;font-size:.62rem}
#gomathy-graph-studio-root .gmx-object-child-point__dot{width:10px;height:10px;border-radius:999px;background:var(--gmx-object-color)}
#gomathy-graph-studio-root .gmx-object-child-point__grid{display:grid;grid-template-columns:.72fr 1fr 1fr;gap:.28rem}
#gomathy-graph-studio-root .gmx-object-child-point__grid label{display:grid;gap:.12rem;color:#64748b;font-size:.5rem;font-weight:800}
#gomathy-graph-studio-root .gmx-object-child-point__grid input{box-sizing:border-box;width:100%;min-width:0;height:29px;border:1px solid #cbd5e1;border-radius:7px;background:#fff;padding:.2rem .3rem;color:#334155;font-size:.6rem;font-weight:800}
#gomathy-graph-studio-root .gmx-object-empty{display:grid;place-items:center;gap:.2rem;padding:.9rem .45rem;text-align:center;color:#64748b}
#gomathy-graph-studio-root .gmx-object-empty>span{font-size:1.3rem;color:#94a3b8}
#gomathy-graph-studio-root .gmx-object-empty p{margin:0;font-size:.66rem;font-weight:900;color:#475569}
#gomathy-graph-studio-root .gmx-object-empty small{max-width:220px;font-size:.55rem;line-height:1.4}

/* Les anciens contrôles de ligne ne doivent plus générer de barres horizontales. */
#gomathy-graph-studio-root .gmx-geometry-objects__body{min-width:0!important;overflow:hidden!important}
#gomathy-graph-studio-root .gmx-geometry-objects__body>.rounded-md{min-width:0!important;width:100%!important}

@media(max-width:900px){
  #gomathy-graph-studio-root .gmx-object-list-compact{max-height:132px}
  #gomathy-graph-studio-root .gmx-object-editor__grid{grid-template-columns:1fr 1fr}
}

/* ===== SOURCE: styles/gomathy-graph-selection-v27.css ===== */
/* GoMathy v27 — sélection d'objet explicite et suppression sûre. */
#gomathy-graph-studio-root .gmx-object-item{position:relative}
#gomathy-graph-studio-root .gmx-object-item.is-selected{
  border:2px solid #f59e0b!important;background:linear-gradient(90deg,#fffbeb,#fff)!important;
  box-shadow:0 0 0 3px rgba(245,158,11,.14),0 9px 20px -18px rgba(180,83,9,.55)!important;
}
#gomathy-graph-studio-root .gmx-object-item.is-selected::before{
  content:"";position:absolute;left:-2px;top:7px;bottom:7px;width:4px;border-radius:999px;background:#f59e0b;
}
#gomathy-graph-studio-root .gmx-object-item.is-selected .gmx-object-item__icon{
  border-color:#f59e0b!important;background:#fffbeb!important;box-shadow:0 0 0 2px rgba(245,158,11,.12)
}
#gomathy-graph-studio-root .gmx-object-selected-banner{
  display:grid;grid-template-columns:auto minmax(0,1fr);gap:.08rem .42rem;align-items:center;
  padding:.55rem .62rem;border-bottom:1px solid #fde68a;background:linear-gradient(135deg,#fffbeb,#fff7ed);
}
#gomathy-graph-studio-root .gmx-object-selected-banner span{
  grid-column:1/-1;color:#b45309;font-size:.56rem;font-weight:950;letter-spacing:.07em;text-transform:uppercase
}
#gomathy-graph-studio-root .gmx-object-selected-banner strong{
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#78350f;font-size:.72rem;font-weight:950
}
#gomathy-graph-studio-root .gmx-object-selected-banner small{
  grid-column:1/-1;color:#92400e;font-size:.53rem;font-weight:700;line-height:1.35
}
#gomathy-graph-studio-root .gmx-object-actions .gmx-object-delete-wide{
  grid-column:1/-1;min-height:34px!important;border:1px solid #fca5a5!important;background:#fff1f2!important;color:#b91c1c!important;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:.61rem!important
}
#gomathy-graph-studio-root .gmx-object-actions .gmx-object-delete-wide:hover{background:#ffe4e6!important;border-color:#f87171!important}

/* ===== SOURCE: styles/gomathy-graph-objects-v28.css ===== */
/* GoMathy v28 — édition d'objet en mode compact plein volet. */
#gomathy-graph-studio-root .gmx-object-list-head{display:grid;grid-template-columns:auto auto 1fr;align-items:center;gap:.35rem;padding:.2rem .15rem .45rem;color:#64748b}
#gomathy-graph-studio-root .gmx-object-list-head span{font-size:.62rem;font-weight:950;text-transform:uppercase;letter-spacing:.06em;color:#334155}
#gomathy-graph-studio-root .gmx-object-list-head strong{display:grid;place-items:center;min-width:21px;height:20px;border-radius:999px;background:#e2e8f0;color:#475569;font-size:.56rem}
#gomathy-graph-studio-root .gmx-object-list-head small{text-align:right;font-size:.51rem;font-weight:750}
#gomathy-graph-studio-root .gmx-object-list-compact{max-height:250px!important;gap:.22rem!important}
#gomathy-graph-studio-root .gmx-object-item{grid-template-columns:30px minmax(0,1fr) 22px 26px!important;padding:.32rem .36rem!important;border-radius:9px!important}
#gomathy-graph-studio-root .gmx-object-item__icon{width:28px!important;height:28px!important;border-radius:8px!important}
#gomathy-graph-studio-root .gmx-object-item__copy strong{font-size:.66rem!important}
#gomathy-graph-studio-root .gmx-object-item__copy small{font-size:.53rem!important}

#gomathy-graph-studio-root .gmx-object-editor--focus{margin-top:0!important;border:0!important;border-radius:0!important;background:transparent!important;overflow:visible!important}
#gomathy-graph-studio-root .gmx-object-editor-topbar{display:grid;grid-template-columns:auto minmax(0,1fr) 30px;gap:.45rem;align-items:center;margin-bottom:.45rem;padding:.25rem .1rem .5rem;border-bottom:1px solid #e2e8f0}
#gomathy-graph-studio-root .gmx-object-back{display:flex;align-items:center;gap:.28rem;height:30px;border:1px solid #cbd5e1;border-radius:9px;background:#fff;padding:0 .48rem;color:#475569;font-size:.57rem;font-weight:900;cursor:pointer}
#gomathy-graph-studio-root .gmx-object-back span{display:grid;place-items:center;min-width:18px;height:18px;border-radius:999px;background:#f1f5f9;font-size:.5rem}
#gomathy-graph-studio-root .gmx-object-editor-id{display:grid;grid-template-columns:30px minmax(0,1fr);gap:.38rem;align-items:center;min-width:0}
#gomathy-graph-studio-root .gmx-object-editor-id__icon{display:grid;place-items:center;width:30px;height:30px;border:1px solid color-mix(in srgb,var(--gmx-object-color) 32%,#fff);border-radius:9px;background:color-mix(in srgb,var(--gmx-object-color) 10%,#fff);color:var(--gmx-object-color);font-size:.9rem;font-weight:950}
#gomathy-graph-studio-root .gmx-object-editor-id small,#gomathy-graph-studio-root .gmx-object-editor-id strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#gomathy-graph-studio-root .gmx-object-editor-id small{color:#b45309;font-size:.48rem;font-weight:950;text-transform:uppercase;letter-spacing:.05em}
#gomathy-graph-studio-root .gmx-object-editor-id strong{color:#0f172a;font-size:.7rem;font-weight:950}
#gomathy-graph-studio-root .gmx-object-delete-icon{display:grid;place-items:center;width:30px;height:30px;border:1px solid #fecaca;border-radius:9px;background:#fff7f7;color:#b91c1c;cursor:pointer}
#gomathy-graph-studio-root .gmx-object-delete-icon:disabled{opacity:.4;cursor:not-allowed}

#gomathy-graph-studio-root .gmx-object-editor-quick{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.25rem;margin-bottom:.5rem}
#gomathy-graph-studio-root .gmx-object-editor-quick>button,#gomathy-graph-studio-root .gmx-object-quick-toggle{display:grid;place-items:center;gap:.05rem;min-width:0;height:44px;border:1px solid #dbe4ea;border-radius:9px;background:#fff;color:#475569;cursor:pointer}
#gomathy-graph-studio-root .gmx-object-editor-quick>button span,#gomathy-graph-studio-root .gmx-object-quick-toggle span{font-size:.78rem;line-height:1}
#gomathy-graph-studio-root .gmx-object-editor-quick small{font-size:.46rem;font-weight:900;white-space:nowrap}
#gomathy-graph-studio-root .gmx-object-quick-toggle{position:relative}.gmx-object-quick-toggle input{position:absolute;opacity:0;pointer-events:none}
#gomathy-graph-studio-root .gmx-object-quick-toggle:has(input:checked){border-color:#5eead4;background:#f0fdfa;color:#0f766e}
#gomathy-graph-studio-root .gmx-object-editor-quick .is-danger{border-color:#fecaca;color:#b91c1c;background:#fffafa}
#gomathy-graph-studio-root .gmx-object-editor-quick button:disabled{opacity:.4;cursor:not-allowed}

#gomathy-graph-studio-root .gmx-object-editor-main{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.4rem;padding:.5rem;border:1px solid #e2e8f0;border-radius:11px;background:#fff}
#gomathy-graph-studio-root .gmx-object-editor-main .gmx-object-field{gap:.12rem!important;font-size:.5rem!important}
#gomathy-graph-studio-root .gmx-object-editor-main .gmx-object-field input,#gomathy-graph-studio-root .gmx-object-editor-main .gmx-object-field select{height:30px!important;font-size:.62rem!important}
#gomathy-graph-studio-root .gmx-object-coordinates{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr;gap:.4rem}
#gomathy-graph-studio-root .gmx-object-palette{display:flex;align-items:center;gap:.25rem;flex-wrap:wrap;min-height:28px}
#gomathy-graph-studio-root .gmx-object-palette [data-role="obj-color-chip"]{width:20px!important;height:20px!important;padding:0!important;border:2px solid #fff!important;border-radius:999px!important;box-shadow:0 0 0 1px #cbd5e1;cursor:pointer}
#gomathy-graph-studio-root .gmx-object-palette [data-role="obj-color-chip"].ring-2{box-shadow:0 0 0 2px #0f172a!important}
#gomathy-graph-studio-root .gmx-object-custom-color{position:relative;display:grid;place-items:center;width:22px;height:22px;border:1px dashed #94a3b8;border-radius:999px;background:#fff;color:#64748b;font-size:.7rem;font-weight:950;cursor:pointer;overflow:hidden}
#gomathy-graph-studio-root .gmx-object-custom-color input{position:absolute;inset:0;width:100%!important;height:100%!important;opacity:0;cursor:pointer}
#gomathy-graph-studio-root .gmx-object-points,#gomathy-graph-studio-root .gmx-object-more{margin:.42rem 0 0!important}
#gomathy-graph-studio-root .gmx-object-points>summary,#gomathy-graph-studio-root .gmx-object-more>summary{padding:.45rem .52rem!important;font-size:.55rem!important}
#gomathy-graph-studio-root .gmx-object-selected-banner,#gomathy-graph-studio-root .gmx-object-editor__title,#gomathy-graph-studio-root .gmx-object-actions{display:none!important}

@media(max-width:900px){
 #gomathy-graph-studio-root .gmx-object-editor-quick{grid-template-columns:repeat(4,minmax(58px,1fr))}
 #gomathy-graph-studio-root .gmx-object-list-compact{max-height:210px!important}
}

/* v28.1 — suppression des titres/hints redondants de l'ancien panneau. */
#gomathy-graph-studio-root .gmx-geometry-objects__body>.rounded-md>p:first-child,
#gomathy-graph-studio-root .gmx-geometry-objects__body>.rounded-md>p:last-child{display:none!important}
#gomathy-graph-studio-root .gmx-geometry-objects__body>.rounded-md{padding:.3rem!important;background:transparent!important}
#gomathy-graph-studio-root .gmx-object-editor-topbar{grid-template-columns:auto minmax(0,1fr) 30px!important}
#gomathy-graph-studio-root .gmx-object-editor-id{display:block!important;min-width:0}
#gomathy-graph-studio-root .gmx-object-editor-id>div{min-width:0}
#gomathy-graph-studio-root .gmx-object-editor-id strong{font-size:.7rem!important}

/* ===== SOURCE: styles/gomathy-graph-selection-v29.css ===== */
/* GoMathy v29 — sélection/désélection explicite des objets géométriques */
#gomathy-graph-studio-root .gmx-object-selection-state{
  display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:.4rem;
  margin:0 0 .48rem;padding:.42rem .48rem;border:1px solid #f59e0b;border-radius:10px;
  background:linear-gradient(135deg,#fffbeb,#fff7ed);box-shadow:0 5px 14px -12px rgba(180,83,9,.5)
}
#gomathy-graph-studio-root .gmx-object-selection-state>span{padding:.18rem .34rem;border-radius:999px;background:#f59e0b;color:#fff;font-size:.48rem;font-weight:950;text-transform:uppercase;letter-spacing:.04em}
#gomathy-graph-studio-root .gmx-object-selection-state>strong{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#92400e;font-size:.64rem;font-weight:950}
#gomathy-graph-studio-root .gmx-object-selection-state>button{border:1px solid #fcd34d;border-radius:8px;background:#fff;padding:.28rem .38rem;color:#92400e;font-size:.5rem;font-weight:900;cursor:pointer}
#gomathy-graph-studio-root .gmx-object-selection-state>button:hover{background:#fef3c7}
#gomathy-graph-studio-root .gmx-object-parent-link{display:flex;width:100%;align-items:center;justify-content:center;margin:0 0 .42rem;border:1px solid #c4b5fd;border-radius:9px;background:#f5f3ff;padding:.35rem .45rem;color:#6d28d9;font-size:.55rem;font-weight:900;cursor:pointer}
#gomathy-graph-studio-root .gmx-object-parent-link:hover{background:#ede9fe}
#gomathy-graph-studio-root .gmx-object-child-point__head{grid-template-columns:14px minmax(0,1fr) 26px 26px!important}
#gomathy-graph-studio-root .gmx-object-child-point__head [data-role="obj-select-exact"]{display:grid;place-items:center;width:25px;height:25px;border:1px solid #f59e0b;border-radius:7px;background:#fffbeb;color:#b45309;font-size:.7rem;font-weight:950;cursor:pointer}
#gomathy-graph-studio-root .gmx-object-editor--focus.is-selected-exact{outline:0}
#gomathy-graph-studio-root canvas{touch-action:none}
@media(max-width:720px){
 #gomathy-graph-studio-root .gmx-object-selection-state{grid-template-columns:auto minmax(0,1fr);}
 #gomathy-graph-studio-root .gmx-object-selection-state>button{grid-column:1/-1;width:100%}
}

/* ===== SOURCE: styles/gomathy-graph-selection-v30.css ===== */
/* GoMathy v30 — sélection géométrique fine : point > tracé > surface. */
#gomathy-graph-studio-root .gmx-object-edges{margin:.42rem 0 0;border:1px solid #dbeafe;border-radius:10px;background:#f8fbff;overflow:hidden}
#gomathy-graph-studio-root .gmx-object-edges>summary{display:flex;align-items:center;justify-content:space-between;gap:.4rem;padding:.45rem .52rem;cursor:pointer;list-style:none;color:#334155;font-size:.55rem;font-weight:900}
#gomathy-graph-studio-root .gmx-object-edges>summary::-webkit-details-marker{display:none}
#gomathy-graph-studio-root .gmx-object-edges>summary span{display:grid;place-items:center;min-width:19px;height:18px;border-radius:999px;background:#dbeafe;color:#1d4ed8;font-size:.48rem}
#gomathy-graph-studio-root .gmx-object-edges__body{display:grid;gap:.28rem;padding:.42rem;border-top:1px solid #dbeafe;background:#fff}
#gomathy-graph-studio-root .gmx-object-edge-select{display:grid;grid-template-columns:24px minmax(0,1fr) auto;align-items:center;gap:.38rem;width:100%;border:1px solid #e2e8f0;border-radius:9px;background:#fff;padding:.35rem .4rem;color:#334155;text-align:left;cursor:pointer}
#gomathy-graph-studio-root .gmx-object-edge-select:hover{border-color:#f59e0b;background:#fffbeb;color:#92400e}
#gomathy-graph-studio-root .gmx-object-edge-select>span{display:grid;place-items:center;width:24px;height:24px;border-radius:7px;background:#eff6ff;color:#2563eb;font-weight:950}
#gomathy-graph-studio-root .gmx-object-edge-select>strong{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.58rem;font-weight:900}
#gomathy-graph-studio-root .gmx-object-edge-select>small{font-size:.46rem;font-weight:850;color:#64748b}
#gomathy-graph-studio-root .gmx-object-editor[data-editor-for] .gmx-object-parent-link+ .gmx-object-editor-topbar{margin-top:.15rem}

/* ===== SOURCE: styles/gomathy-graph-focus-v59lock-v70.css ===== */
/* GoMathy v18 — Atelier graphique Focus : le repère avant les commandes. */
#gomathy-graph-studio-root{
  --gmx-rail:62px;
  --gmx-drawer:292px;
  --gmx-toolbar:48px;
}
#gomathy-graph-studio-root>div{position:relative}
#gomathy-graph-studio-root .gmx-graph-rail{
  position:relative;z-index:64;display:flex;flex:0 0 var(--gmx-rail);width:var(--gmx-rail);height:100%;
  flex-direction:column;justify-content:space-between;align-items:center;padding:.55rem .38rem;
  border-right:1px solid #e2e8f0;background:rgba(255,255,255,.98);box-shadow:4px 0 18px -18px rgba(15,23,42,.55)
}
.gmx-graph-rail__modes,.gmx-graph-rail__bottom{display:flex;width:100%;flex-direction:column;gap:.35rem}
.gmx-graph-rail__button{display:flex;width:100%;min-height:54px;flex-direction:column;align-items:center;justify-content:center;gap:.15rem;border:1px solid transparent;border-radius:13px;background:transparent;color:#64748b;padding:.3rem .16rem;font-size:.54rem;font-weight:850;line-height:1.05;cursor:pointer;transition:.15s ease}
.gmx-graph-rail__button:hover{border-color:#cbd5e1;background:#f8fafc;color:#0f172a}
.gmx-graph-rail__button.is-active{border-color:#a5f3fc;background:#ecfeff;color:#155e75;box-shadow:0 6px 16px -15px rgba(8,145,178,.8)}
.gmx-graph-rail__icon{display:block;font-size:1.25rem;font-weight:950;line-height:1}
#gmx-graph-fullscreen{border-color:#dbeafe;background:#eff6ff;color:#1d4ed8}
#gmx-graph-fullscreen.is-active{border-color:#86efac;background:#ecfdf5;color:#047857}

/* Le tiroir flotte sur le repère : il n'en réduit jamais la largeur. */
#gomathy-graph-studio-root #graph-left-panel{
  position:absolute!important;z-index:60;left:calc(var(--gmx-rail) + .55rem);top:.55rem;bottom:.55rem;
  width:min(var(--gmx-drawer),calc(100vw - var(--gmx-rail) - 1.4rem))!important;max-width:var(--gmx-drawer)!important;height:auto!important;
  border:1px solid #cbd5e1!important;border-radius:18px!important;background:rgba(255,255,255,.985)!important;
  box-shadow:0 20px 55px -22px rgba(15,23,42,.36)!important;overflow:hidden!important
}
#gomathy-graph-studio-root #graph-left-panel.hidden{display:none!important}
#gomathy-graph-studio-root #graph-left-panel>div:first-child{padding:.55rem .65rem!important;background:#fff!important}
#gomathy-graph-studio-root #graph-left-panel>div:first-child p:first-child{font-size:.63rem!important}
#gomathy-graph-studio-root #graph-left-panel>div:first-child p:nth-child(2){display:none!important}
#gomathy-graph-studio-root #graph-left-panel>div:nth-child(2){padding:.45rem!important}
#gomathy-graph-studio-root #graph-toggle-left-panel-inline{padding:.35rem .5rem!important;font-size:.62rem!important}

/* Les anciens onglets prennent de la place pour rien : la rail les remplace. */
#gomathy-graph-studio-root .gmx-graph-workspaces{display:none!important}
#gomathy-graph-studio-root .gmx-graph-context{margin:.42rem .5rem!important;padding:.5rem .58rem!important;border-radius:12px!important}
#gomathy-graph-studio-root .gmx-graph-context__eyebrow{display:none!important}
#gomathy-graph-studio-root .gmx-graph-context__title{margin:0!important;font-size:.76rem!important}
#gomathy-graph-studio-root .gmx-graph-context__hint{display:none!important}
#gomathy-graph-studio-root .gmx-graph-context__actions{gap:.25rem!important}
#gomathy-graph-studio-root .gmx-graph-context__actions button{padding:.3rem .45rem!important;font-size:.58rem!important}

/* Les cartes du tiroir deviennent des contrôles compacts. */
#gomathy-graph-studio-root [data-gmx-workspace-card]{margin:.38rem!important;padding:.58rem!important;border-radius:12px!important}
#gomathy-graph-studio-root [data-gmx-workspace-card] p.mb-2{margin-bottom:.35rem!important;font-size:.63rem!important}
#gomathy-graph-studio-root [data-gmx-workspace-card] label{font-size:.66rem!important}
#gomathy-graph-studio-root [data-gmx-workspace-card] input,
#gomathy-graph-studio-root [data-gmx-workspace-card] select{min-height:32px!important;padding:.34rem .45rem!important;font-size:.72rem!important}
#gomathy-graph-studio-root [data-gmx-workspace-card] button{min-height:31px!important;padding:.34rem .48rem!important;font-size:.66rem!important}
#gomathy-graph-studio-root #geometric-objects-list>div{padding:.36rem .45rem!important}
#gomathy-graph-studio-root #geometric-objects-list button{min-height:28px!important}
#gomathy-graph-studio-root #graph-function-list{max-height:132px;overflow:auto}

/* Barre supérieure : uniquement l'essentiel. */
#gomathy-graph-studio-root main>div:first-child{min-height:var(--gmx-toolbar);padding:.4rem .65rem!important}
#gomathy-graph-studio-root main>div:first-child>div{min-height:34px}
#gomathy-graph-studio-root .gmx-graph-toolbar-primary{gap:.28rem!important;flex-wrap:nowrap!important}
#gomathy-graph-studio-root .gmx-graph-toolbar-primary>button,
#gomathy-graph-studio-root .gmx-graph-menu>summary{padding:.38rem .58rem!important;font-size:.64rem!important;white-space:nowrap}
#gomathy-graph-studio-root #graph-project-status{display:none!important}
#gomathy-graph-studio-root #graph-project-name{display:none!important}

/* Menus secondaires flottants. */
#gomathy-graph-studio-root .gmx-graph-menu__panel{max-height:min(72vh,600px);overflow:auto;width:min(310px,86vw)!important}
#gomathy-graph-studio-root #gmx-graph-max-panel{margin:0!important;border:0!important;background:transparent!important;padding:0!important;box-shadow:none!important}
#gomathy-graph-studio-root #gmx-graph-max-panel>summary{display:none!important}
#gomathy-graph-studio-root .gmx-graph-max-content{padding:0!important}
#gomathy-graph-studio-root .gmx-graph-max-grid{grid-template-columns:1fr!important;margin-top:0!important}
#gomathy-graph-studio-root .gmx-graph-mission{margin-top:.45rem!important}

/* Le repère occupe tout le reste de la surface. */
#gomathy-graph-studio-root main{min-width:0!important;flex:1 1 auto!important}
#gomathy-graph-studio-root canvas{width:100%!important;height:100%!important;display:block!important}

/* Vrai plein écran navigateur + repli CSS de secours. */
#gomathy-graph-studio-root:fullscreen,
#gomathy-graph-studio-root.gmx-focus-fallback{
  position:fixed!important;inset:0!important;top:0!important;bottom:0!important;width:100vw!important;height:100vh!important;z-index:9999!important;background:#f8fafc!important
}
#gomathy-graph-studio-root:fullscreen .gmx-graph-rail,
#gomathy-graph-studio-root.gmx-focus-fallback .gmx-graph-rail{padding-top:.4rem;padding-bottom:.4rem}
#gomathy-graph-studio-root:fullscreen main>div:first-child,
#gomathy-graph-studio-root.gmx-focus-fallback main>div:first-child{background:rgba(255,255,255,.94)!important;backdrop-filter:blur(10px)}
body:has(#gomathy-graph-studio-root.gmx-focus-fallback){overflow:hidden!important}

/* Petit écran : on conserve la feuille mobile existante et une rail horizontale. */
@media(max-width:900px){
  #gomathy-graph-studio-root{--gmx-rail:0px}
  #gomathy-graph-studio-root .gmx-graph-rail{position:absolute;left:50%;bottom:.55rem;top:auto;transform:translateX(-50%);z-index:78;width:min(96vw,560px);height:auto;flex-direction:row;padding:.3rem;border:1px solid #cbd5e1;border-radius:17px;box-shadow:0 15px 45px rgba(15,23,42,.2)}
  .gmx-graph-rail__modes,.gmx-graph-rail__bottom{flex-direction:row;gap:.2rem}
  .gmx-graph-rail__modes{flex:1}.gmx-graph-rail__bottom{width:auto}
  .gmx-graph-rail__button{min-height:43px;min-width:44px;padding:.2rem .28rem}
  .gmx-graph-rail__button span:last-child{display:none}
  .gmx-graph-rail__icon{font-size:1rem}
  #gomathy-graph-studio-root #graph-left-panel{left:.5rem!important;right:.5rem!important;top:auto!important;bottom:4.3rem!important;width:auto!important;max-width:none!important;height:min(70vh,620px)!important}
  #gomathy-graph-studio-root .gmx-graph-open-tools{display:none!important}
  #gomathy-graph-studio-root .gmx-graph-backdrop{display:none!important}
  #gomathy-graph-studio-root main{padding-bottom:3.9rem}
}
@media(prefers-reduced-motion:reduce){.gmx-graph-rail__button{transition:none}}
#gomathy-graph-studio-root .gmx-graph-native-toggle{display:none!important}
#gomathy-graph-studio-root:fullscreen,
#gomathy-graph-studio-root.gmx-focus-fallback{max-width:none!important;margin:0!important;transform:none!important}
#gomathy-graph-studio-root .gmx-graph-reading-legacy{display:none!important}

/* ===== SOURCE: styles/gomathy-graph-geometry-v59lock-v70.css ===== */
/* GoMathy v24 — Géométrie : construire d'abord, régler ensuite. */
#gomathy-graph-studio-root[data-gmx-workspace="geometry"] #graph-left-panel{
  --gmx-geometry-accent:#0f766e;
}
#gomathy-graph-studio-root .gmx-geometry-palette{
  display:grid;gap:.55rem;margin:.15rem 0 .55rem;
}
#gomathy-graph-studio-root .gmx-geometry-palette__primary{
  display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.35rem;
}
#gomathy-graph-studio-root [data-gmx-geometry-tool]{
  display:flex;min-width:0;min-height:58px;flex-direction:column;align-items:center;justify-content:center;gap:.18rem;
  border:1px solid #dbe4ea;border-radius:12px;background:#fff;color:#475569;padding:.35rem .2rem;
  font:inherit;cursor:pointer;transition:border-color .14s ease,background .14s ease,color .14s ease,transform .14s ease,box-shadow .14s ease;
}
#gomathy-graph-studio-root [data-gmx-geometry-tool]>span{font-size:1.15rem;line-height:1;font-weight:950}
#gomathy-graph-studio-root [data-gmx-geometry-tool]>b{max-width:100%;font-size:.61rem;line-height:1.12;font-weight:900;white-space:normal;text-align:center}
#gomathy-graph-studio-root [data-gmx-geometry-tool]:hover{border-color:#99f6e4;background:#f0fdfa;color:#115e59;transform:translateY(-1px)}
#gomathy-graph-studio-root [data-gmx-geometry-tool].is-active{border-color:#2dd4bf;background:#ccfbf1;color:#115e59;box-shadow:0 7px 18px -15px rgba(13,148,136,.75)}
#gomathy-graph-studio-root .gmx-geometry-guide{
  display:grid;grid-template-columns:auto minmax(0,1fr);gap:.35rem .55rem;align-items:start;
  border:1px solid #bae6fd;border-radius:11px;background:#f0f9ff;padding:.5rem .58rem;color:#334155;
}
#gomathy-graph-studio-root .gmx-geometry-guide strong{color:#0c4a6e;font-size:.68rem;white-space:nowrap}
#gomathy-graph-studio-root .gmx-geometry-guide span{font-size:.64rem;line-height:1.35}
#gomathy-graph-studio-root .gmx-geometry-more,
#gomathy-graph-studio-root .gmx-geometry-precise,
#gomathy-graph-studio-root .gmx-geometry-objects{
  border:1px solid #e2e8f0;border-radius:11px;background:#fff;overflow:hidden;
}
#gomathy-graph-studio-root .gmx-geometry-more>summary,
#gomathy-graph-studio-root .gmx-geometry-precise>summary,
#gomathy-graph-studio-root .gmx-geometry-objects>summary{
  display:flex;align-items:center;justify-content:space-between;gap:.4rem;min-height:36px;padding:.42rem .55rem;
  cursor:pointer;list-style:none;color:#334155;font-size:.66rem;font-weight:900;
}
#gomathy-graph-studio-root .gmx-geometry-more>summary::-webkit-details-marker,
#gomathy-graph-studio-root .gmx-geometry-precise>summary::-webkit-details-marker,
#gomathy-graph-studio-root .gmx-geometry-objects>summary::-webkit-details-marker{display:none}
#gomathy-graph-studio-root .gmx-geometry-more>summary::after,
#gomathy-graph-studio-root .gmx-geometry-precise>summary::after,
#gomathy-graph-studio-root .gmx-geometry-objects>summary::after{content:"+";color:#64748b;font-size:.86rem}
#gomathy-graph-studio-root .gmx-geometry-more[open]>summary::after,
#gomathy-graph-studio-root .gmx-geometry-precise[open]>summary::after,
#gomathy-graph-studio-root .gmx-geometry-objects[open]>summary::after{content:"−"}
#gomathy-graph-studio-root .gmx-geometry-more__grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.35rem;padding:0 .5rem .5rem}
#gomathy-graph-studio-root .gmx-geometry-more__grid [data-gmx-geometry-tool]{min-height:48px}
#gomathy-graph-studio-root .gmx-geometry-precise__body,
#gomathy-graph-studio-root .gmx-geometry-objects__body{padding:0 .45rem .45rem}
#gomathy-graph-studio-root .gmx-geometry-precise__body>.rounded-md,
#gomathy-graph-studio-root .gmx-geometry-objects__body>.rounded-md{margin:0!important;border:0!important;background:#f8fafc!important;padding:.5rem!important}
#gomathy-graph-studio-root .gmx-geometry-legacy-type,
#gomathy-graph-studio-root .gmx-geometry-legacy-options{display:none!important}
#gomathy-graph-studio-root .gmx-geometry-precise .text-\[10px\].font-black.uppercase{display:none!important}
#gomathy-graph-studio-root #geometry-action-status{margin-top:.45rem!important;border:0!important;background:#ecfeff!important;color:#155e75!important;font-size:.62rem!important;line-height:1.35!important;padding:.42rem .5rem!important}
#gomathy-graph-studio-root .gmx-geometry-objects #geometric-objects-list{max-height:200px;overflow:auto;padding-right:.1rem}
#gomathy-graph-studio-root .gmx-geometry-objects #geometric-objects-list>div{border:1px solid #e2e8f0!important;border-radius:9px!important;background:#fff!important;margin:.24rem 0!important}
#gomathy-graph-studio-root #gmx-geometry-object-count{display:inline-grid;place-items:center;min-width:22px;height:20px;border-radius:999px;background:#f1f5f9;color:#475569;padding:0 .35rem;font-size:.58rem}

/* Le mode géométrie garde le repère prioritaire : le tiroir reste fin. */
#gomathy-graph-studio-root[data-gmx-workspace="geometry"] #graph-left-panel{width:min(300px,calc(100vw - var(--gmx-rail) - 1.4rem))!important;max-width:300px!important}
#gomathy-graph-studio-root[data-gmx-workspace="geometry"] #graph-left-panel>div:nth-child(2){padding:.4rem!important}
#gomathy-graph-studio-root[data-gmx-workspace="geometry"] [data-gmx-workspace-card="geometry"]{margin:.28rem!important;padding:.45rem!important}
#gomathy-graph-studio-root[data-gmx-workspace="geometry"] .gmx-graph-context{margin:.3rem .4rem!important;padding:.38rem .5rem!important}

@media(max-width:900px){
  #gomathy-graph-studio-root[data-gmx-workspace="geometry"] #graph-left-panel{left:.4rem!important;right:.4rem!important;width:auto!important;max-width:none!important}
  #gomathy-graph-studio-root .gmx-geometry-palette__primary{grid-template-columns:repeat(3,minmax(0,1fr))}
  #gomathy-graph-studio-root [data-gmx-geometry-tool]{min-height:52px}
}
@media(prefers-reduced-motion:reduce){#gomathy-graph-studio-root [data-gmx-geometry-tool]{transition:none}}
/* v24.1 — le tiroir Géométrie épouse son contenu au lieu d'afficher une grande zone blanche. */
@media(min-width:901px){
  #gomathy-graph-studio-root[data-gmx-workspace="geometry"] #graph-left-panel{
    bottom:auto!important;height:auto!important;max-height:calc(100% - 1.1rem)!important;
  }
  #gomathy-graph-studio-root[data-gmx-workspace="geometry"] .gmx-graph-context{display:none!important}
}

/* ===== SOURCE: styles/gomathy-graph-objects-v26-v59lock-v70.css ===== */
/* GoMathy v26 — édition contextuelle des objets géométriques. */
#gomathy-graph-studio-root .gmx-geometry-objects__body>.rounded-md{
  padding:.42rem!important;background:#f8fafc!important;overflow:hidden!important;
}
#gomathy-graph-studio-root .gmx-geometry-objects #geometric-objects-list{
  display:block;max-height:none!important;overflow:visible!important;padding:0!important;min-width:0!important;
}
#gomathy-graph-studio-root .gmx-object-list-compact{
  display:grid;gap:.28rem;max-height:156px;overflow-y:auto;overflow-x:hidden;padding-right:.15rem;scrollbar-width:thin;
}
#gomathy-graph-studio-root .gmx-object-item{
  display:grid;grid-template-columns:32px minmax(0,1fr) 24px 28px;gap:.35rem;align-items:center;
  min-width:0;padding:.38rem .42rem;border:1px solid #e2e8f0;border-radius:10px;background:#fff;cursor:pointer;
  transition:border-color .14s ease,background .14s ease,box-shadow .14s ease;
}
#gomathy-graph-studio-root .gmx-object-item:hover{border-color:#99f6e4;background:#f8fffe}
#gomathy-graph-studio-root .gmx-object-item.is-selected{border-color:#2dd4bf;background:#ecfeff;box-shadow:0 0 0 2px rgba(45,212,191,.1)}
#gomathy-graph-studio-root .gmx-object-item__icon{
  display:grid;place-items:center;width:30px;height:30px;border:1px solid color-mix(in srgb,var(--gmx-object-color,#0f766e) 30%,#fff);
  border-radius:9px;background:color-mix(in srgb,var(--gmx-object-color,#0f766e) 10%,#fff);color:var(--gmx-object-color,#0f766e);font-size:1rem;font-weight:950;
}
#gomathy-graph-studio-root .gmx-object-item__copy{display:block;min-width:0}
#gomathy-graph-studio-root .gmx-object-item__copy strong,#gomathy-graph-studio-root .gmx-object-item__copy small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#gomathy-graph-studio-root .gmx-object-item__copy strong{color:#0f172a;font-size:.68rem;font-weight:950}
#gomathy-graph-studio-root .gmx-object-item__copy small{margin-top:.08rem;color:#64748b;font-size:.57rem;font-weight:700}
#gomathy-graph-studio-root .gmx-object-item>input[type="checkbox"]{width:16px;height:16px;margin:auto;accent-color:#0f766e}
#gomathy-graph-studio-root .gmx-object-item>button{display:grid;place-items:center;width:27px;height:27px;border:1px solid #e2e8f0;border-radius:8px;background:#fff;font-size:.68rem;cursor:pointer}

#gomathy-graph-studio-root .gmx-object-editor{
  min-width:0;margin-top:.42rem;border:1px solid #bae6fd;border-radius:12px;background:#fff;overflow:hidden;
}
#gomathy-graph-studio-root .gmx-object-editor__title{display:flex;align-items:center;justify-content:space-between;gap:.45rem;padding:.48rem .55rem;border-bottom:1px solid #e0f2fe;background:#f0f9ff}
#gomathy-graph-studio-root .gmx-object-editor__title span{color:#0c4a6e;font-size:.66rem;font-weight:950}
#gomathy-graph-studio-root .gmx-object-editor__title small{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#64748b;font-size:.54rem;font-weight:750}
#gomathy-graph-studio-root .gmx-object-editor__grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.42rem;padding:.5rem}
#gomathy-graph-studio-root .gmx-object-field{display:grid;min-width:0;gap:.18rem;color:#64748b;font-size:.55rem;font-weight:850}
#gomathy-graph-studio-root .gmx-object-field--wide{grid-column:1/-1}
#gomathy-graph-studio-root .gmx-object-field input,#gomathy-graph-studio-root .gmx-object-field select{
  box-sizing:border-box;width:100%;min-width:0;height:32px;border:1px solid #cbd5e1;border-radius:8px;background:#fff;padding:.28rem .42rem;color:#334155;font-size:.66rem;font-weight:800;
}
#gomathy-graph-studio-root .gmx-object-color{display:grid;grid-template-columns:24px minmax(0,1fr) 34px;gap:.35rem;align-items:center;min-width:0}
#gomathy-graph-studio-root .gmx-object-color__swatch{width:22px;height:22px;border:2px solid #fff;border-radius:999px;background:var(--gmx-object-color);box-shadow:0 0 0 1px #cbd5e1}
#gomathy-graph-studio-root .gmx-object-color input[type="color"]{width:34px!important;padding:2px!important;cursor:pointer}

#gomathy-graph-studio-root .gmx-object-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.32rem;padding:.45rem .5rem;border-top:1px solid #f1f5f9;background:#fafcff}
#gomathy-graph-studio-root .gmx-object-actions button,#gomathy-graph-studio-root .gmx-object-action-toggle{
  display:flex;min-width:0;min-height:31px;align-items:center;justify-content:center;gap:.25rem;border:1px solid #dbe4ea;border-radius:8px;background:#fff;padding:.28rem .4rem;color:#475569;font-size:.58rem;font-weight:900;cursor:pointer;text-align:center;
}
#gomathy-graph-studio-root .gmx-object-action-toggle input{width:14px;height:14px;accent-color:#0f766e}
#gomathy-graph-studio-root .gmx-object-actions .is-danger{border-color:#fecaca;color:#b91c1c;background:#fffafa}
#gomathy-graph-studio-root .gmx-object-actions button:disabled{opacity:.45;cursor:not-allowed}

#gomathy-graph-studio-root .gmx-object-more,#gomathy-graph-studio-root .gmx-object-points{margin:.1rem .5rem .45rem;border:1px solid #e2e8f0;border-radius:9px;background:#fff;overflow:hidden}
#gomathy-graph-studio-root .gmx-object-more>summary,#gomathy-graph-studio-root .gmx-object-points>summary{display:flex;align-items:center;justify-content:space-between;gap:.4rem;padding:.38rem .45rem;cursor:pointer;list-style:none;color:#475569;font-size:.58rem;font-weight:900}
#gomathy-graph-studio-root .gmx-object-more>summary::-webkit-details-marker,#gomathy-graph-studio-root .gmx-object-points>summary::-webkit-details-marker{display:none}
#gomathy-graph-studio-root .gmx-object-more>div{display:grid;grid-template-columns:1fr 1fr;gap:.3rem;padding:0 .4rem .4rem}
#gomathy-graph-studio-root .gmx-object-more button{min-height:29px;border:1px solid #e2e8f0;border-radius:8px;background:#f8fafc;color:#475569;font-size:.56rem;font-weight:850;cursor:pointer}
#gomathy-graph-studio-root .gmx-object-points__body{display:grid;gap:.35rem;padding:0 .4rem .4rem}
#gomathy-graph-studio-root .gmx-object-points>summary span{display:grid;place-items:center;min-width:19px;height:18px;border-radius:999px;background:#f1f5f9;font-size:.52rem}
#gomathy-graph-studio-root .gmx-object-child-point{border:1px solid #e2e8f0;border-radius:9px;background:#f8fafc;padding:.38rem}
#gomathy-graph-studio-root .gmx-object-child-point.is-locked{opacity:.72}
#gomathy-graph-studio-root .gmx-object-child-point__head{display:grid;grid-template-columns:12px minmax(0,1fr) 28px;gap:.3rem;align-items:center;margin-bottom:.32rem}
#gomathy-graph-studio-root .gmx-object-child-point__head strong{font-size:.58rem;color:#334155;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#gomathy-graph-studio-root .gmx-object-child-point__head button{width:27px;height:25px;border:1px solid #e2e8f0;border-radius:7px;background:#fff;font-size:.62rem}
#gomathy-graph-studio-root .gmx-object-child-point__dot{width:10px;height:10px;border-radius:999px;background:var(--gmx-object-color)}
#gomathy-graph-studio-root .gmx-object-child-point__grid{display:grid;grid-template-columns:.72fr 1fr 1fr;gap:.28rem}
#gomathy-graph-studio-root .gmx-object-child-point__grid label{display:grid;gap:.12rem;color:#64748b;font-size:.5rem;font-weight:800}
#gomathy-graph-studio-root .gmx-object-child-point__grid input{box-sizing:border-box;width:100%;min-width:0;height:29px;border:1px solid #cbd5e1;border-radius:7px;background:#fff;padding:.2rem .3rem;color:#334155;font-size:.6rem;font-weight:800}
#gomathy-graph-studio-root .gmx-object-empty{display:grid;place-items:center;gap:.2rem;padding:.9rem .45rem;text-align:center;color:#64748b}
#gomathy-graph-studio-root .gmx-object-empty>span{font-size:1.3rem;color:#94a3b8}
#gomathy-graph-studio-root .gmx-object-empty p{margin:0;font-size:.66rem;font-weight:900;color:#475569}
#gomathy-graph-studio-root .gmx-object-empty small{max-width:220px;font-size:.55rem;line-height:1.4}

/* Les anciens contrôles de ligne ne doivent plus générer de barres horizontales. */
#gomathy-graph-studio-root .gmx-geometry-objects__body{min-width:0!important;overflow:hidden!important}
#gomathy-graph-studio-root .gmx-geometry-objects__body>.rounded-md{min-width:0!important;width:100%!important}

@media(max-width:900px){
  #gomathy-graph-studio-root .gmx-object-list-compact{max-height:132px}
  #gomathy-graph-studio-root .gmx-object-editor__grid{grid-template-columns:1fr 1fr}
}

/* ===== SOURCE: styles/gomathy-graph-objects-v28-v59lock-v70.css ===== */
/* GoMathy v28 — édition d'objet en mode compact plein volet. */
#gomathy-graph-studio-root .gmx-object-list-head{display:grid;grid-template-columns:auto auto 1fr;align-items:center;gap:.35rem;padding:.2rem .15rem .45rem;color:#64748b}
#gomathy-graph-studio-root .gmx-object-list-head span{font-size:.62rem;font-weight:950;text-transform:uppercase;letter-spacing:.06em;color:#334155}
#gomathy-graph-studio-root .gmx-object-list-head strong{display:grid;place-items:center;min-width:21px;height:20px;border-radius:999px;background:#e2e8f0;color:#475569;font-size:.56rem}
#gomathy-graph-studio-root .gmx-object-list-head small{text-align:right;font-size:.51rem;font-weight:750}
#gomathy-graph-studio-root .gmx-object-list-compact{max-height:250px!important;gap:.22rem!important}
#gomathy-graph-studio-root .gmx-object-item{grid-template-columns:30px minmax(0,1fr) 22px 26px!important;padding:.32rem .36rem!important;border-radius:9px!important}
#gomathy-graph-studio-root .gmx-object-item__icon{width:28px!important;height:28px!important;border-radius:8px!important}
#gomathy-graph-studio-root .gmx-object-item__copy strong{font-size:.66rem!important}
#gomathy-graph-studio-root .gmx-object-item__copy small{font-size:.53rem!important}

#gomathy-graph-studio-root .gmx-object-editor--focus{margin-top:0!important;border:0!important;border-radius:0!important;background:transparent!important;overflow:visible!important}
#gomathy-graph-studio-root .gmx-object-editor-topbar{display:grid;grid-template-columns:auto minmax(0,1fr) 30px;gap:.45rem;align-items:center;margin-bottom:.45rem;padding:.25rem .1rem .5rem;border-bottom:1px solid #e2e8f0}
#gomathy-graph-studio-root .gmx-object-back{display:flex;align-items:center;gap:.28rem;height:30px;border:1px solid #cbd5e1;border-radius:9px;background:#fff;padding:0 .48rem;color:#475569;font-size:.57rem;font-weight:900;cursor:pointer}
#gomathy-graph-studio-root .gmx-object-back span{display:grid;place-items:center;min-width:18px;height:18px;border-radius:999px;background:#f1f5f9;font-size:.5rem}
#gomathy-graph-studio-root .gmx-object-editor-id{display:grid;grid-template-columns:30px minmax(0,1fr);gap:.38rem;align-items:center;min-width:0}
#gomathy-graph-studio-root .gmx-object-editor-id__icon{display:grid;place-items:center;width:30px;height:30px;border:1px solid color-mix(in srgb,var(--gmx-object-color) 32%,#fff);border-radius:9px;background:color-mix(in srgb,var(--gmx-object-color) 10%,#fff);color:var(--gmx-object-color);font-size:.9rem;font-weight:950}
#gomathy-graph-studio-root .gmx-object-editor-id small,#gomathy-graph-studio-root .gmx-object-editor-id strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#gomathy-graph-studio-root .gmx-object-editor-id small{color:#b45309;font-size:.48rem;font-weight:950;text-transform:uppercase;letter-spacing:.05em}
#gomathy-graph-studio-root .gmx-object-editor-id strong{color:#0f172a;font-size:.7rem;font-weight:950}
#gomathy-graph-studio-root .gmx-object-delete-icon{display:grid;place-items:center;width:30px;height:30px;border:1px solid #fecaca;border-radius:9px;background:#fff7f7;color:#b91c1c;cursor:pointer}
#gomathy-graph-studio-root .gmx-object-delete-icon:disabled{opacity:.4;cursor:not-allowed}

#gomathy-graph-studio-root .gmx-object-editor-quick{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.25rem;margin-bottom:.5rem}
#gomathy-graph-studio-root .gmx-object-editor-quick>button,#gomathy-graph-studio-root .gmx-object-quick-toggle{display:grid;place-items:center;gap:.05rem;min-width:0;height:44px;border:1px solid #dbe4ea;border-radius:9px;background:#fff;color:#475569;cursor:pointer}
#gomathy-graph-studio-root .gmx-object-editor-quick>button span,#gomathy-graph-studio-root .gmx-object-quick-toggle span{font-size:.78rem;line-height:1}
#gomathy-graph-studio-root .gmx-object-editor-quick small{font-size:.46rem;font-weight:900;white-space:nowrap}
#gomathy-graph-studio-root .gmx-object-quick-toggle{position:relative}.gmx-object-quick-toggle input{position:absolute;opacity:0;pointer-events:none}
#gomathy-graph-studio-root .gmx-object-quick-toggle:has(input:checked){border-color:#5eead4;background:#f0fdfa;color:#0f766e}
#gomathy-graph-studio-root .gmx-object-editor-quick .is-danger{border-color:#fecaca;color:#b91c1c;background:#fffafa}
#gomathy-graph-studio-root .gmx-object-editor-quick button:disabled{opacity:.4;cursor:not-allowed}

#gomathy-graph-studio-root .gmx-object-editor-main{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.4rem;padding:.5rem;border:1px solid #e2e8f0;border-radius:11px;background:#fff}
#gomathy-graph-studio-root .gmx-object-editor-main .gmx-object-field{gap:.12rem!important;font-size:.5rem!important}
#gomathy-graph-studio-root .gmx-object-editor-main .gmx-object-field input,#gomathy-graph-studio-root .gmx-object-editor-main .gmx-object-field select{height:30px!important;font-size:.62rem!important}
#gomathy-graph-studio-root .gmx-object-coordinates{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr;gap:.4rem}
#gomathy-graph-studio-root .gmx-object-palette{display:flex;align-items:center;gap:.25rem;flex-wrap:wrap;min-height:28px}
#gomathy-graph-studio-root .gmx-object-palette [data-role="obj-color-chip"]{width:20px!important;height:20px!important;padding:0!important;border:2px solid #fff!important;border-radius:999px!important;box-shadow:0 0 0 1px #cbd5e1;cursor:pointer}
#gomathy-graph-studio-root .gmx-object-palette [data-role="obj-color-chip"].ring-2{box-shadow:0 0 0 2px #0f172a!important}
#gomathy-graph-studio-root .gmx-object-custom-color{position:relative;display:grid;place-items:center;width:22px;height:22px;border:1px dashed #94a3b8;border-radius:999px;background:#fff;color:#64748b;font-size:.7rem;font-weight:950;cursor:pointer;overflow:hidden}
#gomathy-graph-studio-root .gmx-object-custom-color input{position:absolute;inset:0;width:100%!important;height:100%!important;opacity:0;cursor:pointer}
#gomathy-graph-studio-root .gmx-object-points,#gomathy-graph-studio-root .gmx-object-more{margin:.42rem 0 0!important}
#gomathy-graph-studio-root .gmx-object-points>summary,#gomathy-graph-studio-root .gmx-object-more>summary{padding:.45rem .52rem!important;font-size:.55rem!important}
#gomathy-graph-studio-root .gmx-object-selected-banner,#gomathy-graph-studio-root .gmx-object-editor__title,#gomathy-graph-studio-root .gmx-object-actions{display:none!important}

@media(max-width:900px){
 #gomathy-graph-studio-root .gmx-object-editor-quick{grid-template-columns:repeat(4,minmax(58px,1fr))}
 #gomathy-graph-studio-root .gmx-object-list-compact{max-height:210px!important}
}

/* v28.1 — suppression des titres/hints redondants de l'ancien panneau. */
#gomathy-graph-studio-root .gmx-geometry-objects__body>.rounded-md>p:first-child,
#gomathy-graph-studio-root .gmx-geometry-objects__body>.rounded-md>p:last-child{display:none!important}
#gomathy-graph-studio-root .gmx-geometry-objects__body>.rounded-md{padding:.3rem!important;background:transparent!important}
#gomathy-graph-studio-root .gmx-object-editor-topbar{grid-template-columns:auto minmax(0,1fr) 30px!important}
#gomathy-graph-studio-root .gmx-object-editor-id{display:block!important;min-width:0}
#gomathy-graph-studio-root .gmx-object-editor-id>div{min-width:0}
#gomathy-graph-studio-root .gmx-object-editor-id strong{font-size:.7rem!important}

/* ===== SOURCE: styles/gomathy-graph-selection-v27-v59lock-v70.css ===== */
/* GoMathy v27 — sélection d'objet explicite et suppression sûre. */
#gomathy-graph-studio-root .gmx-object-item{position:relative}
#gomathy-graph-studio-root .gmx-object-item.is-selected{
  border:2px solid #f59e0b!important;background:linear-gradient(90deg,#fffbeb,#fff)!important;
  box-shadow:0 0 0 3px rgba(245,158,11,.14),0 9px 20px -18px rgba(180,83,9,.55)!important;
}
#gomathy-graph-studio-root .gmx-object-item.is-selected::before{
  content:"";position:absolute;left:-2px;top:7px;bottom:7px;width:4px;border-radius:999px;background:#f59e0b;
}
#gomathy-graph-studio-root .gmx-object-item.is-selected .gmx-object-item__icon{
  border-color:#f59e0b!important;background:#fffbeb!important;box-shadow:0 0 0 2px rgba(245,158,11,.12)
}
#gomathy-graph-studio-root .gmx-object-selected-banner{
  display:grid;grid-template-columns:auto minmax(0,1fr);gap:.08rem .42rem;align-items:center;
  padding:.55rem .62rem;border-bottom:1px solid #fde68a;background:linear-gradient(135deg,#fffbeb,#fff7ed);
}
#gomathy-graph-studio-root .gmx-object-selected-banner span{
  grid-column:1/-1;color:#b45309;font-size:.56rem;font-weight:950;letter-spacing:.07em;text-transform:uppercase
}
#gomathy-graph-studio-root .gmx-object-selected-banner strong{
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#78350f;font-size:.72rem;font-weight:950
}
#gomathy-graph-studio-root .gmx-object-selected-banner small{
  grid-column:1/-1;color:#92400e;font-size:.53rem;font-weight:700;line-height:1.35
}
#gomathy-graph-studio-root .gmx-object-actions .gmx-object-delete-wide{
  grid-column:1/-1;min-height:34px!important;border:1px solid #fca5a5!important;background:#fff1f2!important;color:#b91c1c!important;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:.61rem!important
}
#gomathy-graph-studio-root .gmx-object-actions .gmx-object-delete-wide:hover{background:#ffe4e6!important;border-color:#f87171!important}

/* ===== SOURCE: styles/gomathy-graph-selection-v29-v59lock-v70.css ===== */
/* GoMathy v29 — sélection/désélection explicite des objets géométriques */
#gomathy-graph-studio-root .gmx-object-selection-state{
  display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:.4rem;
  margin:0 0 .48rem;padding:.42rem .48rem;border:1px solid #f59e0b;border-radius:10px;
  background:linear-gradient(135deg,#fffbeb,#fff7ed);box-shadow:0 5px 14px -12px rgba(180,83,9,.5)
}
#gomathy-graph-studio-root .gmx-object-selection-state>span{padding:.18rem .34rem;border-radius:999px;background:#f59e0b;color:#fff;font-size:.48rem;font-weight:950;text-transform:uppercase;letter-spacing:.04em}
#gomathy-graph-studio-root .gmx-object-selection-state>strong{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#92400e;font-size:.64rem;font-weight:950}
#gomathy-graph-studio-root .gmx-object-selection-state>button{border:1px solid #fcd34d;border-radius:8px;background:#fff;padding:.28rem .38rem;color:#92400e;font-size:.5rem;font-weight:900;cursor:pointer}
#gomathy-graph-studio-root .gmx-object-selection-state>button:hover{background:#fef3c7}
#gomathy-graph-studio-root .gmx-object-parent-link{display:flex;width:100%;align-items:center;justify-content:center;margin:0 0 .42rem;border:1px solid #c4b5fd;border-radius:9px;background:#f5f3ff;padding:.35rem .45rem;color:#6d28d9;font-size:.55rem;font-weight:900;cursor:pointer}
#gomathy-graph-studio-root .gmx-object-parent-link:hover{background:#ede9fe}
#gomathy-graph-studio-root .gmx-object-child-point__head{grid-template-columns:14px minmax(0,1fr) 26px 26px!important}
#gomathy-graph-studio-root .gmx-object-child-point__head [data-role="obj-select-exact"]{display:grid;place-items:center;width:25px;height:25px;border:1px solid #f59e0b;border-radius:7px;background:#fffbeb;color:#b45309;font-size:.7rem;font-weight:950;cursor:pointer}
#gomathy-graph-studio-root .gmx-object-editor--focus.is-selected-exact{outline:0}
#gomathy-graph-studio-root canvas{touch-action:none}
@media(max-width:720px){
 #gomathy-graph-studio-root .gmx-object-selection-state{grid-template-columns:auto minmax(0,1fr);}
 #gomathy-graph-studio-root .gmx-object-selection-state>button{grid-column:1/-1;width:100%}
}

/* ===== SOURCE: styles/gomathy-graph-selection-v30-v59lock-v70.css ===== */
/* GoMathy v30 — sélection géométrique fine : point > tracé > surface. */
#gomathy-graph-studio-root .gmx-object-edges{margin:.42rem 0 0;border:1px solid #dbeafe;border-radius:10px;background:#f8fbff;overflow:hidden}
#gomathy-graph-studio-root .gmx-object-edges>summary{display:flex;align-items:center;justify-content:space-between;gap:.4rem;padding:.45rem .52rem;cursor:pointer;list-style:none;color:#334155;font-size:.55rem;font-weight:900}
#gomathy-graph-studio-root .gmx-object-edges>summary::-webkit-details-marker{display:none}
#gomathy-graph-studio-root .gmx-object-edges>summary span{display:grid;place-items:center;min-width:19px;height:18px;border-radius:999px;background:#dbeafe;color:#1d4ed8;font-size:.48rem}
#gomathy-graph-studio-root .gmx-object-edges__body{display:grid;gap:.28rem;padding:.42rem;border-top:1px solid #dbeafe;background:#fff}
#gomathy-graph-studio-root .gmx-object-edge-select{display:grid;grid-template-columns:24px minmax(0,1fr) auto;align-items:center;gap:.38rem;width:100%;border:1px solid #e2e8f0;border-radius:9px;background:#fff;padding:.35rem .4rem;color:#334155;text-align:left;cursor:pointer}
#gomathy-graph-studio-root .gmx-object-edge-select:hover{border-color:#f59e0b;background:#fffbeb;color:#92400e}
#gomathy-graph-studio-root .gmx-object-edge-select>span{display:grid;place-items:center;width:24px;height:24px;border-radius:7px;background:#eff6ff;color:#2563eb;font-weight:950}
#gomathy-graph-studio-root .gmx-object-edge-select>strong{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.58rem;font-weight:900}
#gomathy-graph-studio-root .gmx-object-edge-select>small{font-size:.46rem;font-weight:850;color:#64748b}
#gomathy-graph-studio-root .gmx-object-editor[data-editor-for] .gmx-object-parent-link+ .gmx-object-editor-topbar{margin-top:.15rem}

/* ===== SOURCE: styles/gomathy-graph-workspaces-v59lock-v70.css ===== */
/* V70: Atelier graphique - workspace V59 verrouillé */
.gmx-graph-v2 #graph-left-panel {
    max-width: 390px;
}

.gmx-graph-workspaces {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .35rem;
    padding: .55rem;
    border-bottom: 1px solid #e2e8f0;
    background: #f8fafc;
}

.gmx-graph-workspace-button {
    min-height: 42px;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    background: white;
    color: #475569;
    padding: .4rem .35rem;
    font-size: .68rem;
    line-height: 1.15;
    font-weight: 900;
}
.gmx-graph-workspace-button.is-active {
    border-color: #0891b2;
    background: #ecfeff;
    color: #155e75;
    box-shadow: 0 0 0 2px rgba(8,145,178,.08);
}

.gmx-graph-context {
    margin: .55rem .55rem 0;
    border: 1px solid #bae6fd;
    border-radius: 14px;
    background: linear-gradient(135deg,#f0f9ff,#fff);
    padding: .6rem .7rem;
}
.gmx-graph-context__eyebrow {
    font-size: .62rem;
    font-weight: 900;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #0369a1;
}
.gmx-graph-context__title { margin-top: .15rem; font-size: .83rem; font-weight: 900; color: #0f172a; }
.gmx-graph-context__hint { margin-top: .15rem; font-size: .7rem; line-height: 1.35; color: #475569; }

.gmx-graph-v2 [data-gmx-workspace-card][hidden] { display: none !important; }

.gmx-graph-v2 .gmx-graph-toolbar-primary {
    display: flex;
    align-items: center;
    gap: .35rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.gmx-graph-menu { position: relative; }
.gmx-graph-menu > summary {
    list-style: none;
    cursor: pointer;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    background: white;
    color: #334155;
    padding: .5rem .8rem;
    font-size: .72rem;
    font-weight: 900;
}
.gmx-graph-menu > summary::-webkit-details-marker { display: none; }
.gmx-graph-menu__panel {
    position: absolute;
    z-index: 70;
    top: calc(100% + .45rem);
    right: 0;
    width: min(290px, 88vw);
    padding: .5rem;
    border: 1px solid #cbd5e1;
    border-radius: 16px;
    background: white;
    box-shadow: 0 18px 45px rgba(15,23,42,.18);
}
.gmx-graph-menu__panel > * { width: 100%; margin: .2rem 0; border-radius: 12px !important; text-align: left; justify-content: flex-start; }

.gmx-graph-open-tools,
.gmx-graph-close-tools {
    display: none;
}

.gmx-graph-backdrop { display: none; }

.gmx-graph-tour {
    position: absolute;
    z-index: 60;
    left: 50%;
    bottom: 1rem;
    width: min(520px, calc(100% - 2rem));
    transform: translateX(-50%);
    border: 1px solid #bae6fd;
    border-radius: 20px;
    background: rgba(255,255,255,.97);
    padding: .85rem;
    box-shadow: 0 22px 60px rgba(15,23,42,.2);
}
.gmx-graph-tour[hidden] { display:none; }
.gmx-graph-tour__dots { display:flex; gap:.3rem; }
.gmx-graph-tour__dot { width:.45rem; height:.45rem; border-radius:999px; background:#cbd5e1; }
.gmx-graph-tour__dot.is-active { background:#0891b2; }


@media (max-width: 900px) {
    .gmx-graph-v2 #graph-left-panel {
        position: fixed; z-index: 85; left: .5rem; right: .5rem;
        bottom: max(.5rem, env(safe-area-inset-bottom)); top: auto !important;
        width: auto !important; max-width: none; height: min(76vh, 690px);
        border: 1px solid #cbd5e1; border-radius: 24px;
        box-shadow: 0 24px 70px rgba(15,23,42,.28);
        transform: translateY(calc(100% + 2rem)); transition: transform .22s ease;
    }
    .gmx-graph-v2 #graph-left-panel.gmx-sheet-open { transform: translateY(0); }
    .gmx-graph-v2 #graph-left-panel.hidden { display: flex !important; }
    .gmx-graph-backdrop { position: fixed; z-index: 80; inset: 0; background: rgba(15,23,42,.36); }
    .gmx-graph-backdrop.is-open { display:block; }
    .gmx-graph-open-tools {
        position: fixed; z-index: 75; left: 50%; bottom: max(.75rem, env(safe-area-inset-bottom));
        display: inline-flex; transform: translateX(-50%); align-items: center; justify-content: center;
        min-width: 190px; min-height: 48px; border: 1px solid #0e7490; border-radius: 999px;
        background: #0e7490; color: white; padding: .6rem 1rem; font-size: .78rem; font-weight: 900;
        box-shadow: 0 16px 40px rgba(14,116,144,.34);
    }
    .gmx-graph-close-tools { display:inline-flex; }
    .gmx-graph-v2 #graph-toggle-left-panel-inline,
    .gmx-graph-v2 #graph-toggle-left-panel-floating { display:none !important; }
    .gmx-graph-v2 #gomathy-graph-canvas { touch-action:none; }
    .gmx-graph-tour { bottom: 4.7rem; }
}
@media (max-width: 520px) {
    .gmx-graph-workspaces { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .gmx-graph-v2 #graph-left-panel { height:min(82vh,730px); }
}
@media (prefers-reduced-motion: reduce) { .gmx-graph-v2 #graph-left-panel { transition:none; } }
.gmx-graph-context .hidden { display: none !important; }

/* ===== SOURCE: styles/gomathy-proba-sequences-v32.css ===== */
.gmx-ps-tool{width:min(100%,1420px);margin:0 auto;padding:0 .6rem 1rem;color:#0f172a}.gmx-ps-topbar{display:flex;align-items:center;justify-content:space-between;gap:.7rem;margin-bottom:.45rem}.gmx-ps-topbar>button,.gmx-ps-topbar>div>button{border:1px solid #cbd5e1;border-radius:999px;background:#fff;padding:.45rem .75rem;font-size:.72rem;font-weight:900;color:#334155;cursor:pointer}.gmx-ps-topbar>div{display:flex;gap:.4rem}.gmx-ps-shell{border:1px solid #dbeafe;border-radius:24px;background:linear-gradient(135deg,#fff,#f8fbff 58%,#faf5ff);box-shadow:0 18px 38px -34px rgba(15,23,42,.7);overflow:hidden}.gmx-ps-head{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem;padding:1rem 1.15rem .75rem}.gmx-ps-head span{display:block;margin-bottom:.12rem;color:#6d28d9;font-size:.66rem;font-weight:950;letter-spacing:.1em;text-transform:uppercase}.gmx-ps-head h2{margin:0;font-size:1.75rem;line-height:1.05;font-weight:950;color:#0f172a}.gmx-ps-head p{max-width:760px;margin:.35rem 0 0;color:#64748b;font-size:.82rem;line-height:1.42}.gmx-ps-head>b{flex:0 0 auto;border:1px solid #ddd6fe;border-radius:999px;background:#fff;padding:.36rem .62rem;color:#6d28d9;font-size:.65rem;white-space:nowrap}.gmx-ps-tabs{display:flex;gap:.3rem;padding:.25rem 1rem .65rem;overflow-x:auto;scrollbar-width:none}.gmx-ps-tabs::-webkit-scrollbar{display:none}.gmx-ps-tabs button{flex:0 0 auto;border:1px solid transparent;border-radius:12px;background:transparent;padding:.52rem .72rem;color:#64748b;font-size:.72rem;font-weight:900;cursor:pointer;white-space:nowrap}.gmx-ps-tabs button:hover{background:#fff;border-color:#e2e8f0}.gmx-ps-tabs button.is-active{border-color:#c4b5fd;background:#f5f3ff;color:#5b21b6;box-shadow:0 7px 18px -17px rgba(15,23,42,.6)}.gmx-ps-workspace,.gmx-seq-workspace{border-top:1px solid #e2e8f0;background:#f8fafc;padding:.65rem}.gmx-ps-panel,.gmx-seq-workspace{display:grid;grid-template-columns:minmax(260px,320px) minmax(0,1fr);gap:.65rem;align-items:stretch}.gmx-ps-panel[hidden],[data-seq-mode-panel][hidden],[data-seq-view-panel][hidden]{display:none!important}.gmx-ps-controls,.gmx-ps-visual{min-width:0;border:1px solid #e2e8f0;border-radius:18px;background:#fff;box-shadow:0 12px 24px -28px rgba(15,23,42,.8)}.gmx-ps-controls{padding:.8rem;align-self:start}.gmx-ps-visual{padding:.7rem;display:flex;min-height:430px;flex-direction:column;justify-content:center;overflow:hidden}.gmx-ps-panel-title{display:flex;align-items:center;justify-content:space-between;gap:.5rem;margin-bottom:.65rem}.gmx-ps-panel-title>span{font-size:.98rem;font-weight:950}.gmx-ps-panel-title>button{border:0;background:transparent;color:#7c3aed;font-size:.68rem;font-weight:900;cursor:pointer}.gmx-ps-controls label{display:block;margin:.45rem 0;color:#475569;font-size:.69rem;font-weight:900;line-height:1.25}.gmx-ps-controls input[type=number],.gmx-ps-controls select{width:100%;box-sizing:border-box;margin-top:.28rem;border:1px solid #cbd5e1;border-radius:10px;background:#fff;padding:.47rem .55rem;color:#0f172a;font-size:.76rem;outline:none}.gmx-ps-controls input:focus,.gmx-ps-controls select:focus{border-color:#8b5cf6;box-shadow:0 0 0 3px rgba(139,92,246,.12)}.gmx-ps-range{display:grid;grid-template-columns:minmax(0,1fr) 68px;gap:.45rem;align-items:center;margin-top:.18rem}.gmx-ps-range input[type=range]{width:100%;accent-color:#7c3aed}.gmx-ps-range input[type=number]{margin:0!important;padding:.38rem .42rem!important;text-align:center}.gmx-ps-two{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.48rem}.gmx-ps-four{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.35rem}.gmx-ps-four label{text-align:center;margin:0}.gmx-ps-four input{text-align:center;padding:.4rem .15rem!important}.gmx-ps-check{display:flex!important;align-items:center;gap:.45rem;margin:.55rem 0!important}.gmx-ps-check input{width:16px;height:16px;accent-color:#7c3aed}.gmx-ps-answer{display:grid;gap:.22rem;margin-top:.65rem;border:1px solid #ddd6fe;border-radius:13px;background:#faf5ff;padding:.7rem;color:#4c1d95;text-align:center;font-size:.78rem;font-weight:800;overflow-wrap:anywhere}.gmx-ps-answer strong{font-size:1.25rem;color:#5b21b6}.gmx-ps-answer small{font-size:.68rem;color:#7c3aed}.gmx-ps-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.38rem;margin-top:.55rem}.gmx-ps-metric{min-width:0;border:1px solid #e2e8f0;border-radius:11px;background:#f8fafc;padding:.48rem .5rem;text-align:center}.gmx-ps-metric span{display:block;color:#64748b;font-size:.58rem;font-weight:950;text-transform:uppercase;letter-spacing:.04em}.gmx-ps-metric strong{display:block;margin-top:.08rem;color:#0f172a;font-size:.85rem;font-weight:950;overflow-wrap:anywhere}.gmx-ps-metric small{display:block;margin-top:.08rem;color:#64748b;font-size:.56rem;line-height:1.2}.gmx-ps-hint{margin-top:.4rem;border-radius:10px;background:#f8fafc;padding:.42rem .58rem;color:#64748b;font-size:.65rem;line-height:1.35;text-align:center}.gmx-ps-details{margin-top:.6rem;border:1px solid #e2e8f0;border-radius:12px;background:#f8fafc;overflow:hidden}.gmx-ps-details>summary{cursor:pointer;list-style:none;padding:.55rem .65rem;color:#334155;font-size:.7rem;font-weight:950}.gmx-ps-details>summary::-webkit-details-marker{display:none}.gmx-ps-details>summary::after{content:'+';float:right;color:#64748b}.gmx-ps-details[open]>summary::after{content:'−'}.gmx-ps-details>div,.gmx-ps-details>p{margin:0;padding:.55rem .65rem;border-top:1px solid #e2e8f0;background:#fff;font-size:.7rem;line-height:1.4;color:#475569}.gmx-ps-formula-mini{text-align:center;margin-top:.4rem;color:#334155;font-size:.74rem;font-weight:850}.gmx-ps-primary{width:100%;border:0;border-radius:11px;background:#0f172a;padding:.55rem .7rem;color:#fff;font-size:.72rem;font-weight:900;cursor:pointer}.gmx-ps-mini{margin:.3rem 0 .55rem;color:#64748b;font-size:.67rem;line-height:1.4}.gmx-prob-var-grid{display:grid;grid-template-columns:.72fr 1fr;gap:.35rem;align-items:center}.gmx-prob-var-grid>b{font-size:.62rem;color:#64748b;text-align:center;text-transform:uppercase}.gmx-prob-var-grid input{margin:0!important;text-align:center}.gmx-prob-tree-svg,.gmx-prob-bin-svg,.gmx-prob-urn-svg,.gmx-seq-graph-svg,.gmx-seq-cobweb-svg{display:block;width:100%;height:auto;max-height:410px}
.gmx-seq-workspace{grid-template-columns:minmax(255px,305px) minmax(0,1fr)}.gmx-seq-formula{margin:.35rem 0 .62rem;border:1px solid #ddd6fe;border-radius:11px;background:#faf5ff;padding:.55rem;text-align:center;color:#5b21b6;font-size:.86rem;font-weight:900}.gmx-seq-main-result{grid-template-columns:1fr;margin-top:.68rem}.gmx-seq-main-result .gmx-ps-metric{text-align:left;display:grid;grid-template-columns:minmax(70px,.7fr) minmax(0,1.3fr);align-items:center;gap:.35rem}.gmx-seq-main-result .gmx-ps-metric span{text-align:left}.gmx-seq-main-result .gmx-ps-metric strong{text-align:right;font-size:.78rem}.gmx-seq-visual{min-height:480px;justify-content:flex-start}.gmx-seq-viewbar{display:flex;align-items:center;justify-content:space-between;gap:.5rem;margin-bottom:.45rem}.gmx-seq-viewbar h3{margin:0;font-size:.95rem;font-weight:950}.gmx-seq-viewbar>div,.gmx-seq-subtabs{display:flex;gap:.25rem;padding:.2rem;border:1px solid #e2e8f0;border-radius:10px;background:#f8fafc}.gmx-seq-viewbar button,.gmx-seq-subtabs button{border:0;border-radius:7px;background:transparent;padding:.38rem .52rem;color:#64748b;font-size:.63rem;font-weight:900;cursor:pointer}.gmx-seq-viewbar button.is-active,.gmx-seq-subtabs button.is-active{background:#fff;color:#6d28d9;box-shadow:0 3px 10px -8px rgba(15,23,42,.8)}.gmx-seq-subtabs{align-self:flex-end;margin-bottom:.35rem}.gmx-seq-tip{margin-top:.6rem;border:1px solid #a7f3d0;border-radius:11px;background:#ecfdf5;padding:.55rem;color:#065f46;font-size:.67rem;line-height:1.4}.gmx-seq-compare-label{margin:.55rem 0 .2rem;border-left:4px solid #7c3aed;padding-left:.45rem;color:#5b21b6;font-size:.68rem;font-weight:950}.gmx-seq-compare-label.is-blue{border-color:#0ea5e9;color:#0369a1}.gmx-seq-table-wrap{overflow-x:auto;border:1px solid #e2e8f0;border-radius:12px;background:#fff}.gmx-seq-table-wrap table{border-collapse:collapse;width:100%;min-width:max-content;font-size:.72rem}.gmx-seq-table-wrap th,.gmx-seq-table-wrap td{padding:.48rem .6rem;border-bottom:1px solid #eef2f7;text-align:center}.gmx-seq-table-wrap th{background:#f8fafc;color:#475569;font-weight:950}.gmx-seq-analysis-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.55rem}.gmx-seq-analysis-grid .gmx-ps-metric{padding:.8rem;min-height:74px;display:flex;flex-direction:column;justify-content:center}.gmx-seq-analysis-grid .gmx-ps-metric strong{font-size:.8rem;line-height:1.35}.gmx-seq-proof{margin-top:.65rem;border:1px solid #fde68a;border-radius:13px;background:#fffbeb;padding:.72rem;color:#713f12;font-size:.72rem;line-height:1.45}.gmx-seq-proof strong{display:block;margin-bottom:.22rem;color:#92400e}
@media(min-width:1100px) and (max-height:820px){.gmx-ps-head{padding:.7rem 1rem .5rem}.gmx-ps-head h2{font-size:1.48rem}.gmx-ps-head p{margin-top:.2rem;font-size:.73rem}.gmx-ps-tabs{padding-bottom:.45rem}.gmx-ps-visual{min-height:360px}.gmx-seq-visual{min-height:405px}.gmx-prob-tree-svg,.gmx-prob-bin-svg,.gmx-prob-urn-svg,.gmx-seq-graph-svg,.gmx-seq-cobweb-svg{max-height:340px}.gmx-ps-controls{padding:.65rem}.gmx-ps-controls label{margin:.3rem 0}.gmx-ps-metrics{margin-top:.4rem}}
@media(max-width:900px){.gmx-ps-panel,.gmx-seq-workspace{grid-template-columns:1fr}.gmx-ps-visual,.gmx-seq-visual{min-height:0}.gmx-ps-head{flex-direction:column}.gmx-ps-head>b{align-self:flex-start}}
@media(max-width:560px){.gmx-ps-tool{padding:0 .25rem .8rem}.gmx-ps-shell{border-radius:18px}.gmx-ps-head{padding:.75rem}.gmx-ps-head h2{font-size:1.45rem}.gmx-ps-tabs{padding-left:.55rem;padding-right:.55rem}.gmx-ps-workspace,.gmx-seq-workspace{padding:.4rem}.gmx-ps-controls,.gmx-ps-visual{border-radius:14px}.gmx-ps-metrics{grid-template-columns:1fr 1fr}.gmx-seq-analysis-grid{grid-template-columns:1fr}.gmx-seq-viewbar{align-items:flex-start;flex-direction:column}.gmx-seq-viewbar>div{width:100%;display:grid;grid-template-columns:repeat(3,1fr)}}

/* ===== SOURCE: styles/gomathy-proba-learning-v33.css ===== */
/* GoMathy v33 — probabilités, suites et statistiques : rendre les mécanismes visibles. */
.gmx-prob-v33 .gmx-ps-visual{justify-content:flex-start}
.gmx-prob-v33 .gmx-ps-answer small{display:block;margin-top:.2rem;line-height:1.35}
.gmx-prob-concept-card{margin-top:.55rem;border:1px solid #dbeafe;border-radius:13px;background:#f8fbff;padding:.65rem .75rem;color:#334155;font-size:.7rem;line-height:1.45}
.gmx-prob-concept-card b{display:block;margin-bottom:.18rem;color:#0f172a;font-size:.76rem}
.gmx-prob-concept-card p{margin:0}
.gmx-prob-trials{margin-top:.45rem;border:1px solid #e2e8f0;border-radius:13px;background:#f8fafc;padding:.6rem .7rem;color:#475569;font-size:.67rem;line-height:1.35}
.gmx-prob-trials>div:first-child{display:flex;align-items:baseline;gap:.3rem;margin-bottom:.4rem}.gmx-prob-trials b{font-size:.95rem;color:#0f172a}
.gmx-prob-trial-strip{display:flex!important;flex-wrap:wrap;gap:3px!important;margin:.25rem 0 .35rem}
.gmx-prob-trial-strip span{display:grid;place-items:center;width:20px;height:20px;border:1px solid #cbd5e1;border-radius:6px;background:#fff;color:#94a3b8;font-size:.62rem;font-weight:900}
.gmx-prob-trial-strip span.is-success{border-color:#c4b5fd;background:#ede9fe;color:#6d28d9}
.gmx-prob-urn-layout{display:grid;grid-template-columns:minmax(300px,.8fr) minmax(0,1.2fr);gap:.6rem;align-items:center}
.gmx-prob-urn-trial-empty{border:1px dashed #cbd5e1;border-radius:14px;background:#f8fafc;padding:1rem;color:#64748b;font-size:.72rem;line-height:1.45;text-align:center}
.gmx-prob-urn-steps{display:grid;gap:.35rem}.gmx-prob-urn-step{display:grid;grid-template-columns:24px 24px minmax(65px,.7fr) minmax(0,1.3fr);gap:.4rem;align-items:center;border:1px solid #e2e8f0;border-radius:11px;background:#fff;padding:.42rem .5rem}
.gmx-prob-urn-step>span{display:grid;place-items:center;width:22px;height:22px;border-radius:999px;background:#f1f5f9;color:#475569;font-size:.62rem;font-weight:950}.gmx-prob-urn-step i{display:block;width:20px;height:20px;border-radius:999px;box-shadow:inset 0 0 0 2px rgba(255,255,255,.75)}.gmx-prob-urn-step b{font-size:.69rem}.gmx-prob-urn-step small{color:#64748b;font-size:.61rem}
.gmx-prob-variance-list{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.4rem;margin-top:.55rem}.gmx-prob-variance-list>div{position:relative;min-width:0;border:1px solid #e2e8f0;border-radius:12px;background:#f8fafc;padding:.52rem;overflow:hidden}.gmx-prob-variance-list b,.gmx-prob-variance-list span,.gmx-prob-variance-list small{display:block}.gmx-prob-variance-list b{font-size:.72rem}.gmx-prob-variance-list span{margin-top:.1rem;color:#64748b;font-size:.6rem}.gmx-prob-variance-list em{display:block;height:5px;margin:.35rem 0;border-radius:999px;background:#a78bfa}.gmx-prob-variance-list small{font-size:.58rem;color:#475569}
.gmx-prob-subtabs{display:grid;grid-template-columns:repeat(3,1fr);gap:.25rem;margin-bottom:.55rem;padding:.22rem;border:1px solid #e2e8f0;border-radius:11px;background:#f8fafc}.gmx-prob-subtabs button{border:0;border-radius:8px;background:transparent;padding:.43rem .35rem;color:#64748b;font-size:.62rem;font-weight:900;cursor:pointer}.gmx-prob-subtabs button.is-active{background:#fff;color:#6d28d9;box-shadow:0 4px 12px -10px rgba(15,23,42,.8)}
.gmx-seq-intuition{margin:0 0 .55rem;border:1px solid #ddd6fe;border-radius:13px;background:linear-gradient(135deg,#faf5ff,#fff);padding:.58rem .7rem;color:#475569;font-size:.67rem;line-height:1.35}.gmx-seq-intuition>b{display:block;margin-bottom:.35rem;color:#4c1d95;font-size:.73rem}.gmx-seq-chain{display:flex;align-items:center;gap:.28rem;overflow-x:auto;padding:.15rem 0 .35rem;scrollbar-width:thin}.gmx-seq-chain strong{flex:0 0 auto;display:grid;place-items:center;min-width:58px;min-height:34px;border:1px solid #c4b5fd;border-radius:10px;background:#fff;color:#5b21b6;font-size:.72rem}.gmx-seq-op{flex:0 0 auto;color:#7c3aed;font-size:.66rem;font-weight:950}.gmx-seq-machine{display:flex;align-items:center;justify-content:center;gap:.35rem;flex-wrap:wrap;margin:.2rem 0 .35rem}.gmx-seq-machine span{border:1px solid #c4b5fd;border-radius:10px;background:#fff;padding:.42rem .62rem;color:#5b21b6;font-weight:950}.gmx-seq-machine i{position:relative;border-radius:999px;background:#ede9fe;padding:.3rem .55rem;color:#6d28d9;font-style:normal;font-weight:900}.gmx-seq-machine i::after{content:'→';margin-left:.5rem;color:#94a3b8}
.gmx-stats-v33 textarea{width:100%;box-sizing:border-box;margin-top:.28rem;border:1px solid #cbd5e1;border-radius:11px;background:#fff;padding:.55rem;color:#0f172a;font:inherit;line-height:1.35;resize:vertical}.gmx-stats-v33 .gmx-ps-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.gmx-stats-v33 .gmx-ps-visual{justify-content:flex-start}.gmx-stats-v33 svg{display:block;width:100%;height:auto;max-height:310px}.gmx-stats-v33 #stats-series-box{margin-top:.35rem}.gmx-stats-v33 #stats-series-box svg{max-height:180px}
@media(min-width:1100px) and (max-height:820px){.gmx-prob-v33 .gmx-ps-visual{min-height:355px}.gmx-prob-v33 svg{max-height:300px}.gmx-prob-concept-card{padding:.48rem .6rem}.gmx-prob-variance-list{margin-top:.35rem}.gmx-prob-variance-list>div{padding:.4rem}}
@media(max-width:900px){.gmx-prob-urn-layout{grid-template-columns:1fr}.gmx-prob-variance-list{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){.gmx-prob-variance-list{grid-template-columns:1fr 1fr}.gmx-prob-urn-step{grid-template-columns:22px 22px 1fr}.gmx-prob-urn-step small{grid-column:1/-1}.gmx-seq-intuition{font-size:.64rem}}

/* ===== SOURCE: styles/gomathy-maths-formula-homogeneity-v35.css ===== */
/* GoMathy v35 — homogénéisation visuelle des formules dans les cours de maths. */
.course-theme-maths{
  --gm-math-ink:#172554;
  --gm-math-muted:#64748b;
  --gm-math-border:#dbe4ff;
  --gm-math-surface:#f8faff;
  --gm-math-pill:#f3f5ff;
}

/* Une même “pastille mathématique” dans les cartes, tableaux et exemples. */
.course-theme-maths .gomathy-math-expression-v35,
.course-theme-maths .gomathy-math-display-v35,
.course-theme-maths .gomathy-example-math-line-v35 .math-inline{
  display:inline-flex;
  max-width:100%;
  min-height:2.05rem;
  align-items:center;
  justify-content:center;
  padding:.22rem .48rem;
  border:1px solid rgba(199,210,254,.72);
  border-radius:10px;
  background:var(--gm-math-pill);
  color:#111827!important;
  font-family:Georgia,'Times New Roman',serif;
  font-size:.94rem;
  font-weight:850;
  line-height:1.42;
  text-align:center;
  vertical-align:middle;
  box-sizing:border-box;
}
.course-theme-maths .gomathy-math-expression-v35 .math-inline,
.course-theme-maths .gomathy-math-display-v35 .math-inline{
  display:inline-flex!important;
  align-items:center;
  justify-content:center;
  max-width:100%;
}
.course-theme-maths .gomathy-math-display-v35{margin:0 auto}
.course-theme-maths .gomathy-math-expression-v35{margin-inline:auto}
.course-theme-maths .math-inline-fraction{vertical-align:middle!important;margin:.02rem .12rem!important}
.course-theme-maths .math-inline-fraction__num,
.course-theme-maths .math-inline-fraction__den{line-height:1.05!important}

/* Les cartes du “cours en détail” s'organisent sur trois colonnes régulières sur grand écran. */
.course-theme-maths .gomathy-math-depth-grid-v35{
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  align-items:stretch;
  gap:.78rem!important;
}
.course-theme-maths .gomathy-math-depth-grid-v35>.math-depth-card{
  display:flex;
  min-width:0;
  flex-direction:column;
  height:100%;
}
.course-theme-maths .gomathy-math-depth-grid-v35>.math-depth-card .gomathy-formula-grid-v34{
  flex:1 1 auto;
}
.course-theme-maths .gomathy-formula-card-v34 .gomathy-formula-chip-v34{
  min-height:76px;
  padding:.64rem .72rem;
}
.course-theme-maths .gomathy-formula-card-v34 .gomathy-formula-chip-v34__formula{
  min-height:1.8rem;
  font-size:.94rem;
}
.course-theme-maths .gomathy-formula-card-v34 .gomathy-formula-chip-v34__note{
  margin-top:.3rem;
  padding-top:.32rem;
}

/* Les tableaux, même anciens, adoptent tous la même logique. */
.course-theme-maths table.gomathy-math-table-v35{
  width:100%!important;
  border-collapse:separate!important;
  border-spacing:0!important;
  table-layout:fixed!important;
  border:1px solid var(--gm-math-border);
  border-radius:13px;
  overflow:hidden;
  background:#fff;
}
.course-theme-maths table.gomathy-math-table-v35 th{
  padding:.6rem .7rem!important;
  background:#eef2ff!important;
  color:#4338ca!important;
  font-size:.7rem!important;
  font-weight:950!important;
  line-height:1.25!important;
  vertical-align:middle!important;
}
.course-theme-maths table.gomathy-math-table-v35 th.gomathy-math-table-v35__math-head{
  text-align:center!important;
}
.course-theme-maths table.gomathy-math-table-v35 td{
  padding:.55rem .68rem!important;
  border-top:1px solid #edf0ff!important;
  vertical-align:middle!important;
  background:#fff;
}
.course-theme-maths table.gomathy-math-table-v35 tbody tr:nth-child(even) td{
  background:#fbfbff;
}
.course-theme-maths table.gomathy-math-table-v35 td+td{
  border-left:1px solid #f0f2ff;
}
.course-theme-maths table.gomathy-math-table-v35 td.gomathy-math-table-v35__math-cell{
  text-align:center!important;
}
.course-theme-maths table.gomathy-math-table-v35 td.gomathy-math-table-v35__text-cell{
  text-align:left!important;
  color:#475569;
}
.course-theme-maths table.gomathy-math-table-v35 td.gomathy-math-table-v35__math-cell>.gomathy-math-display-v35{
  min-width:min(100%,5.2rem);
}

/* Les tableaux v31 utilisent la même surface, sans double “pilule”. */
.course-theme-maths .math-formula-v31__expr.gomathy-math-expression-v35{
  background:var(--gm-math-pill)!important;
  border-color:rgba(199,210,254,.72)!important;
}
.course-theme-maths .math-formula-v31 td.is-math{
  text-align:center!important;
}
.course-theme-maths .math-formula-v31 th.is-math-head{
  text-align:center!important;
}

/* Exemple guidé : un calcul = une ligne mathématique lisible. */
.course-theme-maths #math-example .gomathy-example-math-line-v35,
.course-theme-maths .math-depth-examples .gomathy-example-math-line-v35{
  width:min(100%,900px);
  margin:.42rem auto!important;
  padding:.55rem .7rem!important;
  border:1px solid rgba(186,230,253,.82);
  border-radius:12px;
  background:rgba(255,255,255,.72);
  color:#334155!important;
  line-height:1.55!important;
  text-align:center!important;
  box-sizing:border-box;
}
.course-theme-maths #math-example .gomathy-example-math-line-v35 strong,
.course-theme-maths .math-depth-examples .gomathy-example-math-line-v35 strong{
  color:#0f172a;
}
.course-theme-maths #math-example .gomathy-example-math-line-v35 .math-inline,
.course-theme-maths .math-depth-examples .gomathy-example-math-line-v35 .math-inline{
  margin:.08rem .18rem;
}
.course-theme-maths .math-depth-example__prompt.gomathy-example-math-line-v35{
  border-color:#fed7aa;
  background:#fffaf3;
  color:#9a3412!important;
}
.course-theme-maths .math-depth-example__result.gomathy-example-math-line-v35{
  border-color:#bae6fd;
  background:#f0fbff;
  color:#075985!important;
}

/* Une grosse table à deux colonnes doit être symétrique et compacte. */
.course-theme-maths table.gomathy-math-table-v35:has(>thead>tr>th:nth-child(2):last-child) th,
.course-theme-maths table.gomathy-math-table-v35:has(>thead>tr>th:nth-child(2):last-child) td{
  width:50%!important;
}

@media(max-width:1180px){
  .course-theme-maths .gomathy-math-depth-grid-v35{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media(max-width:760px){
  .course-theme-maths .gomathy-math-depth-grid-v35{grid-template-columns:1fr!important}
  .course-theme-maths .gomathy-math-expression-v35,
  .course-theme-maths .gomathy-math-display-v35,
  .course-theme-maths .gomathy-example-math-line-v35 .math-inline{font-size:.88rem}
  .course-theme-maths table.gomathy-math-table-v35{min-width:600px!important}
  .course-theme-maths .math-formula-v31__wrap,
  .course-theme-maths .gomathy-course-rich-source:has(table.gomathy-math-table-v35){overflow-x:auto!important}
}

/* ===== SOURCE: styles/gomathy-annales-v36.css ===== */
.ann-shell{--ann-font-scale:1;width:min(100%,1500px);margin:0 auto;padding:0 12px 54px;color:#1e293b}.ann-back{border:0;background:transparent;color:#1e3a8a;font-weight:850;margin:0 0 12px;cursor:pointer}.ann-hero{display:flex;justify-content:space-between;gap:20px;align-items:flex-start;padding:24px 26px;border:1px solid #c7d2fe;border-radius:25px;background:linear-gradient(135deg,#eff6ff,#fff 58%,#f5f3ff);box-shadow:0 20px 45px -38px #0f172a}.ann-kicker{display:block;color:#6366f1;text-transform:uppercase;letter-spacing:.1em;font-size:.68rem;font-weight:950}.ann-hero h2{margin:5px 0 7px;font-size:clamp(1.85rem,3.4vw,2.65rem);line-height:1.06;color:#0f172a}.ann-hero p{margin:0;max-width:850px;line-height:1.55;color:#64748b}.ann-hero-tools,.ann-actions{display:flex;gap:7px;flex-wrap:wrap}.ann-hero-tools button,.ann-btn{border:1px solid #cbd5e1;border-radius:12px;background:#fff;padding:9px 12px;color:#334155;font-size:.75rem;font-weight:900;text-decoration:none;cursor:pointer}.ann-btn-dark{background:#172554;color:#fff;border-color:#172554}.ann-picker{display:flex;justify-content:space-between;gap:18px;align-items:center;margin:14px 0;padding:12px 14px;border:1px solid #e2e8f0;border-radius:18px;background:#fff}.ann-picker small{display:block;margin-bottom:7px;color:#64748b;font-size:.66rem;font-weight:900;text-transform:uppercase}.ann-year-list,.ann-zone-list{display:flex;gap:6px;flex-wrap:wrap}.ann-year,.ann-zone{border:1px solid #cbd5e1;border-radius:999px;background:#fff;padding:7px 10px;color:#475569;font-size:.75rem;font-weight:850;cursor:pointer}.ann-year.is-active,.ann-zone.is-active{background:#172554;color:#fff;border-color:#172554}.ann-sourcebar{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin:10px 0 12px;padding:9px 12px;border-radius:12px;background:#f8fafc;font-size:.72rem}.ann-sourcebar span{font-weight:950}.ann-sourcebar a{color:#1e40af;font-weight:800}.ann-tabs{position:sticky;top:0;z-index:8;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;margin:12px 0;padding:6px;border:1px solid #dbeafe;border-radius:17px;background:rgba(239,246,255,.95);backdrop-filter:blur(12px)}.ann-tabs button{border:0;border-radius:12px;background:transparent;padding:10px;color:#64748b;font-weight:900;cursor:pointer}.ann-tabs button.is-active{background:#fff;color:#1e3a8a;box-shadow:0 8px 18px -16px #0f172a}.ann-reader{font-size:calc(.98rem * var(--ann-font-scale));line-height:1.67}.ann-pane{display:none;padding:22px;border:1px solid #e2e8f0;border-radius:22px;background:#fff;box-shadow:0 18px 45px -42px #0f172a}.ann-pane.is-active{display:block}.ann-pane-head{display:flex;justify-content:space-between;gap:18px;align-items:flex-start;margin-bottom:16px}.ann-pane-head h3{margin:3px 0 0;color:#0f172a;font-size:1.45rem}.ann-source-note,.ann-warning{margin:0 0 15px;padding:12px 14px;border-radius:14px;background:#eff6ff;border:1px solid #bfdbfe;color:#1e3a8a;font-size:.82rem;line-height:1.5}.ann-warning{background:#fffbeb;border-color:#fde68a;color:#92400e}.ann-pdf{overflow:hidden;border:1px solid #cbd5e1;border-radius:16px;background:#f8fafc}.ann-pdf iframe{display:block;width:100%;height:min(78vh,900px);border:0}.ann-inline-subject>.space-y-6{display:grid!important;grid-template-columns:1fr!important;gap:12px!important}.ann-inline-subject .grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.ann-inline-subject .rounded-lg{border-radius:14px!important}.ann-subject-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.ann-subject-cards article{padding:16px;border:1px solid #dbeafe;border-radius:16px;background:#f8fbff}.ann-subject-cards article>span{color:#2563eb;font-size:.68rem;font-weight:950;text-transform:uppercase}.ann-subject-cards h4{margin:4px 0 9px}.ann-subject-cards ul{margin:0;padding-left:18px}.ann-hints{display:grid;gap:10px}.ann-hints details{border:1px solid #e2e8f0;border-radius:15px;background:#f8fafc;overflow:hidden}.ann-hints summary{display:flex;gap:10px;align-items:center;padding:12px 14px;cursor:pointer;font-weight:850}.ann-hints summary span{display:grid;place-items:center;width:25px;height:25px;border-radius:50%;background:#f59e0b;color:#fff;font-size:.7rem}.ann-hints p{margin:0;padding:0 14px 14px;color:#475569}.ann-correction-layout{display:grid;grid-template-columns:260px minmax(0,1fr);gap:14px;align-items:start}.ann-correction-layout>nav{display:grid;gap:6px;position:sticky;top:72px}.ann-ex-nav{display:grid;grid-template-columns:28px 1fr;gap:8px;align-items:start;border:1px solid #e2e8f0;border-radius:12px;background:#fff;padding:9px;text-align:left;color:#475569;font-size:.72rem;font-weight:800;cursor:pointer}.ann-ex-nav span{display:grid;place-items:center;width:26px;height:26px;border-radius:8px;background:#eef2ff;color:#4338ca}.ann-ex-nav.is-active{border-color:#818cf8;background:#eef2ff;color:#312e81}.ann-ex-page{display:none}.ann-ex-page.is-active{display:block}.ann-ex-title{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:12px}.ann-ex-title>span{color:#6366f1;font-size:.68rem;font-weight:950;text-transform:uppercase}.ann-ex-title h4{margin:0 auto 0 0;color:#0f172a;font-size:1.2rem}.ann-correction-locked{padding:22px;border:1px dashed #cbd5e1;border-radius:16px;background:#f8fafc;color:#64748b;text-align:center}.ann-steps{display:grid;gap:10px}.ann-step{padding:13px 14px;border-radius:14px;border:1px solid #e2e8f0;background:#fff}.ann-step small{display:block;margin-bottom:5px;font-size:.63rem;font-weight:950;text-transform:uppercase;letter-spacing:.07em}.ann-step-method{border-color:#bfdbfe;background:#eff6ff}.ann-step-method small{color:#1d4ed8}.ann-step-calc{border-color:#c7d2fe;background:#f5f3ff}.ann-step-calc small{color:#6d28d9}.ann-step-conclusion{border-color:#a7f3d0;background:#ecfdf5}.ann-step-conclusion small{color:#047857}.ann-step-explain{background:#f8fafc}.ann-ex-footer{display:flex;justify-content:space-between;margin-top:14px}.ann-ex-footer button{border:1px solid #cbd5e1;border-radius:10px;background:#fff;padding:8px 10px;font-weight:850;color:#475569;cursor:pointer}.ann-notions{display:flex;gap:8px;flex-wrap:wrap}.ann-notions span{padding:8px 11px;border-radius:999px;border:1px solid #c7d2fe;background:#eef2ff;color:#3730a3;font-size:.76rem;font-weight:900}.ann-checklist{margin-top:18px;padding:16px;border:1px solid #d1fae5;border-radius:16px;background:#f0fdf4}.ann-checklist h4{margin:0 0 9px}.ann-checklist label{display:block;margin:7px 0;color:#334155}.ann-compose-bar{position:fixed;left:50%;bottom:18px;z-index:50;transform:translateX(-50%);display:flex;align-items:center;gap:14px;padding:10px 14px;border-radius:999px;background:#0f172a;color:#fff;box-shadow:0 18px 45px rgba(15,23,42,.28)}.ann-compose-bar button{border:0;border-radius:999px;background:#fff;color:#0f172a;padding:7px 11px;font-weight:900}.ann-shell.is-focus{position:fixed;inset:0;z-index:9999;width:100%;max-width:none;padding:14px;overflow:auto;background:#f8fafc}.ann-shell.is-focus .ann-back,.ann-shell.is-focus .ann-sourcebar{display:none}.ann-shell.is-compose .ann-picker,.ann-shell.is-compose .ann-sourcebar,.ann-shell.is-compose .ann-tabs,.ann-shell.is-compose .ann-hero-tools{display:none!important}.ann-shell.is-compose .ann-pane:not([data-ann-pane="subject"]){display:none!important}.ann-empty{padding:25px;border:1px dashed #cbd5e1;border-radius:16px;text-align:center;color:#64748b}.ann-shell :is(p,li,td){overflow-wrap:break-word}.ann-shell math,.ann-shell .katex,.ann-shell mjx-container{max-width:100%}
@media(max-width:900px){.ann-hero{flex-direction:column}.ann-correction-layout{grid-template-columns:1fr}.ann-correction-layout>nav{position:static;display:flex;overflow-x:auto;padding-bottom:4px}.ann-ex-nav{min-width:190px}.ann-subject-cards,.ann-inline-subject .grid{grid-template-columns:1fr!important}.ann-tabs{grid-template-columns:repeat(2,1fr)}.ann-picker{align-items:flex-start;flex-direction:column}}
@media(max-width:560px){.ann-shell{padding-left:5px;padding-right:5px}.ann-hero,.ann-pane{padding:15px}.ann-pane-head{flex-direction:column}.ann-actions{width:100%}.ann-actions>*{flex:1;text-align:center}.ann-tabs button{font-size:.72rem;padding:8px 5px}}

/* v37 — sujet + indices progressifs + correction directement sous chaque exercice */
.ann-pane-sub{margin:.35rem 0 0;color:#64748b;font-size:.84rem;line-height:1.5}
.ann-pdf-wrap{margin:0 0 18px;border:1px solid #cbd5e1;border-radius:18px;background:#f8fafc;overflow:hidden}
.ann-pdf-wrap>summary{cursor:pointer;padding:11px 14px;font-weight:900;color:#334155;background:#fff}
.ann-pdf-wrap .ann-pdf{border:0;border-top:1px solid #e2e8f0;border-radius:0}
.ann-workbench{margin-top:20px;padding-top:18px;border-top:1px solid #e2e8f0}
.ann-workbench-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:14px}
.ann-workbench-head h3{margin:3px 0 3px;color:#0f172a;font-size:1.35rem}.ann-workbench-head p{margin:0;color:#64748b;font-size:.84rem}
.ann-legend{display:flex;gap:7px;flex-wrap:wrap;justify-content:flex-end}.ann-legend span{padding:6px 9px;border-radius:999px;background:#f8fafc;border:1px solid #e2e8f0;color:#475569;font-size:.68rem;font-weight:850}
.ann-exercises-inline{display:grid;gap:14px}.ann-inline-ex{border:1px solid #dbeafe;border-radius:20px;background:#fff;overflow:hidden;box-shadow:0 14px 28px -30px rgba(15,23,42,.55)}
.ann-inline-ex>header{display:grid;grid-template-columns:38px minmax(0,1fr) auto;gap:11px;align-items:center;padding:14px 15px;background:linear-gradient(90deg,#eff6ff,#fff)}
.ann-ex-number{display:grid;place-items:center;width:34px;height:34px;border-radius:11px;background:#1e3a8a;color:#fff;font-weight:950}.ann-inline-ex header small{display:block;color:#6366f1;font-size:.62rem;font-weight:950;text-transform:uppercase;letter-spacing:.08em}.ann-inline-ex h4{margin:2px 0 0;color:#0f172a;font-size:1.03rem}
.ann-inline-status{padding:5px 8px;border-radius:999px;font-size:.62rem;font-weight:950;white-space:nowrap}.ann-inline-status.is-full{background:#dcfce7;color:#166534}.ann-inline-status.is-guide{background:#fef3c7;color:#92400e}
.ann-inline-prompt{padding:13px 16px 4px}.ann-inline-prompt ul{margin:0;padding-left:20px}.ann-inline-prompt li{margin:.34rem 0;color:#334155;line-height:1.58}
.ann-inline-actions{display:flex;gap:8px;flex-wrap:wrap;padding:10px 15px 14px}.ann-inline-actions button{border-radius:11px;padding:8px 11px;font-size:.73rem;font-weight:900;cursor:pointer}.ann-hint-btn{border:1px solid #fcd34d;background:#fffbeb;color:#92400e}.ann-corr-btn{border:1px solid #a7f3d0;background:#ecfdf5;color:#047857}.ann-inline-actions button:disabled{opacity:.68;cursor:default}
.ann-inline-hints{margin:0 15px 14px;padding:10px;border:1px solid #fde68a;border-radius:14px;background:#fffbeb}.ann-hint-level{display:grid;grid-template-columns:82px minmax(0,1fr);gap:9px;align-items:start;padding:8px}.ann-hint-level+.ann-hint-level{border-top:1px dashed #fcd34d}.ann-hint-level span{font-size:.64rem;font-weight:950;color:#b45309;text-transform:uppercase}.ann-hint-level p{margin:0;color:#78350f;font-size:.84rem;line-height:1.52}
.ann-inline-correction{margin:0 15px 16px;padding:13px;border:1px solid #a7f3d0;border-radius:15px;background:#f0fdf4}.ann-corr-head{display:flex;justify-content:space-between;gap:10px;align-items:center;margin-bottom:10px}.ann-corr-head strong{color:#065f46}.ann-corr-head span{color:#64748b;font-size:.66rem;font-weight:800}.ann-external-corr{display:inline-block;margin-top:10px}
.ann-hints-v37{display:grid;gap:12px}.ann-hints-v37>article{border:1px solid #e2e8f0;border-radius:16px;background:#fff;overflow:hidden}.ann-hints-v37 article>header{display:flex;align-items:center;gap:9px;padding:10px 12px;background:#f8fafc}.ann-hints-v37 article>header span{display:grid;place-items:center;width:26px;height:26px;border-radius:8px;background:#f59e0b;color:#fff;font-size:.7rem;font-weight:950}.ann-hints-v37 details{border-top:1px solid #f1f5f9}.ann-hints-v37 summary{cursor:pointer;padding:10px 13px;color:#78350f;font-weight:850;font-size:.8rem}.ann-hints-v37 p{margin:0;padding:0 13px 12px;color:#475569;font-size:.84rem;line-height:1.5}
.ann-shell.is-compose .ann-inline-actions,.ann-shell.is-compose .ann-inline-hints,.ann-shell.is-compose .ann-inline-correction,.ann-shell.is-compose .ann-workbench-head .ann-legend{display:none!important}
@media(max-width:760px){.ann-workbench-head{flex-direction:column}.ann-legend{justify-content:flex-start}.ann-inline-ex>header{grid-template-columns:34px minmax(0,1fr)}.ann-inline-status{grid-column:2;justify-self:start}.ann-hint-level{grid-template-columns:1fr}.ann-corr-head{flex-direction:column;align-items:flex-start}}

/* v38 — annales officielles numérisées + banque d'exercices originale */
.ann-tabs{grid-template-columns:repeat(5,minmax(0,1fr))}
.ann-digital-official{margin-top:24px;padding-top:20px;border-top:2px solid #e0e7ff}
.ann-digital-head{display:flex;justify-content:space-between;gap:18px;align-items:flex-start;margin-bottom:14px}
.ann-digital-head h3{margin:3px 0 4px;color:#0f172a;font-size:1.4rem}.ann-digital-head p{margin:0;max-width:760px;color:#64748b;font-size:.84rem}
.ann-digital-badge{display:inline-flex;align-items:center;white-space:nowrap;padding:7px 10px;border-radius:999px;background:#eef2ff;border:1px solid #c7d2fe;color:#3730a3;font-size:.7rem;font-weight:950}
.ann-digital-list{display:grid;gap:16px}.ann-digital-ex{border:1px solid #c7d2fe;border-radius:20px;background:#fff;overflow:hidden;box-shadow:0 16px 34px -32px rgba(15,23,42,.6)}
.ann-digital-ex>header{display:flex;align-items:center;gap:10px;padding:13px 15px;background:linear-gradient(90deg,#eef2ff,#fff)}.ann-digital-ex>header>span{display:grid;place-items:center;width:34px;height:34px;border-radius:11px;background:#4338ca;color:#fff;font-weight:950}.ann-digital-ex h4{margin:0;color:#0f172a;font-size:1.05rem}
.ann-digital-prompt{padding:16px}.ann-digital-text{font-family:Georgia,'Times New Roman',serif;font-size:1rem;line-height:1.72;color:#1f2937;white-space:normal}.ann-digital-text p{margin:.6rem 0}.ann-digital-text br+br{line-height:2}
.ann-digital-actions{display:flex;gap:8px;flex-wrap:wrap;padding:0 16px 15px}.ann-digital-actions button{border-radius:11px;padding:8px 11px;font-size:.73rem;font-weight:900;cursor:pointer}.ann-digital-actions button:first-child{border:1px solid #fcd34d;background:#fffbeb;color:#92400e}.ann-digital-actions button:last-child{border:1px solid #a7f3d0;background:#ecfdf5;color:#047857}
.ann-digital-hint,.ann-digital-correction{margin:0 16px 16px;padding:13px;border-radius:15px}.ann-digital-hint{border:1px solid #fde68a;background:#fffbeb}.ann-digital-hint p{display:grid;grid-template-columns:76px 1fr;gap:8px;margin:.4rem 0;color:#78350f}.ann-digital-hint strong{font-size:.66rem;text-transform:uppercase;color:#b45309}.ann-digital-correction{border:1px solid #a7f3d0;background:#f0fdf4}
.ann-bank-filters{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:0 0 16px}.ann-bank-filters select{width:100%;min-height:42px;padding:8px 10px;border:1px solid #cbd5e1;border-radius:12px;background:#fff;color:#334155;font-weight:800}
.ann-bank-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.ann-bank-card{border:1px solid #dbeafe;border-radius:18px;background:#fff;overflow:hidden;box-shadow:0 14px 30px -30px #0f172a}.ann-bank-card[hidden]{display:none!important}.ann-bank-card>header{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;padding:13px 14px;background:#f8fbff}.ann-bank-card header span{display:block;color:#6366f1;font-size:.65rem;font-weight:950;text-transform:uppercase}.ann-bank-card h4{margin:3px 0 0;color:#0f172a}.ann-bank-card header b{padding:5px 8px;border-radius:999px;font-size:.62rem}.ann-bank-card header b.is-facile{background:#dcfce7;color:#166534}.ann-bank-card header b.is-moyen{background:#fef3c7;color:#92400e}.ann-bank-card header b.is-difficile{background:#fee2e2;color:#991b1b}.ann-bank-prompt{padding:14px 15px 8px;color:#334155;line-height:1.62}.ann-bank-skills{display:flex;gap:6px;flex-wrap:wrap;padding:0 15px}.ann-bank-skills span{padding:4px 7px;border-radius:999px;background:#eef2ff;color:#4338ca;font-size:.62rem;font-weight:850}.ann-bank-hints,.ann-bank-solution{margin:0 15px 15px;padding:12px;border-radius:13px}.ann-bank-hints{border:1px solid #fde68a;background:#fffbeb}.ann-bank-hints p{display:grid;grid-template-columns:24px 1fr;gap:8px;margin:.45rem 0;color:#78350f}.ann-bank-hints strong{display:grid;place-items:center;width:22px;height:22px;border-radius:50%;background:#f59e0b;color:#fff;font-size:.65rem}.ann-bank-solution{border:1px solid #a7f3d0;background:#f0fdf4;color:#065f46;line-height:1.62}
@media(max-width:950px){.ann-tabs{grid-template-columns:repeat(2,1fr)}.ann-bank-grid{grid-template-columns:1fr}.ann-bank-filters{grid-template-columns:1fr}.ann-digital-head{flex-direction:column}.ann-digital-hint p{grid-template-columns:1fr}}

/* ===== SOURCE: styles/gomathy-polish-v39.css ===== */
/* GoMathy v39 — formules totalement homogènes + questions d'annales nettement séparées. */
.course-theme-maths .gomathy-formula-table-v39{
  width:min(100%,1120px)!important;
  max-width:1120px!important;
  margin:.75rem auto!important;
  table-layout:fixed!important;
}
.course-theme-maths .gomathy-formula-table-v39__head{
  text-align:center!important;
  vertical-align:middle!important;
  padding:.62rem .7rem!important;
}
.course-theme-maths .gomathy-formula-table-v39__cell{
  text-align:center!important;
  vertical-align:middle!important;
  padding:.55rem .7rem!important;
}
.course-theme-maths .gomathy-formula-table-v39__expr{
  display:inline-flex!important;
  min-width:84px!important;
  min-height:2.1rem!important;
  width:auto!important;
  max-width:100%!important;
  margin:0 auto!important;
  padding:.25rem .62rem!important;
  align-items:center!important;
  justify-content:center!important;
  border:1px solid #c7d2fe!important;
  border-radius:10px!important;
  background:#f3f5ff!important;
  color:#111827!important;
  font-family:Georgia,'Times New Roman',serif!important;
  font-size:.96rem!important;
  font-weight:850!important;
  line-height:1.35!important;
  text-align:center!important;
  box-sizing:border-box!important;
}
.course-theme-maths .gomathy-formula-table-v39__expr>.math-inline{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  flex-wrap:wrap!important;
  max-width:100%!important;
  text-align:center!important;
}
.course-theme-maths .gomathy-formula-table-v39__note{
  width:100%;
  margin:.24rem auto 0;
  color:#64748b;
  font-size:.7rem;
  font-weight:700;
  line-height:1.3;
  text-align:center;
}
.course-theme-maths .gomathy-formula-table-v39 .math-inline-fraction{margin:.02rem .12rem!important}

/* Annales : une question = une unité visuelle. */
.ann-digital-text-v39{display:grid;gap:.72rem;font-family:Georgia,'Times New Roman',serif;font-size:1rem;line-height:1.68;color:#1f2937}
.ann-context-line-v39{white-space:pre-wrap;margin:.08rem 0;color:#334155}
.ann-part-v39{display:flex;align-items:center;gap:.65rem;margin:1rem 0 .25rem;padding:.68rem .85rem;border:1px solid #c7d2fe;border-radius:13px;background:linear-gradient(90deg,#eef2ff,#f8faff);color:#3730a3}
.ann-part-v39 span{padding:.25rem .48rem;border-radius:8px;background:#4338ca;color:#fff;font-size:.68rem;font-family:system-ui,sans-serif;font-weight:950;text-transform:uppercase;letter-spacing:.06em}
.ann-part-v39 strong{font-size:.96rem}
.ann-question-v39{margin:.28rem 0;border:1px solid #dbeafe;border-left:4px solid #3b82f6;border-radius:15px;background:#fff;overflow:hidden;box-shadow:0 8px 20px -22px rgba(15,23,42,.6)}
.ann-question-v39__head{display:flex;align-items:center;gap:.55rem;padding:.58rem .72rem;background:#f8fbff;border-bottom:1px solid #e8eefc;font-family:system-ui,sans-serif}
.ann-question-v39__head>span{display:grid;place-items:center;width:27px;height:27px;border-radius:9px;background:#2563eb;color:#fff;font-size:.72rem;font-weight:950}
.ann-question-v39__head strong{color:#1e3a8a;font-size:.77rem;text-transform:uppercase;letter-spacing:.055em}
.ann-question-v39__body{padding:.72rem .82rem;display:grid;gap:.48rem}
.ann-q-line-v39{white-space:pre-wrap;margin:0;color:#1f2937}
.ann-q-bullet-v39{position:relative;padding-left:1rem}.ann-q-bullet-v39::before{content:'•';position:absolute;left:.12rem;color:#4f46e5;font-weight:950}
.ann-q-gap-v39{height:.15rem}
.ann-subquestion-v39{display:grid;grid-template-columns:31px minmax(0,1fr);gap:.55rem;align-items:start;padding:.55rem .62rem;border:1px solid #e2e8f0;border-radius:11px;background:#fcfdff}
.ann-subquestion-v39+.ann-subquestion-v39{margin-top:.15rem}
.ann-subquestion-v39__badge{display:grid;place-items:center;width:27px;height:27px;border-radius:8px;background:#e0e7ff;color:#4338ca;font-family:system-ui,sans-serif;font-size:.75rem;font-weight:950}
.ann-subquestion-v39__body{min-width:0;display:grid;gap:.34rem}
/* Les anciennes listes d'annales sont elles aussi plus lisibles. */
.ann-inline-prompt>ul{display:grid;gap:.48rem;padding-left:0!important;list-style:none!important}
.ann-inline-prompt>ul>li{margin:0!important;padding:.62rem .72rem;border:1px solid #e2e8f0;border-left:3px solid #93c5fd;border-radius:11px;background:#fcfdff;line-height:1.55}
@media(max-width:760px){
  .course-theme-maths .gomathy-formula-table-v39{min-width:560px!important}
  .course-theme-maths .gomathy-formula-table-v39__expr{min-width:70px!important;font-size:.9rem!important}
  .ann-question-v39__body{padding:.62rem}.ann-subquestion-v39{grid-template-columns:27px minmax(0,1fr);padding:.5rem}.ann-part-v39{align-items:flex-start;flex-direction:column}
}

/* ===== SOURCE: styles/gomathy-annales-fidelity-v40.css ===== */
/* GoMathy v40 — transcription numérique fidèle : questions compactes, figures/tableaux reconstruits. */
.ann-digital-text-v40{display:grid;gap:.66rem;font-family:Georgia,'Times New Roman',serif;font-size:1rem;line-height:1.62;color:#1f2937}
.ann-context-v40{margin:.18rem 0;color:#334155}.ann-context-bullet-v40{position:relative;margin:.15rem 0;padding-left:1.15rem;color:#334155}.ann-context-bullet-v40::before{content:'•';position:absolute;left:.18rem;color:#4338ca;font-weight:950}
.ann-part-v40{display:flex;align-items:center;gap:.65rem;margin:1rem 0 .2rem;padding:.62rem .78rem;border:1px solid #c7d2fe;border-radius:12px;background:linear-gradient(90deg,#eef2ff,#fbfdff);color:#3730a3}.ann-part-v40 span{padding:.23rem .48rem;border-radius:8px;background:#4338ca;color:#fff;font:900 .68rem/1 system-ui,sans-serif;text-transform:uppercase;letter-spacing:.055em}.ann-part-v40 strong{font-size:.95rem}
.ann-question-v40{margin:.22rem 0;border:1px solid #bfdbfe;border-left:4px solid #2563eb;border-radius:14px;background:#fff;overflow:hidden;box-shadow:0 7px 18px -22px rgba(15,23,42,.55)}
.ann-question-v40>header{display:flex;align-items:center;gap:.5rem;padding:.52rem .68rem;background:#f8fbff;border-bottom:1px solid #e5edfb;font-family:system-ui,sans-serif}.ann-question-v40>header>span{display:grid;place-items:center;width:27px;height:27px;border-radius:9px;background:#2563eb;color:#fff;font-size:.72rem;font-weight:950}.ann-question-v40>header strong{color:#1e3a8a;font-size:.74rem;letter-spacing:.055em;text-transform:uppercase}.ann-question-v40__body{display:grid;gap:.42rem;padding:.62rem .72rem}
.ann-q-line-v40{margin:0;color:#172033}.ann-q-bullet-v40{position:relative;margin:.05rem 0;padding-left:1rem}.ann-q-bullet-v40::before{content:'•';position:absolute;left:.1rem;color:#4f46e5;font-weight:950}
.ann-subquestion-v40{display:grid;grid-template-columns:29px minmax(0,1fr);gap:.55rem;align-items:start;padding:.5rem .58rem;border:1px solid #e2e8f0;border-radius:10px;background:#fcfdff}.ann-subquestion-v40+.ann-subquestion-v40{margin-top:.1rem}.ann-subquestion-v40__badge{display:grid;place-items:center;width:27px;height:27px;border-radius:8px;background:#e0e7ff;color:#4338ca;font:950 .74rem/1 system-ui,sans-serif}.ann-subquestion-v40__content{min-width:0;display:grid;gap:.35rem}
.ann-subquestion-v40.has-media .ann-subquestion-v40__content{grid-template-columns:minmax(260px,.8fr) minmax(390px,1.2fr);gap:.9rem;align-items:center}.ann-subquestion-v40.has-media .ann-subquestion-v40__content>.ann-q-line-v40{align-self:start;padding-top:.35rem}
.ann-prob-tree-v40{margin:.15rem 0;padding:.65rem .75rem;border:1px solid #c7d2fe;border-radius:14px;background:linear-gradient(145deg,#f8faff,#fff);overflow:hidden}.ann-prob-tree-v40 figcaption{margin:0 0 .3rem;color:#4338ca;font:900 .72rem/1.2 system-ui,sans-serif;text-transform:uppercase;letter-spacing:.055em}.ann-prob-tree-v40 svg{display:block;width:100%;height:auto;max-height:250px}.ann-tree-lines-v40 line{stroke:#334155;stroke-width:3;stroke-linecap:round}.ann-tree-labels-v40 text{fill:#111827;font-size:24px;font-family:Georgia,'Times New Roman',serif;font-style:italic}.ann-tree-probs-v40 rect{fill:#fff7ed;stroke:#fdba74;stroke-width:2}.ann-tree-probs-v40 text{fill:#c2410c;font-size:20px;font-family:system-ui,sans-serif;font-weight:900;text-anchor:middle}.ann-media-note-v40{margin-top:.25rem;color:#64748b;font:.72rem/1.35 system-ui,sans-serif;text-align:center}
.ann-data-table-v40{margin:.5rem auto;width:min(100%,760px);border:1px solid #c7d2fe;border-radius:13px;background:#fff;overflow:hidden}.ann-data-table-v40__title{padding:.5rem .7rem;background:#eef2ff;color:#3730a3;font:900 .75rem/1.2 system-ui,sans-serif;text-transform:uppercase;letter-spacing:.04em}.ann-data-table-v40 table{width:100%;border-collapse:collapse;text-align:center}.ann-data-table-v40 th,.ann-data-table-v40 td{padding:.55rem .65rem;border-top:1px solid #e5e7eb;border-right:1px solid #eef2f7}.ann-data-table-v40 th:last-child,.ann-data-table-v40 td:last-child{border-right:0}.ann-data-table-v40 th{background:#f8fafc;color:#1e3a8a;font-weight:900}.ann-data-table-v40 td{color:#111827}
/* Les anciens blocs v39 restent cachés si un rendu v40 existe dans la même transcription. */
.ann-digital-text-v40 .ann-question-v39,.ann-digital-text-v40 .ann-subquestion-v39{display:none!important}
@media(max-width:900px){.ann-subquestion-v40.has-media .ann-subquestion-v40__content{grid-template-columns:1fr}.ann-prob-tree-v40 svg{max-height:none}}
@media(max-width:600px){.ann-question-v40__body{padding:.52rem}.ann-subquestion-v40{grid-template-columns:27px minmax(0,1fr);padding:.46rem}.ann-data-table-v40{overflow-x:auto}.ann-data-table-v40 table{min-width:520px}}
.ann-official-structured-v40{gap:.72rem}.ann-official-structured-v40 .ann-question-v40{margin:.16rem 0}.ann-official-structured-v40 .ann-part-v40{margin-top:1.15rem}.ann-official-structured-v40 .ann-context-v40{max-width:1100px}
.ann-math-card-v40{display:flex;align-items:center;justify-content:center;gap:.6rem;width:min(100%,480px);margin:.35rem auto;padding:.7rem 1rem;border:1px solid #c7d2fe;border-radius:12px;background:#f8faff;color:#1e1b4b;font-size:1.05rem;font-weight:850;text-align:center}.ann-frac-v40{display:inline-grid;grid-template-rows:auto auto;align-items:center;min-width:170px}.ann-frac-v40 b{padding:.1rem .45rem .2rem;border-bottom:1.5px solid #312e81;font-weight:850}.ann-frac-v40 i{padding-top:.16rem;font-style:normal;font-weight:850}
/* v47 — transcription officielle mot pour mot + fac-similés graphiques intégrés. */
.ann-official-source-v47{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:.55rem;margin:.75rem 0;padding:.62rem .75rem;border:1px solid #dbe4f0;border-radius:12px;background:#f8fafc;color:#475569;font:700 .78rem/1.35 system-ui,sans-serif}.ann-official-source-v47 a{color:#3730a3;text-decoration:none;font-weight:900}.ann-official-source-v47 a:hover{text-decoration:underline}
.ann-official-preamble-v47,.ann-official-pages-v47{margin:.8rem 0;border:1px solid #dbe4f0;border-radius:14px;background:#fff;overflow:hidden}.ann-official-preamble-v47>summary,.ann-official-pages-v47>summary{cursor:pointer;padding:.7rem .8rem;background:#f8fafc;color:#1e3a8a;font:900 .8rem/1.35 system-ui,sans-serif}.ann-official-raw-v47{padding:.8rem .9rem;font:400 .94rem/1.58 Georgia,'Times New Roman',serif;color:#1f2937;white-space:normal}.ann-official-pages-v47>p{margin:.7rem .85rem .2rem;color:#64748b;font:.78rem/1.45 system-ui,sans-serif}
.ann-official-page-grid-v47{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr));gap:.75rem;padding:.75rem}.ann-official-page-grid-v47 a{display:block;border:1px solid #dbe4f0;border-radius:12px;overflow:hidden;background:#fff}.ann-official-page-grid-v47 img{display:block;width:100%;height:auto;object-fit:contain;background:#fff}.ann-official-page-grid-v47 a:hover{border-color:#818cf8}
@media(max-width:600px){.ann-official-source-v47{align-items:flex-start;flex-direction:column}.ann-official-page-grid-v47{grid-template-columns:1fr;padding:.55rem}.ann-official-raw-v47{font-size:.9rem;padding:.68rem}}

/* ===== SOURCE: styles/gomathy-tools-readable-v62.css ===== */
/* GoMathy V62 — outils lisibles plein écran.
   Objectif : aucun "dézoom" typographique. On gagne la place par la mise en page,
   les onglets, les grilles et l'utilisation de toute la hauteur réellement disponible.
   L'atelier graphique est volontairement exclu. */

@media (min-width:900px){
  body.gomathy-v60-tool-active:not([data-gomathy-page="graph"]) #pages{
    min-height:0!important;
    overflow:hidden!important;
  }

  /* ---------- Socle de lisibilité : aucun texte d'outil microscopique ---------- */
  body.gomathy-v60-tool-active:not([data-gomathy-page="graph"]) #pages button,
  body.gomathy-v60-tool-active:not([data-gomathy-page="graph"]) #pages input,
  body.gomathy-v60-tool-active:not([data-gomathy-page="graph"]) #pages select,
  body.gomathy-v60-tool-active:not([data-gomathy-page="graph"]) #pages textarea{
    font-size:max(.86rem,13.75px)!important;
  }
  body.gomathy-v60-tool-active:not([data-gomathy-page="graph"]) #pages input,
  body.gomathy-v60-tool-active:not([data-gomathy-page="graph"]) #pages select{
    min-height:36px!important;
  }

  /* ---------- Probas / Stats / Suites ---------- */
  body[data-gomathy-page="probability"] .gmx-ps-head,
  body[data-gomathy-page="statistics"] .gmx-ps-head,
  body[data-gomathy-page="sequences"] .gmx-ps-head{padding:.62rem 1rem .38rem!important}
  body[data-gomathy-page="probability"] .gmx-ps-head h2,
  body[data-gomathy-page="statistics"] .gmx-ps-head h2,
  body[data-gomathy-page="sequences"] .gmx-ps-head h2{font-size:1.72rem!important;line-height:1.05!important}
  body[data-gomathy-page="probability"] .gmx-ps-head span,
  body[data-gomathy-page="statistics"] .gmx-ps-head span,
  body[data-gomathy-page="sequences"] .gmx-ps-head span{font-size:.72rem!important}
  body[data-gomathy-page="probability"] .gmx-ps-head p,
  body[data-gomathy-page="statistics"] .gmx-ps-head p,
  body[data-gomathy-page="sequences"] .gmx-ps-head p{font-size:.86rem!important;line-height:1.34!important;margin-top:.2rem!important}
  body[data-gomathy-page="probability"] .gmx-ps-head>b,
  body[data-gomathy-page="statistics"] .gmx-ps-head>b,
  body[data-gomathy-page="sequences"] .gmx-ps-head>b{font-size:.76rem!important}
  body[data-gomathy-page="probability"] .gmx-ps-tabs button,
  body[data-gomathy-page="statistics"] .gmx-ps-tabs button,
  body[data-gomathy-page="sequences"] .gmx-ps-tabs button{font-size:.84rem!important;padding:.43rem .72rem!important}
  body[data-gomathy-page="probability"] .gmx-ps-panel,
  body[data-gomathy-page="statistics"] .gmx-ps-panel,
  body[data-gomathy-page="sequences"] .gmx-seq-workspace{grid-template-columns:minmax(320px,355px) minmax(0,1fr)!important;gap:.58rem!important}
  body[data-gomathy-page="probability"] .gmx-ps-controls,
  body[data-gomathy-page="statistics"] .gmx-ps-controls,
  body[data-gomathy-page="sequences"] .gmx-ps-controls{padding:.72rem!important}
  body[data-gomathy-page="probability"] .gmx-ps-controls label,
  body[data-gomathy-page="statistics"] .gmx-ps-controls label,
  body[data-gomathy-page="sequences"] .gmx-ps-controls label{font-size:.8rem!important;line-height:1.25!important;margin:.32rem 0!important}
  body[data-gomathy-page="probability"] .gmx-ps-panel-title>span,
  body[data-gomathy-page="statistics"] .gmx-ps-panel-title>span,
  body[data-gomathy-page="sequences"] .gmx-ps-panel-title>span{font-size:1.05rem!important}
  body[data-gomathy-page="probability"] .gmx-ps-answer,
  body[data-gomathy-page="statistics"] .gmx-ps-answer,
  body[data-gomathy-page="sequences"] .gmx-ps-answer{font-size:.86rem!important;padding:.58rem!important;margin-top:.45rem!important}
  body[data-gomathy-page="probability"] .gmx-ps-answer strong,
  body[data-gomathy-page="statistics"] .gmx-ps-answer strong,
  body[data-gomathy-page="sequences"] .gmx-ps-answer strong{font-size:1.35rem!important}
  body[data-gomathy-page="probability"] .gmx-ps-metric span,
  body[data-gomathy-page="statistics"] .gmx-ps-metric span{font-size:.68rem!important}
  body[data-gomathy-page="probability"] .gmx-ps-metric strong,
  body[data-gomathy-page="statistics"] .gmx-ps-metric strong{font-size:.98rem!important}
  body[data-gomathy-page="probability"] .gmx-ps-metric small,
  body[data-gomathy-page="statistics"] .gmx-ps-metric small{font-size:.69rem!important}
  body[data-gomathy-page="probability"] .gmx-ps-hint,
  body[data-gomathy-page="statistics"] .gmx-ps-hint,
  body[data-gomathy-page="sequences"] .gmx-ps-hint,
  body[data-gomathy-page="probability"] .gmx-ps-mini,
  body[data-gomathy-page="statistics"] .gmx-ps-mini,
  body[data-gomathy-page="sequences"] .gmx-ps-mini{font-size:.76rem!important}
  body[data-gomathy-page="probability"] .gmx-ps-details>summary,
  body[data-gomathy-page="statistics"] .gmx-ps-details>summary,
  body[data-gomathy-page="sequences"] .gmx-ps-details>summary,
  body[data-gomathy-page="probability"] .gmx-ps-details>div,
  body[data-gomathy-page="statistics"] .gmx-ps-details>div,
  body[data-gomathy-page="sequences"] .gmx-ps-details>div{font-size:.78rem!important}

  /* ---------- Physique-chimie : nouveaux ateliers ---------- */
  .gomathy-extra-physics-v8 .gomathy-tool-title-v8{padding:.58rem .9rem!important}
  .gomathy-extra-physics-v8 .gomathy-tool-title-v8 h2{font-size:1.72rem!important;line-height:1.05!important}
  .gomathy-extra-physics-v8 .gomathy-tool-title-v8 p{font-size:.84rem!important;line-height:1.32!important}
  .gomathy-v60-back{font-size:.86rem!important}
  .gomathy-extra-grid-v8{grid-template-columns:minmax(330px,.82fr) minmax(0,1.18fr)!important;gap:.6rem!important}
  .gomathy-extra-controls-v8,.gomathy-extra-visual-v8{padding:.78rem!important}
  .gomathy-extra-controls-v8{gap:.38rem!important}
  .gomathy-extra-controls-v8 label{font-size:.8rem!important;line-height:1.2!important}
  .gomathy-extra-controls-v8 input,.gomathy-extra-controls-v8 select{font-size:.88rem!important;padding:.42rem .52rem!important}
  .gomathy-extra-controls-v8>button{font-size:.86rem!important;padding:.5rem .72rem!important}
  .gomathy-extra-formula-v8{font-size:.84rem!important;line-height:1.35!important;padding:.52rem .62rem!important}
  .gpx-note-v60{font-size:.74rem!important;line-height:1.35!important}
  .gomathy-extra-results-v8 span{font-size:.68rem!important;line-height:1.15!important}
  .gomathy-extra-results-v8 strong{font-size:.9rem!important;line-height:1.2!important}
  .gomathy-extra-results-v8 p{padding:.44rem .5rem!important}

  /* ---------- Physique-chimie : outils historiques ---------- */
  body.gomathy-v60-tool-active .gomathy-tool-root-v8>button:first-child{font-size:.86rem!important}
  body.gomathy-v60-tool-active .gomathy-tool-root-v8>h2{font-size:1.72rem!important;line-height:1.08!important;margin:.15rem 0 .42rem!important}
  body.gomathy-v60-tool-active .gomathy-tool-primary-card-v8{padding:.82rem!important}
  body.gomathy-v60-tool-active .gomathy-tool-primary-card-v8 h3{font-size:1.08rem!important}
  body.gomathy-v60-tool-active .gomathy-tool-primary-card-v8 p,
  body.gomathy-v60-tool-active .gomathy-tool-primary-card-v8 label,
  body.gomathy-v60-tool-active .gomathy-tool-primary-card-v8 li{font-size:.82rem!important;line-height:1.34!important}
  body.gomathy-v60-tool-active .gomathy-tool-primary-card-v8 select,
  body.gomathy-v60-tool-active .gomathy-tool-primary-card-v8 input{font-size:.88rem!important;padding:.42rem .52rem!important}
  body.gomathy-v60-tool-active details.gomathy-secondary-details-v8>summary,
  body.gomathy-v60-tool-active details.gomathy-science-lab-details-v8>summary,
  body.gomathy-v60-tool-active details.gomathy-advanced-details-v8>summary{font-size:.8rem!important;padding:.45rem .62rem!important}

  /* Pas de miniaturisation du tableau périodique : on utilise la largeur disponible. */
  body[data-gomathy-page="periodic-table"] .gomathy-periodic-table-grid-v8{transform:scale(.96)!important;transform-origin:top center!important;margin-bottom:-2.5%!important}
  body[data-gomathy-page="periodic-table"] .gomathy-periodic-symbol{font-size:.94rem!important}
  body[data-gomathy-page="periodic-table"] .gomathy-periodic-name{font-size:.43rem!important}
  body[data-gomathy-page="periodic-table"] .gomathy-periodic-summary-v9 p{font-size:.76rem!important}

  /* Optique / mole / équations : retour à une taille confortable. */
  body[data-gomathy-page="chem-equations"] .gomathy-tool-root-v8>p.mb-6,
  body[data-gomathy-page="mol-model"] .gomathy-tool-root-v8>p.mb-6,
  body[data-gomathy-page="lenses-model"] .gomathy-tool-root-v8>p.mb-5,
  body[data-gomathy-page="eye-model"] .gomathy-tool-root-v8>p.mb-5{font-size:.82rem!important;line-height:1.32!important}
  body[data-gomathy-page="chem-equations"] .gomathy-tool-core-grid-v8>article input,
  body[data-gomathy-page="mol-model"] .gomathy-tool-core-grid-v8 input,
  body[data-gomathy-page="lenses-model"] .gomathy-optics-section-v8 input,
  body[data-gomathy-page="lenses-model"] .gomathy-optics-section-v8 select,
  body[data-gomathy-page="eye-model"] .gomathy-optics-section-v8 input,
  body[data-gomathy-page="eye-model"] .gomathy-optics-section-v8 select{font-size:.86rem!important}
  body[data-gomathy-page="chem-equations"] .gomathy-tool-core-grid-v8>article .space-y-2>*,
  body[data-gomathy-page="chem-equations"] .gomathy-tool-core-grid-v8>article .mt-5{font-size:.78rem!important;line-height:1.3!important}
  body[data-gomathy-page="lenses-model"] .gomathy-optics-values-v9,
  body[data-gomathy-page="eye-model"] .gomathy-optics-values-v9{font-size:.78rem!important}

  /* ---------- Contrôle sur mesure ---------- */
  .gomathy-control-wizard-v60>.mb-8.max-w-4xl h2{font-size:1.65rem!important}
  .gomathy-control-wizard-v60>.mb-8.max-w-4xl p{font-size:.84rem!important;line-height:1.3!important}
  .gmx-control-tabs-v60 button{font-size:.82rem!important;padding:.48rem .78rem!important}
  .gomathy-control-wizard-v60>.gmx-control-stage-v60 h3{font-size:1.12rem!important}
  .gomathy-control-wizard-v60>.gmx-control-program-v60 .md\:grid-cols-2.lg\:grid-cols-3 button span:first-child{font-size:.8rem!important}
  .gomathy-control-wizard-v60>.gmx-control-program-v60 .md\:grid-cols-2.lg\:grid-cols-3 button span:last-child{font-size:.68rem!important}

  /* ---------- SVT ---------- */
  .gsvt-head-v60{padding:.65rem 1rem!important}
  .gsvt-head-v60 p{font-size:.7rem!important}
  .gsvt-head-v60 h2{font-size:1.72rem!important}
  .gsvt-head-v60 span{font-size:.82rem!important}
  .gsvt-head-v60>b{font-size:.74rem!important}
  .gsvt-tabs-v60 button{font-size:.82rem!important;padding:.46rem .76rem!important}
  .gsvt-panel-v60{grid-template-columns:minmax(330px,.82fr) minmax(0,1.18fr)!important;gap:.6rem!important}
  .gsvt-controls-v60,.gsvt-visual-v60{padding:.78rem!important}
  .gsvt-controls-v60 h3{font-size:1.08rem!important}
  .gsvt-controls-v60 h4{font-size:.88rem!important}
  .gsvt-controls-v60 p{font-size:.78rem!important;line-height:1.35!important}
  .gsvt-controls-v60 label{font-size:.78rem!important}
  .gsvt-controls-v60 input,.gsvt-controls-v60 select,.gsvt-controls-v60 textarea{font-size:.86rem!important;padding:.42rem .5rem!important}
  .gsvt-formula-v60{font-size:.82rem!important}
  .gsvt-tip-v60{font-size:.75rem!important;line-height:1.35!important}
  .gsvt-metrics-v60 span{font-size:.66rem!important}
  .gsvt-metrics-v60 strong{font-size:.9rem!important}
  .gsvt-scale-v60{font-size:.76rem!important}
  .gsvt-sequence-card-v60 span{font-size:.72rem!important}
  .gsvt-sequence-card-v60 code{font-size:.9rem!important}
  .gsvt-codons-v60 b{font-size:.82rem!important}
  .gsvt-codons-v60 em{font-size:.68rem!important}
  .gsvt-protein-v60 span{font-size:.68rem!important}
  .gsvt-protein-v60 strong{font-size:.9rem!important}

  /* ---------- Calcul mental / Focus ---------- */
  body[data-gomathy-page="mental"] #pages p,
  body[data-gomathy-page="mental"] #pages li,
  body[data-gomathy-page="focus"] #pages p,
  body[data-gomathy-page="focus"] #pages li{font-size:.86rem!important;line-height:1.35!important}
  body[data-gomathy-page="focus"] #pages .text-lg{font-size:1.02rem!important}

  /* ---------- Quand la hauteur devient juste : on replie, on ne rapetisse pas ---------- */
  #pages.gomathy-v62-layout-tight .gmx-ps-head p,
  #pages.gomathy-v62-layout-tight .gomathy-extra-physics-v8 .gomathy-tool-title-v8 p,
  #pages.gomathy-v62-layout-tight .gsvt-head-v60 span,
  #pages.gomathy-v62-layout-tight .gomathy-control-wizard-v60>.mb-8.max-w-4xl p{display:none!important}
  #pages.gomathy-v62-layout-tight .gmx-ps-head,
  #pages.gomathy-v62-layout-tight .gomathy-tool-title-v8,
  #pages.gomathy-v62-layout-tight .gsvt-head-v60{padding-top:.42rem!important;padding-bottom:.3rem!important}
  #pages.gomathy-v62-layout-tight .gmx-ps-tabs,
  #pages.gomathy-v62-layout-tight .gsvt-tabs-v60{padding-top:.12rem!important;padding-bottom:.25rem!important}
  #pages.gomathy-v62-layout-tight .gomathy-extra-visual-v8>svg,
  #pages.gomathy-v62-layout-tight .gomathy-tool-primary-card-v8 svg,
  #pages.gomathy-v62-layout-tight .gmx-ps-visual svg{max-height:235px!important}
  #pages.gomathy-v62-layout-tight .gomathy-tool-primary-card-v8,
  #pages.gomathy-v62-layout-tight .gomathy-extra-controls-v8,
  #pages.gomathy-v62-layout-tight .gomathy-extra-visual-v8,
  #pages.gomathy-v62-layout-tight .gsvt-controls-v60,
  #pages.gomathy-v62-layout-tight .gsvt-visual-v60{padding:.64rem!important}

  #pages.gomathy-v62-layout-dense .gmx-ps-head p,
  #pages.gomathy-v62-layout-dense .gmx-ps-head>b,
  #pages.gomathy-v62-layout-dense .gomathy-extra-physics-v8 .gomathy-tool-title-v8 p,
  #pages.gomathy-v62-layout-dense .gsvt-head-v60 span,
  #pages.gomathy-v62-layout-dense .gsvt-head-v60>b,
  #pages.gomathy-v62-layout-dense .gpx-note-v60{display:none!important}
  #pages.gomathy-v62-layout-dense .gomathy-extra-results-v8,
  #pages.gomathy-v62-layout-dense .gsvt-metrics-v60{grid-template-columns:repeat(4,minmax(0,1fr))!important}
  #pages.gomathy-v62-layout-dense .gomathy-extra-visual-v8>svg,
  #pages.gomathy-v62-layout-dense .gomathy-tool-primary-card-v8 svg,
  #pages.gomathy-v62-layout-dense .gmx-ps-visual svg{max-height:205px!important}
  #pages.gomathy-v62-layout-dense .gomathy-tool-primary-card-v8 .space-y-4{grid-template-columns:repeat(3,minmax(0,1fr))!important}

  /* Neutralise explicitement les anciennes classes qui réduisaient la typo. */
  #pages.gomathy-v60-tight .gomathy-tool-root-v8>h2,
  #pages.gomathy-v60-ultra-tight .gomathy-tool-root-v8>h2{font-size:1.72rem!important}
  #pages.gomathy-v60-tight .gomathy-tool-primary-card-v8 p,
  #pages.gomathy-v60-tight .gomathy-tool-primary-card-v8 label{font-size:.82rem!important}
  #pages.gomathy-v60-ultra-tight .gomathy-tool-title-v8,
  #pages.gomathy-v60-ultra-tight .gmx-ps-head{display:flex!important}
}

@media (min-width:900px) and (max-height:760px){
  /* Petit écran vertical : priorité au contenu de travail, jamais à la réduction de police. */
  body.gomathy-v60-tool-active:not([data-gomathy-page="graph"]) #site-header>.mx-auto{padding-top:.2rem!important;padding-bottom:.2rem!important}
  body.gomathy-v60-tool-active:not([data-gomathy-page="graph"]) .gomathy-logo-button{width:42px!important;height:42px!important}
}

/* ===== SOURCE: styles/gomathy-probability-fill-v68.css ===== */
/* GoMathy V68 — Probabilités : exploiter toute la surface utile sans réduire la lisibilité. */
@media (min-width: 900px) {
  body[data-gomathy-page="probability"] [data-prob-panel="tree"] .gmx-ps-visual {
    display:grid!important;
    grid-template-rows:minmax(0,1fr) auto!important;
    align-items:stretch!important;
    justify-content:stretch!important;
    gap:.55rem!important;
  }

  body[data-gomathy-page="probability"] [data-prob-panel="tree"] #prob-tree-svg {
    width:100%!important;
    height:100%!important;
    min-height:0!important;
    display:flex!important;
    align-items:stretch!important;
    justify-content:center!important;
    overflow:hidden!important;
  }

  body[data-gomathy-page="probability"] [data-prob-panel="tree"] .gmx-prob-tree-svg,
  #pages.gomathy-v62-layout-tight [data-prob-panel="tree"] .gmx-prob-tree-svg,
  #pages.gomathy-v62-layout-dense [data-prob-panel="tree"] .gmx-prob-tree-svg,
  #pages.gomathy-v60-tight [data-prob-panel="tree"] .gmx-prob-tree-svg,
  #pages.gomathy-v60-ultra-tight [data-prob-panel="tree"] .gmx-prob-tree-svg {
    display:block!important;
    width:100%!important;
    height:100%!important;
    min-height:0!important;
    max-height:none!important;
  }

  body[data-gomathy-page="probability"] [data-prob-panel="tree"] .gmx-ps-hint {
    margin-top:0!important;
    flex:0 0 auto!important;
    padding:.52rem .7rem!important;
    font-size:.8rem!important;
  }

  /* Les autres vues utilisent elles aussi la hauteur libre avant de laisser du blanc. */
  body[data-gomathy-page="probability"] [data-prob-panel="binomial"] #prob-bin-svg,
  body[data-gomathy-page="probability"] [data-prob-panel="counting"] #prob-count-svg {
    flex:1 1 auto;
    min-height:0;
    display:flex;
    align-items:center;
  }
  body[data-gomathy-page="probability"] [data-prob-panel="binomial"] .gmx-prob-bin-svg,
  body[data-gomathy-page="probability"] [data-prob-panel="counting"] #prob-count-svg>svg {
    width:100%!important;
    max-height:100%!important;
  }
}

/* ===== SOURCE: styles/gomathy-tools-direct-v73.css ===== */
/* GoMathy V73 — outils directs : pas de bandeaux-guides, pas de modes avancés inutiles. */
html{scrollbar-gutter:stable}
#gomathy-tool-guide,.gmx-physics-lab,.gomathy-science-lab-details-v8,[data-gmx-action="guide"]{display:none!important}

/* ===== CONTRÔLE SUR MESURE : exception volontaire au sans-scroll ===== */
body[data-gomathy-page="control"]{overflow-y:auto!important;overflow-x:hidden!important}
body[data-gomathy-page="control"] main{overflow:visible!important;height:auto!important;min-height:calc(100vh - var(--shell-header-h,126px))!important}
body[data-gomathy-page="control"] #pages,
body[data-gomathy-page="control"] #pages>div{height:auto!important;max-height:none!important;overflow:visible!important;min-height:0!important}
body[data-gomathy-page="control"] .gmx-v72-control{padding-bottom:72px!important}
body[data-gomathy-page="control"] .gmx-v72-tabs{position:sticky!important;top:calc(var(--shell-header-h,126px) + 8px)!important;left:0;right:0;z-index:45;width:100%;box-sizing:border-box;margin-inline:0!important;transform:none!important}
body[data-gomathy-page="control"] .gmx-v72-chapters{max-height:none!important;overflow:visible!important}
body[data-gomathy-page="control"] .gmx-v72-stage{overflow:visible!important}
body[data-gomathy-page="control"] .gmx-v72-results{overflow:visible!important}
body[data-gomathy-page="control"] .gmx-v72-chapter,
body[data-gomathy-page="control"] .gmx-v72-preset,
body[data-gomathy-page="control"] .gmx-v72-choice{box-sizing:border-box;border-width:1px!important}
body[data-gomathy-page="control"] .gmx-v72-chapter.is-selected,
body[data-gomathy-page="control"] .gmx-v72-preset.is-selected,
body[data-gomathy-page="control"] .gmx-v72-choice.is-selected{box-shadow:inset 0 0 0 1px #60a5fa,0 8px 20px -18px rgba(37,99,235,.7)!important}

/* V73.1 — stabilité du contrôle : le défilement appartient à la page, jamais à un sous-panneau. */
html:has(body[data-gomathy-page="control"]){scrollbar-gutter:stable}
body[data-gomathy-page="control"],body[data-gomathy-page="control"] #app{height:auto!important;min-height:100vh!important;overflow-y:auto!important}
body[data-gomathy-page="control"].gomathy-v60-tool-active{overflow-y:auto!important}
body[data-gomathy-page="control"] .gmx-v72-control{width:min(1240px,calc(100% - 24px))!important;max-width:1240px!important;margin-inline:auto!important;box-sizing:border-box}
body[data-gomathy-page="control"] .gmx-v72-tabs{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;flex:none!important;min-height:58px;background:rgba(239,246,255,.97)!important;backdrop-filter:blur(10px)}
body[data-gomathy-page="control"] .gmx-v72-tabs button{min-width:0!important;width:100%!important;box-sizing:border-box!important}
body[data-gomathy-page="control"] .gmx-v72-program-summary{display:grid!important;grid-template-columns:minmax(180px,.75fr) minmax(260px,1.25fr) minmax(260px,1fr)!important;align-items:center!important}
body[data-gomathy-page="control"] .gmx-v72-program-summary span{display:block!important;min-width:0!important;text-align:center!important;white-space:normal!important}
body[data-gomathy-page="control"] .gmx-v72-stage__footer{position:relative!important}
body[data-gomathy-page="control"] .gmx-v72-sequential{overflow:visible!important}
body[data-gomathy-page="control"] .gmx-v72-paper{overflow:visible!important}

/* ===== PHYSIQUE-CHIMIE : structure directe ===== */
@media (min-width:900px){
  body[data-gomathy-page="molecules"] #pages,
  body[data-gomathy-page="electricity-model"] #pages,
  body[data-gomathy-page="gravity-model"] #pages,
  body[data-gomathy-page="reference-frame"] #pages,
  body[data-gomathy-page="atom-model"] #pages,
  body[data-gomathy-page="periodic-table"] #pages,
  body[data-gomathy-page="chem-equations"] #pages,
  body[data-gomathy-page="lenses-model"] #pages,
  body[data-gomathy-page="eye-model"] #pages,
  body[data-gomathy-page="mol-model"] #pages,
  body[data-gomathy-page="pc-conversions"] #pages,
  body[data-gomathy-page="motion-forces"] #pages,
  body[data-gomathy-page="waves-signals"] #pages,
  body[data-gomathy-page="thermal-energy"] #pages,
  body[data-gomathy-page="calibration-tool"] #pages{font-size:15px}

  .gomathy-pc-direct-v73{height:100%;min-height:0;display:flex;flex-direction:column;overflow:hidden;padding:0 .2rem .2rem}
  .gomathy-pc-direct-v73>button[data-action="go-home"]{margin-bottom:.35rem!important;flex:0 0 auto}
  .gomathy-pc-direct-v73>h2{margin:.05rem 0 .3rem!important;font-size:clamp(1.65rem,2vw,2.15rem)!important;line-height:1.05!important;flex:0 0 auto}
  .gomathy-pc-direct-v73>p.mb-6,.gomathy-pc-direct-v73>p.mb-5{margin-bottom:.55rem!important;font-size:.9rem!important;line-height:1.35!important;flex:0 0 auto}
  .gomathy-pc-main-grid-v73{flex:1;min-height:0;height:auto!important;gap:.7rem!important;align-items:stretch!important;overflow:hidden}
  .gomathy-pc-card-v73{min-height:0!important;height:100%!important;overflow:hidden!important;padding:1rem!important;border-radius:20px!important}
  .gomathy-pc-card-v73 h3{font-size:1.15rem!important;margin-bottom:.55rem!important}
  .gomathy-pc-card-v73 label,.gomathy-pc-card-v73 p,.gomathy-pc-card-v73 li{font-size:.82rem!important;line-height:1.34!important}
  .gomathy-pc-card-v73 input,.gomathy-pc-card-v73 select{font-size:.86rem!important;padding:.48rem .58rem!important}
  .gomathy-pc-card-v73 svg{max-height:min(39vh,330px)!important}

  /* Les blocs utiles précédemment cachés redeviennent de simples zones intégrées. */
  .gomathy-direct-section-v73{display:block!important;margin:.45rem 0!important;padding:.6rem .7rem!important;border:1px solid #e2e8f0!important;border-radius:14px!important;background:#f8fafc!important}
  .gomathy-direct-section-v73>p:first-child{margin-top:0!important}
  .gomathy-tool-secondary-details-v8__body,.gomathy-secondary-details-v8__body{display:block!important}

  /* Lewis : formule immédiatement accessible, sans constructeur avancé ni interaction non covalente. */
  .gomathy-lewis-input-v73{flex:0 0 auto;margin:0 0 .55rem;padding:.7rem .8rem;border:1px solid #d8b4fe;border-radius:16px;background:linear-gradient(90deg,#faf5ff,#fff)}
  .gomathy-lewis-input-v73__head{display:flex;align-items:center;gap:.55rem;margin-bottom:.48rem}
  .gomathy-lewis-input-v73__head>span{display:grid;place-items:center;width:28px;height:28px;border-radius:999px;background:#7e22ce;color:#fff;font-size:.76rem;font-weight:950}
  .gomathy-lewis-input-v73__head b{display:block;font-size:.95rem;color:#111827}.gomathy-lewis-input-v73__head small{display:block;color:#64748b;font-size:.7rem;margin-top:.05rem}
  .gomathy-lewis-input-v73 .gomathy-formula-builder-v8{display:grid!important;grid-template-columns:minmax(240px,1fr) auto auto;gap:.45rem;align-items:end}
  .gomathy-lewis-input-v73 .gomathy-formula-builder-v8 label{font-size:.78rem;font-weight:850}
  .gomathy-lewis-input-v73 .gomathy-formula-builder-v8 input{min-height:42px;font-size:.92rem}
  .gomathy-lewis-input-v73 .gomathy-lewis-formulas-v8{margin:.45rem 0 0!important}
  .gomathy-lewis-input-v73 .gomathy-inline-error-v8,.gomathy-lewis-input-v73 .gomathy-inline-hint-v8{margin:.4rem 0 0!important}
  .gomathy-lewis-v8{height:100%;display:flex;flex-direction:column;overflow:hidden}
  .gomathy-lewis-v8 .gomathy-tool-title-v8{margin-bottom:.5rem!important;flex:0 0 auto}
  .gomathy-lewis-direct-v73{flex:0 0 auto;display:grid;grid-template-columns:minmax(190px,.34fr) minmax(0,1.66fr);gap:.55rem;align-items:center;margin:0 0 .55rem;padding:.65rem .75rem;border:1px solid #d8b4fe;border-radius:16px;background:linear-gradient(90deg,#faf5ff,#fff)}
  .gomathy-lewis-direct-v73__head span{display:block;font-size:.66rem;font-weight:950;text-transform:uppercase;letter-spacing:.08em;color:#7e22ce}
  .gomathy-lewis-direct-v73__head strong{display:block;margin-top:.08rem;font-size:.95rem;color:#111827}
  .gomathy-lewis-direct-v73__head small{display:none}
  .gomathy-lewis-direct-v73 .gomathy-formula-builder-v8{display:grid!important;grid-template-columns:minmax(210px,1fr) auto auto;gap:.45rem;align-items:end}
  .gomathy-lewis-direct-v73 .gomathy-formula-builder-v8 label{font-size:.76rem;font-weight:850}
  .gomathy-lewis-direct-v73 .gomathy-formula-builder-v8 input{min-height:40px;font-size:.9rem}
  .gomathy-lewis-direct-v73 .gomathy-lewis-formulas-v8{grid-column:1/-1;margin:.05rem 0 0!important}
  .gomathy-lewis-layout-v8{flex:1;min-height:0;grid-template-columns:minmax(0,1.35fr) minmax(300px,.65fr)!important;gap:.7rem!important}
  .gomathy-lewis-main-v8,.gomathy-lewis-info-v8{height:100%;min-height:0;overflow:hidden;padding:.8rem!important}
  .gomathy-lewis-canvas-v8{height:auto!important;min-height:0!important;flex:1}
  .gomathy-lewis-canvas-v8 svg{height:min(42vh,340px)!important;min-height:245px}
  .gomathy-lewis-info-v8>p{font-size:.82rem!important}
  .gomathy-lewis-method-v8{margin:.5rem 0!important;gap:.3rem!important}
  .gomathy-lewis-method-v8 li{padding:.34rem .45rem!important}

  /* Électricité : tout ce qui sert à construire/lire le circuit est visible. */
  body[data-gomathy-page="electricity-model"] .gomathy-pc-card-v73:first-of-type>.mb-4.rounded-2xl{margin-bottom:.45rem!important;padding:.65rem!important}
  body[data-gomathy-page="electricity-model"] .gomathy-pc-card-v73 .max-h-56{max-height:145px!important}
  body[data-gomathy-page="electricity-model"] .gomathy-pc-card-v73 .mb-4{margin-bottom:.45rem!important}
  body[data-gomathy-page="electricity-model"] .gomathy-pc-card-v73 .mt-4{margin-top:.45rem!important}
  body[data-gomathy-page="electricity-model"] .gomathy-pc-card-v73 svg{max-height:245px!important}

  /* Référentiel : deux trajectoires + conclusion visibles simultanément. */
  body[data-gomathy-page="reference-frame"] .gomathy-reference-panels{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:.65rem!important;min-height:0;flex:1}
  body[data-gomathy-page="reference-frame"] .gomathy-reference-panel{padding:.65rem!important;min-height:0;overflow:hidden}
  body[data-gomathy-page="reference-frame"] .gomathy-reference-panel svg{height:min(27vh,220px)!important}
  body[data-gomathy-page="reference-frame"] .mt-5.grid{margin-top:.5rem!important;gap:.55rem!important;flex:0 0 auto}

  /* Gravitation : paramètres, données, formule et lecture vectorielle visibles sans tiroir. */
  body[data-gomathy-page="gravity-model"] .gomathy-pc-main-grid-v73{grid-template-columns:minmax(310px,.78fr) minmax(0,1.22fr)!important}
  body[data-gomathy-page="gravity-model"] .gomathy-pc-card-v73 .mt-5,body[data-gomathy-page="gravity-model"] .gomathy-pc-card-v73 .mt-4{margin-top:.45rem!important}
  body[data-gomathy-page="gravity-model"] .gomathy-pc-card-v73 .p-4{padding:.6rem!important}
  body[data-gomathy-page="gravity-model"] .gomathy-pc-card-v73 svg{max-height:300px!important}

  /* Mole : relations masse/n/particules/concentration toutes visibles. */
  body[data-gomathy-page="mol-model"] .gomathy-pc-card-v73{overflow:hidden!important}
  body[data-gomathy-page="mol-model"] .gomathy-mole-chain{margin:.45rem 0!important;gap:.35rem!important}
  body[data-gomathy-page="mol-model"] .gomathy-secondary-details-v8__body{padding:.55rem!important;border:1px solid #a5f3fc;border-radius:14px;background:#ecfeff}

  /* Tableau périodique : aucune découpe horizontale sur desktop. */
  body[data-gomathy-page="periodic-table"] .gomathy-periodic-direct-v73{width:100%!important;max-width:none!important;padding-inline:0!important}
  body[data-gomathy-page="periodic-table"] .gomathy-periodic-direct-v73>h2{margin-bottom:.45rem!important;font-size:1.8rem!important}
  body[data-gomathy-page="periodic-table"] .gomathy-periodic-direct-v73>.mb-5.grid{grid-template-columns:minmax(280px,.68fr) minmax(430px,1.32fr)!important;gap:.55rem!important;margin-bottom:.5rem!important}
  body[data-gomathy-page="periodic-table"] .gomathy-periodic-direct-v73>.mb-5.grid>article{padding:.65rem!important}
  body[data-gomathy-page="periodic-table"] .gomathy-periodic-fit-v73{overflow:hidden!important;flex:1;min-height:0;border-radius:18px!important}
  body[data-gomathy-page="periodic-table"] .gomathy-periodic-fit-v73>div{min-width:0!important;width:100%!important;padding:.45rem!important}
  body[data-gomathy-page="periodic-table"] .gomathy-periodic-fit-v73 .grid{grid-template-columns:54px repeat(18,minmax(0,1fr))!important;gap:3px!important;width:100%!important}
  body[data-gomathy-page="periodic-table"] .gomathy-periodic-cell{min-width:0!important;width:auto!important;height:clamp(42px,5.3vh,52px)!important;min-height:42px!important;padding:.15rem .08rem!important;border-radius:7px!important;overflow:hidden!important;align-items:center!important;text-align:center!important}
  body[data-gomathy-page="periodic-table"] .gomathy-periodic-cell p{font-size:.46rem!important;line-height:1!important;margin:0!important}
  body[data-gomathy-page="periodic-table"] .gomathy-periodic-symbol{font-size:.94rem!important;line-height:1!important;font-weight:950!important}
  body[data-gomathy-page="periodic-table"] .gomathy-periodic-name{font-size:.43rem!important;line-height:1.05!important;white-space:nowrap!important;overflow:hidden!important;width:100%;text-align:center}

  /* Atome : le tableau de sélection devient une vraie fenêtre plein écran locale. */
  body[data-gomathy-page="atom-model"] details.gomathy-atom-periodic-v73>summary{padding:.55rem .7rem;border:1px solid #99f6e4;border-radius:12px;background:#fff}
  body.gomathy-atom-periodic-open-v73 details.gomathy-atom-periodic-v73[open]{position:fixed!important;inset:76px 26px 24px!important;z-index:500!important;margin:0!important;padding:14px!important;background:#fff!important;border:1px solid #99f6e4!important;border-radius:20px!important;box-shadow:0 28px 80px -24px rgba(15,23,42,.55);overflow:hidden!important}
  body.gomathy-atom-periodic-open-v73 details.gomathy-atom-periodic-v73[open]>summary{position:relative;z-index:2;margin-bottom:8px;background:#ecfdf5;font-size:.95rem}
  body.gomathy-atom-periodic-open-v73 details.gomathy-atom-periodic-v73[open] .gomathy-mini-periodic-wrap{height:calc(100% - 48px)!important;overflow:hidden!important;display:grid;place-items:center}
  body.gomathy-atom-periodic-open-v73 details.gomathy-atom-periodic-v73[open] .gomathy-mini-periodic{width:min(1180px,100%)!important;min-width:0!important;max-width:1180px!important;grid-template-columns:48px repeat(18,minmax(0,1fr))!important;gap:3px!important}
  body.gomathy-atom-periodic-open-v73 details.gomathy-atom-periodic-v73[open] .gomathy-mini-periodic button{min-width:0!important;width:auto!important;height:clamp(40px,5.1vh,50px)!important;padding:.12rem!important}
  body.gomathy-atom-periodic-open-v73 details.gomathy-atom-periodic-v73[open] .gomathy-mini-periodic button span{font-size:.82rem!important;font-weight:950!important}
  body.gomathy-atom-periodic-open-v73 details.gomathy-atom-periodic-v73[open] .gomathy-mini-periodic button small{font-size:.52rem!important}
  body.gomathy-atom-periodic-open-v73{overflow:hidden!important}

  /* Nouveaux outils : présentation plus nette et visuel réellement central. */
  .gomathy-extra-physics-v8{gap:.5rem!important}
  .gomathy-extra-physics-v8 .gomathy-tool-title-v8{padding:.65rem .9rem!important;border-radius:16px!important}
  .gomathy-extra-physics-v8 .gomathy-tool-title-v8 h2{font-size:1.75rem!important}
  .gomathy-extra-physics-v8 .gomathy-tool-title-v8 p{font-size:.84rem!important}
  .gomathy-extra-grid-v8{grid-template-columns:minmax(330px,.72fr) minmax(0,1.28fr)!important;gap:.7rem!important}
  .gomathy-extra-controls-v8,.gomathy-extra-visual-v8{padding:.9rem!important;border-radius:20px!important;box-shadow:0 12px 26px -24px rgba(15,23,42,.55)}
  .gomathy-extra-controls-v8{gap:.48rem!important}
  .gomathy-extra-controls-v8 label{font-size:.82rem!important}
  .gomathy-extra-controls-v8 input,.gomathy-extra-controls-v8 select{font-size:.9rem!important;padding:.5rem .58rem!important}
  .gomathy-extra-controls-v8>button{font-size:.9rem!important;padding:.58rem .78rem!important;border-radius:11px}
  .gomathy-extra-formula-v8{font-size:.82rem!important;padding:.6rem .7rem!important;border-radius:12px!important}
  .gpx-note-v60{font-size:.72rem!important;padding:.55rem .65rem!important}
  .gomathy-extra-visual-v8>svg{max-height:360px!important}
  .gomathy-extra-results-v8 p{padding:.55rem!important}
  .gomathy-extra-results-v8 span{font-size:.64rem!important}
  .gomathy-extra-results-v8 strong{font-size:.82rem!important}

  .gomathy-extra-panel-head-v73{display:flex;align-items:center;justify-content:space-between;gap:.7rem;margin-bottom:.25rem;padding-bottom:.5rem;border-bottom:1px solid #eef2f7}
  .gomathy-extra-panel-head-v73 span{display:inline-grid;place-items:center;width:28px;height:28px;border-radius:999px;background:#0f2d68;color:#fff;font-size:.75rem;font-weight:950}
  .gomathy-extra-panel-head-v73 b{font-size:1rem;color:#0f172a}
  .gomathy-extra-panel-head-v73 small{margin-left:auto;color:#64748b;font-size:.7rem;font-weight:750}
  .gomathy-extra-live-v73{display:flex;align-items:center;gap:.4rem;margin-top:auto;border-radius:11px;background:#ecfdf5;padding:.48rem .58rem;color:#047857;font-size:.72rem;font-weight:850}
  .gomathy-extra-live-v73::before{content:"";width:7px;height:7px;border-radius:50%;background:#10b981;box-shadow:0 0 0 3px rgba(16,185,129,.12)}
  .gomathy-extra-results-v8{gap:.45rem!important}
  .gomathy-extra-results-v8 p{border:1px solid #e2e8f0!important;background:#f8fafc!important;border-radius:13px!important}
}

@media (max-width:899px){
  body[data-gomathy-page="control"] .gmx-v72-program-summary{grid-template-columns:1fr!important}

  .gomathy-lewis-direct-v73{display:block}.gomathy-lewis-direct-v73 .gomathy-formula-builder-v8,.gomathy-lewis-input-v73 .gomathy-formula-builder-v8{grid-template-columns:1fr!important}.gomathy-lewis-layout-v8{grid-template-columns:1fr!important}
  body[data-gomathy-page="control"] .gmx-v72-tabs{top:4px!important}
  body.gomathy-atom-periodic-open-v73 details.gomathy-atom-periodic-v73[open]{inset:64px 8px 8px!important;overflow:auto!important}
}

/* ===== SOURCE: styles/gomathy-science-tools-v75.css ===== */
/* GoMathy V75 — outils sciences : lisibilité, surface utile, zéro rognage. */
@media (min-width:900px){
  /* Tous les outils sciences : la hauteur appartient au contenu utile. */
  body[data-gomathy-page="molecules"] #pages,
  body[data-gomathy-page="electricity-model"] #pages,
  body[data-gomathy-page="gravity-model"] #pages,
  body[data-gomathy-page="reference-frame"] #pages,
  body[data-gomathy-page="atom-model"] #pages,
  body[data-gomathy-page="periodic-table"] #pages,
  body[data-gomathy-page="chem-equations"] #pages,
  body[data-gomathy-page="lenses-model"] #pages,
  body[data-gomathy-page="eye-model"] #pages,
  body[data-gomathy-page="mol-model"] #pages,
  body[data-gomathy-page="pc-conversions"] #pages,
  body[data-gomathy-page="motion-forces"] #pages,
  body[data-gomathy-page="waves-signals"] #pages,
  body[data-gomathy-page="thermal-energy"] #pages,
  body[data-gomathy-page="calibration-tool"] #pages,
  body[data-gomathy-page="chemistry-lab"] #pages,
  body[data-gomathy-page="svt-tools"] #pages{height:calc(100vh - var(--shell-header-h,126px))!important;max-height:none!important;overflow:hidden!important;padding-bottom:6px!important}

  /* Annule les anciennes compressions agressives qui rognaient le haut. */
  body[data-gomathy-page] #pages.gomathy-v60-tight,
  body[data-gomathy-page] #pages.gomathy-v60-ultra-tight{font-size:inherit!important}
  body[data-gomathy-page="molecules"] .gomathy-pc-direct-v73,
  body[data-gomathy-page="electricity-model"] .gomathy-pc-direct-v73,
  body[data-gomathy-page="gravity-model"] .gomathy-pc-direct-v73,
  body[data-gomathy-page="reference-frame"] .gomathy-pc-direct-v73,
  body[data-gomathy-page="atom-model"] .gomathy-pc-direct-v73,
  body[data-gomathy-page="periodic-table"] .gomathy-pc-direct-v73,
  body[data-gomathy-page="chem-equations"] .gomathy-pc-direct-v73,
  body[data-gomathy-page="mol-model"] .gomathy-pc-direct-v73,
  body[data-gomathy-page="pc-conversions"] .gomathy-pc-direct-v73{padding-top:5px!important}

  /* OPTIQUE : 250 px de réglages, tout le reste au dessin. */
  body[data-gomathy-page="lenses-model"] .gomathy-optics-section-v8,
  body[data-gomathy-page="eye-model"] .gomathy-optics-section-v8{height:calc(100% - 46px)!important;min-height:0!important;margin:0!important;padding:0!important;border:0!important;box-shadow:none!important;background:transparent!important}
  body[data-gomathy-page="lenses-model"] .gomathy-optics-section-v8>.gomathy-optics-section__heading,
  body[data-gomathy-page="eye-model"] .gomathy-optics-section-v8>.gomathy-optics-section__heading{display:none!important}
  body[data-gomathy-page="lenses-model"] .gomathy-optics-section-v8>div,
  body[data-gomathy-page="eye-model"] .gomathy-optics-section-v8>div{height:100%!important;min-height:0!important;display:flex!important;flex-direction:column!important;overflow:hidden!important}
  body[data-gomathy-page="lenses-model"] .gomathy-optics-section-v8>div>button,
  body[data-gomathy-page="eye-model"] .gomathy-optics-section-v8>div>button{display:none!important}
  body[data-gomathy-page="lenses-model"] .gomathy-optics-section-v8>div>h2,
  body[data-gomathy-page="eye-model"] .gomathy-optics-section-v8>div>h2{font-size:1.45rem!important;margin:0 0 .35rem!important;line-height:1!important}
  body[data-gomathy-page="lenses-model"] .gomathy-optics-section-v8>div>.grid,
  body[data-gomathy-page="eye-model"] .gomathy-optics-section-v8>div>.grid{flex:1!important;min-height:0!important;height:auto!important;display:grid!important;grid-template-columns:250px minmax(0,1fr)!important;gap:.65rem!important;overflow:hidden!important}
  body[data-gomathy-page="lenses-model"] .gomathy-optics-section-v8 article,
  body[data-gomathy-page="eye-model"] .gomathy-optics-section-v8 article{height:100%!important;min-height:0!important;overflow:hidden!important;padding:.72rem!important;border-radius:18px!important}
  body[data-gomathy-page="lenses-model"] .gomathy-optics-section-v8 article:first-child h3,
  body[data-gomathy-page="eye-model"] .gomathy-optics-section-v8 article:first-child h3{font-size:1rem!important;margin-bottom:.35rem!important}
  body[data-gomathy-page="lenses-model"] .gomathy-optics-section-v8 article:first-child label,
  body[data-gomathy-page="eye-model"] .gomathy-optics-section-v8 article:first-child label{font-size:.72rem!important;margin-bottom:.1rem!important}
  body[data-gomathy-page="lenses-model"] .gomathy-optics-section-v8 article:first-child input,
  body[data-gomathy-page="lenses-model"] .gomathy-optics-section-v8 article:first-child select,
  body[data-gomathy-page="eye-model"] .gomathy-optics-section-v8 article:first-child input,
  body[data-gomathy-page="eye-model"] .gomathy-optics-section-v8 article:first-child select{padding:.36rem .5rem!important;margin-bottom:.34rem!important;font-size:.8rem!important;min-height:34px!important}
  body[data-gomathy-page="lenses-model"] .gomathy-optics-results-v9,
  body[data-gomathy-page="eye-model"] .gomathy-optics-section-v8 article:nth-child(2){display:flex!important;flex-direction:column!important;min-height:0!important}
  body[data-gomathy-page="lenses-model"] .gomathy-optics-results-v9 h3,
  body[data-gomathy-page="eye-model"] .gomathy-optics-section-v8 article:nth-child(2) h3{font-size:1rem!important;margin:0 0 .3rem!important;flex:0 0 auto}
  body[data-gomathy-page="lenses-model"] .gomathy-optics-results-v9>div:has(svg),
  body[data-gomathy-page="eye-model"] .gomathy-optics-section-v8 article:nth-child(2)>div:has(svg){flex:1 1 auto!important;min-height:0!important;overflow:hidden!important;margin:0 0 .35rem!important;padding:.35rem!important;display:flex!important}
  body[data-gomathy-page="lenses-model"] .gomathy-optics-results-v9 svg,
  body[data-gomathy-page="eye-model"] .gomathy-optics-section-v8 article:nth-child(2) svg{min-width:0!important;width:100%!important;height:100%!important;max-height:none!important;min-height:330px!important}
  body[data-gomathy-page="lenses-model"] .gomathy-optics-results-v9>.rounded-2xl,
  body[data-gomathy-page="eye-model"] .gomathy-optics-section-v8 article:nth-child(2)>.rounded-2xl{padding:.38rem .55rem!important;margin-bottom:.3rem!important;font-size:.7rem!important;line-height:1.25!important;flex:0 0 auto}
  body[data-gomathy-page="lenses-model"] .gomathy-optics-values-v9{grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:.25rem!important;margin:.15rem 0 0!important;flex:0 0 auto}
  body[data-gomathy-page="lenses-model"] .gomathy-optics-values-v9 p{padding:.3rem .4rem!important;font-size:.68rem!important}
  body[data-gomathy-page="eye-model"] .gomathy-optics-section-v8 article:nth-child(2)>.space-y-2{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:.25rem!important;margin-top:.1rem!important}
  body[data-gomathy-page="eye-model"] .gomathy-optics-section-v8 article:nth-child(2)>.space-y-2 p{margin:0!important;padding:.3rem .4rem!important;border:1px solid #e2e8f0;border-radius:9px;background:#f8fafc;font-size:.68rem!important}

  /* LEWIS : input + bouton toujours visibles et schéma nettement plus grand. */
  body[data-gomathy-page="molecules"] .gomathy-lewis-v8{height:100%!important;padding-top:2px!important}
  body[data-gomathy-page="molecules"] .gomathy-lewis-v8>button{margin:0 0 .18rem!important}
  body[data-gomathy-page="molecules"] .gomathy-tool-title-v8{margin:0 0 .35rem!important}
  body[data-gomathy-page="molecules"] .gomathy-tool-title-v8 h2{font-size:1.55rem!important}
  body[data-gomathy-page="molecules"] .gomathy-tool-title-v8 p:last-child{font-size:.78rem!important;margin-top:.12rem!important}
  body[data-gomathy-page="molecules"] .gomathy-lewis-input-v73{margin:0 0 .38rem!important;padding:.55rem .7rem!important}
  body[data-gomathy-page="molecules"] .gomathy-lewis-input-v73__head{display:none!important}
  body[data-gomathy-page="molecules"] .gomathy-lewis-input-v73 .gomathy-formula-builder-v8{grid-template-columns:minmax(220px,1fr) auto auto!important}
  body[data-gomathy-page="molecules"] .gomathy-lewis-input-v73 .gomathy-formula-builder-v8 button{min-height:40px!important;padding:.48rem .75rem!important;font-size:.8rem!important}
  body[data-gomathy-page="molecules"] .gomathy-lewis-layout-v8{grid-template-columns:minmax(0,1.55fr) minmax(260px,.45fr)!important;gap:.55rem!important;min-height:0!important}
  body[data-gomathy-page="molecules"] .gomathy-lewis-main-v8{display:flex!important;flex-direction:column!important;padding:.55rem!important}
  body[data-gomathy-page="molecules"] .gomathy-lewis-canvas-v8{flex:1!important;min-height:0!important;height:auto!important}
  body[data-gomathy-page="molecules"] .gomathy-lewis-canvas-v8 svg{width:100%!important;height:100%!important;max-height:none!important;min-height:360px!important}
  body[data-gomathy-page="molecules"] .gomathy-lewis-legend-v8{flex:0 0 auto!important;padding:.25rem!important;font-size:.65rem!important}
  body[data-gomathy-page="molecules"] .gomathy-lewis-info-v8{padding:.6rem!important;overflow:auto!important}

  /* ÉLECTRICITÉ : schéma prioritaire, réglages compacts. */
  body[data-gomathy-page="electricity-model"] .gomathy-pc-main-grid-v73{grid-template-columns:270px minmax(0,1fr)!important;gap:.6rem!important}
  body[data-gomathy-page="electricity-model"] .gomathy-pc-card-v73{padding:.65rem!important}
  body[data-gomathy-page="electricity-model"] .gomathy-pc-card-v73:first-child{overflow:auto!important}
  body[data-gomathy-page="electricity-model"] .gomathy-pc-card-v73:first-child .gomathy-direct-section-v73{display:none!important}
  body[data-gomathy-page="electricity-model"] .gomathy-pc-card-v73:first-child .mb-4{margin-bottom:.3rem!important}
  body[data-gomathy-page="electricity-model"] .gomathy-pc-card-v73:nth-child(2){display:flex!important;flex-direction:column!important;overflow:hidden!important}
  body[data-gomathy-page="electricity-model"] .gomathy-pc-card-v73:nth-child(2)>div:has(svg){flex:1!important;min-height:0!important;margin-top:.35rem!important;padding:.3rem!important}
  body[data-gomathy-page="electricity-model"] .gomathy-pc-card-v73:nth-child(2) svg{width:100%!important;height:100%!important;max-height:none!important;min-height:330px!important}
  body[data-gomathy-page="electricity-model"] .gomathy-electricity-secondary-v10{padding:.45rem!important;margin-bottom:.3rem!important;font-size:.68rem!important}

  /* GRAVITATION : données à droite, schéma grand, aucun bloc rogné. */
  body[data-gomathy-page="gravity-model"] .gomathy-pc-main-grid-v73{grid-template-columns:minmax(0,1.6fr) 290px!important;gap:.6rem!important}
  body[data-gomathy-page="gravity-model"] .gomathy-pc-card-v73{padding:.65rem!important;overflow:hidden!important}
  body[data-gomathy-page="gravity-model"] .gomathy-pc-card-v73:first-child{order:2;overflow:auto!important}
  body[data-gomathy-page="gravity-model"] .gomathy-pc-card-v73:nth-child(2){order:1;display:flex!important;flex-direction:column!important}
  body[data-gomathy-page="gravity-model"] .gomathy-pc-card-v73:nth-child(2) svg{width:100%!important;height:100%!important;max-height:none!important;min-height:390px!important}

  /* RÉFÉRENTIEL : zone libre + dessins gardés grands. */
  body[data-gomathy-page="reference-frame"] .gomathy-reference-panels{min-height:0!important;flex:1!important}
  body[data-gomathy-page="reference-frame"] .gomathy-reference-panel{display:flex!important;flex-direction:column!important;overflow:hidden!important}
  body[data-gomathy-page="reference-frame"] .gomathy-reference-panel svg{flex:1!important;min-height:260px!important;max-height:none!important}
  .gsc-ref-smart-v75{margin:.2rem 0 .45rem!important;padding:.55rem!important;border:1px solid #bae6fd;border-radius:16px;background:linear-gradient(90deg,#f0f9ff,#fff);display:grid;grid-template-columns:minmax(0,1fr) auto;gap:.45rem;align-items:end}
  .gsc-ref-smart-v75 label{display:grid;gap:.18rem;font-size:.72rem;font-weight:850;color:#334155}.gsc-ref-smart-v75 textarea{resize:none;min-height:48px;padding:.45rem .55rem;border:1px solid #cbd5e1;border-radius:10px;background:#fff;font-size:.82rem}.gsc-ref-smart-v75 button{height:42px;padding:0 .8rem;border-radius:10px;background:#0f172a;color:#fff;font-size:.76rem;font-weight:900}.gsc-ref-smart-v75__examples{grid-column:1/-1;display:flex;gap:.3rem;flex-wrap:wrap}.gsc-ref-smart-v75__examples button{height:auto;padding:.25rem .5rem;background:#fff;color:#075985;border:1px solid #bae6fd;font-size:.65rem}

  /* ATOME + TABLEAU : le tableau n'utilise que la hauteur dont il a besoin. */
  body[data-gomathy-page="atom-model"] .gomathy-pc-main-grid-v73{grid-template-columns:280px minmax(0,1fr)!important}
  body[data-gomathy-page="atom-model"] .gomathy-pc-card-v73{overflow:hidden!important;padding:.65rem!important}
  body[data-gomathy-page="atom-model"] .gomathy-pc-card-v73 svg{height:100%!important;max-height:none!important;min-height:330px!important}
  body.gomathy-atom-periodic-open-v73[data-gomathy-page="atom-model"] .gomathy-atom-periodic-v73{position:fixed!important;inset:calc(var(--shell-header-h,126px) + 10px) 16px 14px 16px!important;z-index:300!important;margin:0!important;padding:.65rem!important;border-radius:20px!important;background:#fff!important;overflow:hidden!important;box-shadow:0 22px 65px rgba(15,23,42,.28)!important}
  body.gomathy-atom-periodic-open-v73[data-gomathy-page="atom-model"] .gomathy-atom-periodic-v73>.gomathy-direct-section-v73{height:100%!important;min-height:0!important;overflow:hidden!important;padding:.35rem!important}
  body.gomathy-atom-periodic-open-v73[data-gomathy-page="atom-model"] .gomathy-mini-periodic-wrap{height:100%!important;overflow:hidden!important}
  body.gomathy-atom-periodic-open-v73[data-gomathy-page="atom-model"] .gomathy-mini-periodic{height:100%!important;align-content:center!important}

  body[data-gomathy-page="periodic-table"] .gomathy-periodic-direct-v73{height:100%!important;display:flex!important;flex-direction:column!important;overflow:hidden!important;padding:.15rem!important}
  body[data-gomathy-page="periodic-table"] .gomathy-periodic-direct-v73>button{margin:0 0 .15rem!important}
  body[data-gomathy-page="periodic-table"] .gomathy-periodic-direct-v73>h2{font-size:1.45rem!important;margin:0 0 .25rem!important}
  body[data-gomathy-page="periodic-table"] .gomathy-periodic-summary-v9{margin:0 0 .3rem!important;padding:.4rem .55rem!important;grid-template-columns:minmax(180px,.65fr) minmax(0,1.35fr)!important}
  body[data-gomathy-page="periodic-table"] .gomathy-periodic-stage-v9{flex:1!important;min-height:0!important;overflow:hidden!important;padding:.35rem!important}
  body[data-gomathy-page="periodic-table"] .gomathy-periodic-table-scroll,.gomathy-periodic-fit-v73{height:100%!important;overflow:hidden!important;display:flex!important;align-items:center!important}
  body[data-gomathy-page="periodic-table"] .gomathy-periodic-table-grid-v8{width:100%!important;min-width:0!important;height:auto!important;transform:none!important;grid-auto-rows:minmax(42px,1fr)!important;gap:3px!important}
  body[data-gomathy-page="periodic-table"] .gomathy-periodic-cell{min-width:0!important;min-height:42px!important;padding:.2rem!important}
  body[data-gomathy-page="periodic-table"] .gomathy-periodic-symbol{font-size:.85rem!important}.gomathy-periodic-name{font-size:.48rem!important}

  /* ÉQUATIONS, MOLE, CONVERSIONS : enlève le blanc et garde la totalité visible. */
  body[data-gomathy-page="chem-equations"] .gomathy-tool-root-v8,
  body[data-gomathy-page="mol-model"] .gomathy-tool-root-v8,
  body[data-gomathy-page="pc-conversions"] .gomathy-tool-root-v8{height:100%!important;display:flex!important;flex-direction:column!important;overflow:hidden!important;padding-top:3px!important}
  body[data-gomathy-page="chem-equations"] .gomathy-tool-core-grid-v8,
  body[data-gomathy-page="mol-model"] .gomathy-tool-core-grid-v8,
  body[data-gomathy-page="pc-conversions"] .gomathy-tool-core-grid-v8{flex:1!important;min-height:0!important;overflow:hidden!important;gap:.55rem!important}
  body[data-gomathy-page="mol-model"] .gomathy-tool-core-grid-v8{grid-template-columns:290px minmax(0,1fr)!important}
  body[data-gomathy-page="pc-conversions"] .gomathy-tool-core-grid-v8{grid-template-columns:280px minmax(0,1fr)!important}
  body[data-gomathy-page="mol-model"] .gomathy-tool-core-grid-v8 article,
  body[data-gomathy-page="pc-conversions"] .gomathy-tool-core-grid-v8 article{height:100%!important;overflow:hidden!important;padding:.65rem!important}

  /* Nouveaux ateliers (forces/ondes/thermique/dosage) — large visual, narrow controls. */
  .gomathy-extra-physics-v75{height:100%;display:flex;flex-direction:column;overflow:hidden;padding:.1rem .2rem .2rem}.gomathy-extra-physics-v75 .gomathy-v60-back{flex:0 0 auto;margin:0 0 .15rem}.gomathy-extra-physics-v75 .gomathy-tool-title-v8{flex:0 0 auto;margin:0 0 .35rem}.gomathy-extra-physics-v75 .gomathy-tool-title-v8 h2{font-size:1.55rem!important}.gomathy-extra-physics-v75 .gomathy-tool-title-v8 p:last-child{font-size:.78rem!important;margin-top:.12rem!important}.gomathy-extra-grid-v75{flex:1;min-height:0;display:grid;grid-template-columns:285px minmax(0,1fr);gap:.6rem;overflow:hidden}.gomathy-extra-controls-v75,.gomathy-extra-visual-v75{min-height:0;height:100%;border:1px solid #e2e8f0;border-radius:18px;background:#fff;padding:.65rem;overflow:hidden}.gomathy-extra-controls-v75{display:flex;flex-direction:column;gap:.38rem}.gomathy-extra-controls-v75 label{display:grid;gap:.12rem;font-size:.69rem;font-weight:850;color:#334155}.gomathy-extra-controls-v75 input,.gomathy-extra-controls-v75 select,.gomathy-extra-controls-v75 textarea{width:100%;padding:.38rem .48rem;border:1px solid #cbd5e1;border-radius:9px;background:#fff;font-size:.79rem}.gomathy-extra-visual-v75{display:flex;flex-direction:column}.gomathy-extra-visual-v75>svg,.gomathy-extra-visual-v75>.gpx-scope-v75,.gomathy-extra-visual-v75>.gpx-thermal-stage-v75{flex:1;min-height:0;width:100%}.gpx-results-v75{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.3rem;flex:0 0 auto}.gpx-results-v75 p{margin:0;padding:.36rem .45rem;border:1px solid #e2e8f0;border-radius:10px;background:#f8fafc}.gpx-results-v75 span{display:block;font-size:.55rem;font-weight:900;text-transform:uppercase;color:#64748b}.gpx-results-v75 strong{display:block;margin-top:.08rem;font-size:.82rem;color:#0f172a}.gpx-instrument-tabs-v75{display:grid;grid-template-columns:repeat(3,1fr);gap:.25rem}.gpx-instrument-tabs-v75 button{padding:.4rem .35rem;border:1px solid #cbd5e1;border-radius:9px;background:#fff;font-size:.68rem;font-weight:850}.gpx-instrument-tabs-v75 button.is-active{border-color:#8b5cf6;background:#f5f3ff;color:#6d28d9}.gpx-scope-v75{position:relative;border:8px solid #1e293b;border-radius:18px;background:#06111d;overflow:hidden}.gpx-scope-v75 svg{width:100%;height:100%}.gpx-thermal-stage-v75{display:grid;grid-template-columns:1fr 1fr;gap:.55rem;align-items:center}.gpx-beaker-v75{position:relative;height:90%;min-height:270px;border:5px solid #64748b;border-top:0;border-radius:0 0 36px 36px;overflow:hidden;background:#f8fafc}.gpx-beaker-v75 .liquid{position:absolute;left:0;right:0;bottom:0;background:linear-gradient(#7dd3fc,#0284c7)}.gpx-beaker-v75 .temp{position:absolute;left:50%;top:45%;transform:translate(-50%,-50%);font-size:2rem;font-weight:950;color:#0f172a;text-shadow:0 1px #fff}.gpx-energy-arrow-v75{display:grid;place-items:center;font-size:4rem}

  /* Laboratoire de chimie + SVT */
  .gsc-chem-lab-v75,.gsvt-v75{height:100%;display:flex;flex-direction:column;overflow:hidden}.gsc-lab-grid-v75{flex:1;min-height:0;display:grid;grid-template-columns:260px minmax(0,1fr);gap:.6rem}.gsc-lab-palette-v75,.gsc-lab-bench-v75{height:100%;min-height:0;border:1px solid #e2e8f0;border-radius:18px;background:#fff;padding:.65rem;overflow:hidden}.gsc-lab-palette-v75{overflow:auto}.gsc-lab-palette-v75 .palette{display:grid;grid-template-columns:1fr 1fr;gap:.3rem}.gsc-lab-palette-v75 button{padding:.45rem;border:1px solid #cbd5e1;border-radius:10px;background:#fff;font-size:.7rem;font-weight:850}.gsc-lab-bench-v75{position:relative;background:linear-gradient(#f8fafc 0 78%,#d6d3d1 78% 82%,#a8a29e 82%)}.gsc-lab-item-v75{position:absolute;width:84px;height:110px;display:grid;place-items:center;cursor:grab;user-select:none}.gsc-lab-item-v75 span{font-size:3.2rem}.gsc-lab-item-v75 small{font-size:.56rem;font-weight:850;text-align:center}.gsvt-v75 .gsvt-tabs-v75{display:flex;gap:.28rem;flex-wrap:nowrap;overflow-x:auto;flex:0 0 auto;padding:0 0 .35rem}.gsvt-v75 .gsvt-tabs-v75 button{white-space:nowrap;padding:.42rem .65rem;border:1px solid #bbf7d0;border-radius:10px;background:#fff;font-size:.7rem;font-weight:900;color:#166534}.gsvt-v75 .gsvt-tabs-v75 button.is-active{background:#ecfdf5;border-color:#10b981}.gsvt-v75 .gsvt-panel-v75{flex:1;min-height:0;display:grid;grid-template-columns:285px minmax(0,1fr);gap:.6rem;overflow:hidden}.gsvt-v75 .gsvt-control-v75,.gsvt-v75 .gsvt-visual-v75{height:100%;min-height:0;border:1px solid #d1fae5;border-radius:18px;background:#fff;padding:.65rem;overflow:hidden}.gsvt-v75 .gsvt-control-v75{overflow:auto}.gsvt-v75 input,.gsvt-v75 select,.gsvt-v75 textarea{width:100%;padding:.38rem .48rem;border:1px solid #cbd5e1;border-radius:9px;font-size:.78rem}.gsvt-diagram-v75{height:100%;display:grid;place-items:center}.gsvt-diagram-v75 svg{width:100%;height:100%;max-height:none}.gsvt-label-bank-v75{display:flex;gap:.25rem;flex-wrap:wrap}.gsvt-label-bank-v75 button{padding:.3rem .5rem;border:1px solid #a7f3d0;border-radius:999px;background:#ecfdf5;font-size:.66rem;font-weight:850;color:#047857}.gsvt-card-grid-v75{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.4rem}.gsvt-rock-v75{border:1px solid #e2e8f0;border-radius:14px;padding:.5rem;background:#fff}.gsvt-rock-v75 .texture{height:100px;border-radius:10px;margin-bottom:.35rem}.gsvt-pop-v75{height:100%}.gsvt-pop-v75 svg{height:100%;width:100%}
}

@media(max-width:899px){
  .gomathy-extra-grid-v75,.gsc-lab-grid-v75,.gsvt-v75 .gsvt-panel-v75{grid-template-columns:1fr}.gomathy-extra-physics-v75,.gsc-chem-lab-v75,.gsvt-v75{height:auto;overflow:visible}.gomathy-extra-controls-v75,.gomathy-extra-visual-v75,.gsc-lab-palette-v75,.gsc-lab-bench-v75,.gsvt-v75 .gsvt-control-v75,.gsvt-v75 .gsvt-visual-v75{height:auto;overflow:visible}.gsc-lab-bench-v75{min-height:520px}}
.gsvt-num circle{fill:#0f172a!important;stroke:#fff!important;stroke-width:2!important}.gsvt-num text{fill:#fff!important;font-weight:950!important;text-anchor:middle}.gsvt-main-btn,.gsc-primary{display:inline-flex;align-items:center;justify-content:center;border:0;border-radius:10px;background:#0f172a;color:#fff;padding:.55rem .75rem;font-weight:900;cursor:pointer}.gsvt-rock-v75.is-active{outline:3px solid #10b981;outline-offset:1px}
@media(min-width:900px){
 body[data-gomathy-page="periodic-table"] .gomathy-periodic-direct-v73>.mb-5.grid{grid-template-columns:280px minmax(0,1fr)!important;gap:.45rem!important;margin-bottom:.35rem!important;flex:0 0 auto}
 body[data-gomathy-page="periodic-table"] .gomathy-periodic-direct-v73>.mb-5.grid article{padding:.5rem!important;border-radius:16px!important}
 body[data-gomathy-page="periodic-table"] .gomathy-periodic-direct-v73>.mb-5.grid article h3{font-size:1.15rem!important}.gomathy-periodic-direct-v73>.mb-5.grid article .mt-4{margin-top:.3rem!important}.gomathy-periodic-direct-v73>.mb-5.grid article .mt-3{margin-top:.25rem!important}
 body[data-gomathy-page="periodic-table"] .gomathy-periodic-fit-v73{flex:1!important;min-height:0!important;height:auto!important;border-radius:18px!important}
 body[data-gomathy-page="periodic-table"] .gomathy-periodic-fit-v73>div{min-width:0!important;width:100%!important;height:100%!important;padding:.3rem!important;display:flex!important;align-items:center!important}
 body[data-gomathy-page="periodic-table"] .gomathy-periodic-fit-v73>div>.grid{width:100%!important;grid-template-columns:46px repeat(18,minmax(0,1fr))!important;gap:2px!important}
 body[data-gomathy-page="periodic-table"] .gomathy-periodic-fit-v73 .gomathy-periodic-cell{height:43px!important;min-height:43px!important;border-radius:6px!important;box-shadow:none!important}
 body[data-gomathy-page="periodic-table"] .gomathy-periodic-fit-v73 .gomathy-periodic-cell p{font-size:.4rem!important;line-height:1!important}.gomathy-periodic-fit-v73 .gomathy-periodic-symbol{font-size:.78rem!important;line-height:1!important}.gomathy-periodic-fit-v73 .gomathy-periodic-name{font-size:.38rem!important;line-height:1!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
}
@media(min-width:900px){
  body[data-gomathy-page="lenses-model"] .gomathy-optics-single-v75,
  body[data-gomathy-page="eye-model"] .gomathy-optics-single-v75{height:100%!important;display:block!important}
  body[data-gomathy-page="lenses-model"] .gomathy-optics-single-v75>div,
  body[data-gomathy-page="eye-model"] .gomathy-optics-single-v75>div{height:100%!important;display:flex!important;flex-direction:column!important;min-height:0!important;overflow:hidden!important}
  body[data-gomathy-page="lenses-model"] .gomathy-optics-single-v75>div>button,
  body[data-gomathy-page="eye-model"] .gomathy-optics-single-v75>div>button{display:block!important;flex:0 0 auto!important;margin:0 0 .2rem!important;font-size:.78rem!important}
  body[data-gomathy-page="lenses-model"] .gomathy-optics-single-v75>div>h2,
  body[data-gomathy-page="eye-model"] .gomathy-optics-single-v75>div>h2{font-size:1.5rem!important;line-height:1.05!important;margin:0 0 .35rem!important;flex:0 0 auto!important}
  body[data-gomathy-page="lenses-model"] .gomathy-optics-single-v75>div>.grid,
  body[data-gomathy-page="eye-model"] .gomathy-optics-single-v75>div>.grid{flex:1!important;min-height:0!important;grid-template-columns:230px minmax(0,1fr)!important;gap:.55rem!important;overflow:hidden!important}
  body[data-gomathy-page="lenses-model"] .gomathy-optics-single-v75 article,
  body[data-gomathy-page="eye-model"] .gomathy-optics-single-v75 article{padding:.58rem!important;min-height:0!important;height:100%!important;overflow:hidden!important}
  body[data-gomathy-page="lenses-model"] .gomathy-optics-single-v75 article:nth-child(2)>div:has(svg),
  body[data-gomathy-page="eye-model"] .gomathy-optics-single-v75 article:nth-child(2)>div:has(svg){flex:1 1 auto!important;min-height:0!important;display:flex!important;overflow:hidden!important;padding:.25rem!important;margin:0 0 .3rem!important}
  body[data-gomathy-page="lenses-model"] .gomathy-optics-single-v75 svg,
  body[data-gomathy-page="eye-model"] .gomathy-optics-single-v75 svg{width:100%!important;height:100%!important;min-height:360px!important;max-height:none!important;min-width:0!important}
}
.gsvt-meiosis-v75{margin-top:.45rem;padding:.5rem;border:1px solid #d1fae5;border-radius:12px;background:#f0fdf4;font-size:.7rem}.gsvt-meiosis-v75>div{display:flex;gap:.4rem;align-items:center;justify-content:center;margin:.35rem 0}.gsvt-meiosis-v75 .diploid,.gsvt-meiosis-v75 .gamete{display:grid;place-items:center;min-width:42px;min-height:34px;border-radius:999px;background:#fff;border:2px solid #10b981;font-weight:950}.gsvt-meiosis-v75 i{font-style:normal;color:#475569;font-size:.62rem}
.gomathy-optics-page-v75{height:100%;display:flex;flex-direction:column;min-height:0;overflow:hidden}.gomathy-optics-switch-v75{display:flex;gap:.3rem;justify-content:flex-end;flex:0 0 auto;margin:0 0 .2rem}.gomathy-optics-switch-v75 button{border:1px solid #ddd6fe;border-radius:999px;background:#fff;padding:.32rem .7rem;font-size:.72rem;font-weight:850;color:#5b21b6}.gomathy-optics-switch-v75 button.is-active{background:#f5f3ff;border-color:#8b5cf6}.gomathy-optics-page-v75 .gomathy-optics-single-v75{flex:1;min-height:0}
@media(min-width:900px){
  /* Electricité : pas de mini-cours empilé, priorité au montage et aux résultats. */
  body[data-gomathy-page="electricity-model"] .gomathy-pc-direct-v73{height:100%!important;display:flex!important;flex-direction:column!important;overflow:hidden!important;padding-top:2px!important}
  body[data-gomathy-page="electricity-model"] .gomathy-pc-direct-v73>button{margin:0 0 .15rem!important;font-size:.75rem!important}
  body[data-gomathy-page="electricity-model"] .gomathy-pc-direct-v73>h2{font-size:1.45rem!important;margin:0 0 .3rem!important}
  body[data-gomathy-page="electricity-model"] .gomathy-pc-main-grid-v73{flex:1!important;min-height:0!important;overflow:hidden!important;grid-template-columns:250px minmax(0,1fr)!important}
  body[data-gomathy-page="electricity-model"] .gomathy-pc-card-v73:first-child{overflow:hidden!important;padding:.55rem!important}
  body[data-gomathy-page="electricity-model"] .gomathy-pc-card-v73:first-child h3{font-size:1rem!important;margin-bottom:.25rem!important}
  body[data-gomathy-page="electricity-model"] .gomathy-pc-card-v73:first-child label{font-size:.7rem!important;margin-bottom:.08rem!important}
  body[data-gomathy-page="electricity-model"] .gomathy-pc-card-v73:first-child input,
  body[data-gomathy-page="electricity-model"] .gomathy-pc-card-v73:first-child select{padding:.35rem .45rem!important;margin-bottom:.3rem!important;min-height:34px!important;font-size:.78rem!important}
  body[data-gomathy-page="electricity-model"] .gomathy-pc-card-v73:nth-child(2){padding:.55rem!important}
  body[data-gomathy-page="electricity-model"] .gomathy-pc-card-v73:nth-child(2)>h3{font-size:1rem!important;margin-bottom:.25rem!important}
  body[data-gomathy-page="electricity-model"] .gomathy-electricity-secondary-v10{display:none!important}
  body[data-gomathy-page="electricity-model"] .gomathy-pc-card-v73:nth-child(2)>.grid{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:.25rem!important;margin-bottom:.3rem!important}
  body[data-gomathy-page="electricity-model"] .gomathy-pc-card-v73:nth-child(2)>.grid>div{padding:.32rem .42rem!important}
  body[data-gomathy-page="electricity-model"] .gomathy-pc-card-v73:nth-child(2)>.grid p{font-size:.58rem!important}.gomathy-pc-card-v73:nth-child(2)>.grid p.text-lg{font-size:.8rem!important}
  body[data-gomathy-page="electricity-model"] .gomathy-pc-card-v73:nth-child(2)>.mt-3{flex:1!important;min-height:0!important;display:flex!important;flex-direction:column!important;margin-top:.15rem!important;padding:.3rem!important}
  body[data-gomathy-page="electricity-model"] .gomathy-pc-card-v73:nth-child(2)>.mt-3 h3{margin:0 0 .15rem!important;font-size:.72rem!important}
  body[data-gomathy-page="electricity-model"] .gomathy-pc-card-v73:nth-child(2)>.mt-3 svg{flex:1!important;min-height:360px!important;height:100%!important}

  /* Gravitation : les résultats + le dessin occupent l'écran, pas les explications répétées. */
  body[data-gomathy-page="gravity-model"] .gomathy-pc-direct-v73{height:100%!important;display:flex!important;flex-direction:column!important;overflow:hidden!important;padding-top:2px!important}
  body[data-gomathy-page="gravity-model"] .gomathy-pc-direct-v73>button{margin:0 0 .15rem!important;font-size:.75rem!important}
  body[data-gomathy-page="gravity-model"] .gomathy-pc-direct-v73>h2{font-size:1.45rem!important;margin:0 0 .3rem!important}
  body[data-gomathy-page="gravity-model"] .gomathy-pc-main-grid-v73{flex:1!important;min-height:0!important;overflow:hidden!important;grid-template-columns:minmax(0,1fr) 255px!important}
  body[data-gomathy-page="gravity-model"] .gomathy-pc-card-v73:first-child{overflow:hidden!important;padding:.5rem!important}
  body[data-gomathy-page="gravity-model"] .gomathy-pc-card-v73:first-child h3{font-size:.95rem!important;margin-bottom:.25rem!important}
  body[data-gomathy-page="gravity-model"] .gomathy-pc-card-v73:first-child label{font-size:.68rem!important;margin-bottom:.08rem!important}
  body[data-gomathy-page="gravity-model"] .gomathy-pc-card-v73:first-child input,
  body[data-gomathy-page="gravity-model"] .gomathy-pc-card-v73:first-child select{padding:.33rem .45rem!important;margin-bottom:.25rem!important;min-height:32px!important;font-size:.76rem!important}
  body[data-gomathy-page="gravity-model"] .gomathy-pc-card-v73:first-child>.mt-6{margin-top:.3rem!important;padding:.35rem!important;font-size:.65rem!important;line-height:1.2!important}
  body[data-gomathy-page="gravity-model"] .gomathy-pc-card-v73:first-child>.mt-4.grid,
  body[data-gomathy-page="gravity-model"] .gomathy-pc-card-v73:first-child>.mt-4.rounded-2xl{display:none!important}
  body[data-gomathy-page="gravity-model"] .gomathy-pc-card-v73:nth-child(2){padding:.5rem!important}
  body[data-gomathy-page="gravity-model"] .gomathy-pc-card-v73:nth-child(2)>h3{font-size:.95rem!important;margin-bottom:.2rem!important}
  body[data-gomathy-page="gravity-model"] .gomathy-pc-card-v73:nth-child(2)>.grid:first-of-type{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:.22rem!important;margin-bottom:.25rem!important}
  body[data-gomathy-page="gravity-model"] .gomathy-pc-card-v73:nth-child(2)>.grid:first-of-type>div{padding:.28rem .35rem!important}.gomathy-pc-card-v73:nth-child(2)>.grid:first-of-type p{font-size:.55rem!important}.gomathy-pc-card-v73:nth-child(2)>.grid:first-of-type p.text-lg{font-size:.78rem!important}
  body[data-gomathy-page="gravity-model"] .gomathy-pc-card-v73:nth-child(2)>svg,
  body[data-gomathy-page="gravity-model"] .gomathy-pc-card-v73:nth-child(2)>div:has(>svg){flex:1 1 auto!important;min-height:0!important}
  body[data-gomathy-page="gravity-model"] .gomathy-pc-card-v73:nth-child(2)>.mt-5.rounded-2xl{margin:.25rem 0 0!important;padding:.3rem .45rem!important;font-size:.62rem!important;display:grid!important;grid-template-columns:auto repeat(5,1fr)!important;gap:.25rem!important;align-items:center!important}
  body[data-gomathy-page="gravity-model"] .gomathy-pc-card-v73:nth-child(2)>.mt-5.rounded-2xl p{margin:0!important}
  body[data-gomathy-page="gravity-model"] .gomathy-pc-card-v73:nth-child(2)>.mb-4.grid,
  body[data-gomathy-page="gravity-model"] .gomathy-pc-card-v73:nth-child(2)>.rounded-2xl.border-indigo-200{display:none!important}

  /* Fenêtre du tableau depuis l'atome : contenu ajusté, pas de grand rectangle blanc. */
  body.gomathy-atom-periodic-open-v73[data-gomathy-page="atom-model"] .gomathy-atom-periodic-v73{top:calc(var(--shell-header-h,126px) + 10px)!important;left:18px!important;right:18px!important;bottom:auto!important;height:auto!important;max-height:calc(100vh - var(--shell-header-h,126px) - 28px)!important}
  body.gomathy-atom-periodic-open-v73[data-gomathy-page="atom-model"] .gomathy-atom-periodic-v73>.gomathy-direct-section-v73{height:auto!important;max-height:calc(100vh - var(--shell-header-h,126px) - 70px)!important}
  body.gomathy-atom-periodic-open-v73[data-gomathy-page="atom-model"] .gomathy-mini-periodic-wrap{height:auto!important;max-height:calc(100vh - var(--shell-header-h,126px) - 105px)!important}

  /* Le tableau périodique autonome utilise réellement la hauteur disponible. */
  body[data-gomathy-page="periodic-table"] .gomathy-periodic-fit-v73>div>.grid{align-self:center!important}
  body[data-gomathy-page="periodic-table"] .gomathy-periodic-fit-v73 .gomathy-periodic-cell{height:clamp(39px,5.1vh,48px)!important;min-height:39px!important}
}
.gsc-lab-item-v75 svg{width:72px;height:76px;filter:drop-shadow(0 2px 2px rgba(15,23,42,.08))}.gsc-lab-item-v75 small{display:block;max-width:84px;color:#334155;background:rgba(255,255,255,.82);border-radius:7px;padding:.08rem .2rem}
@media(min-width:900px){
  /* MOLE : tout le calcul visible, aucune grande marge verticale. */
  body[data-gomathy-page="mol-model"] .gomathy-pc-direct-v73,
  body[data-gomathy-page="pc-conversions"] .gomathy-pc-direct-v73{height:100%!important;display:flex!important;flex-direction:column!important;overflow:hidden!important;padding-top:2px!important}
  body[data-gomathy-page="mol-model"] .gomathy-pc-direct-v73>button,
  body[data-gomathy-page="pc-conversions"] .gomathy-pc-direct-v73>button{margin:0 0 .12rem!important;font-size:.74rem!important}
  body[data-gomathy-page="mol-model"] .gomathy-pc-direct-v73>h2,
  body[data-gomathy-page="pc-conversions"] .gomathy-pc-direct-v73>h2{font-size:1.42rem!important;line-height:1!important;margin:0 0 .18rem!important}
  body[data-gomathy-page="mol-model"] .gomathy-pc-direct-v73>p,
  body[data-gomathy-page="pc-conversions"] .gomathy-pc-direct-v73>p{font-size:.72rem!important;margin:0 0 .3rem!important}
  body[data-gomathy-page="mol-model"] .gomathy-pc-main-grid-v73,
  body[data-gomathy-page="pc-conversions"] .gomathy-pc-main-grid-v73{flex:1!important;min-height:0!important;overflow:hidden!important;gap:.5rem!important}
  body[data-gomathy-page="mol-model"] .gomathy-pc-main-grid-v73{grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr)!important}
  body[data-gomathy-page="pc-conversions"] .gomathy-pc-main-grid-v73{grid-template-columns:300px minmax(0,1fr)!important}
  body[data-gomathy-page="mol-model"] .gomathy-pc-card-v73,
  body[data-gomathy-page="pc-conversions"] .gomathy-pc-card-v73{height:100%!important;min-height:0!important;overflow:hidden!important;padding:.55rem!important;border-radius:18px!important}
  body[data-gomathy-page="mol-model"] .gomathy-pc-card-v73 h3,
  body[data-gomathy-page="pc-conversions"] .gomathy-pc-card-v73 h3{font-size:.95rem!important;margin-bottom:.25rem!important}
  body[data-gomathy-page="mol-model"] .gomathy-pc-card-v73 .mt-4{margin-top:.35rem!important}
  body[data-gomathy-page="mol-model"] .gomathy-pc-card-v73 .mb-4{margin-bottom:.35rem!important}
  body[data-gomathy-page="mol-model"] .gomathy-pc-card-v73 .p-4{padding:.45rem!important}
  body[data-gomathy-page="mol-model"] .gomathy-pc-card-v73 input{padding:.35rem .45rem!important;min-height:33px!important;margin-bottom:.25rem!important}
  body[data-gomathy-page="mol-model"] .gomathy-mole-chain{margin:.35rem 0!important;gap:.25rem!important}
  body[data-gomathy-page="mol-model"] .gomathy-mole-chain>div{padding:.35rem!important}
  body[data-gomathy-page="mol-model"] .gomathy-pc-card-v73:first-child>.mt-4.grid{margin-top:.25rem!important;gap:.25rem!important}
  body[data-gomathy-page="mol-model"] .gomathy-pc-card-v73:first-child>.mt-4.grid>div{padding:.35rem!important}
  body[data-gomathy-page="mol-model"] .gomathy-pc-card-v73:first-child>.mt-4.grid .text-4xl{font-size:1.7rem!important}
  body[data-gomathy-page="mol-model"] .gomathy-direct-section-v73{padding:.4rem!important;font-size:.7rem!important}

  /* Conversions : le tableau occupe le panneau droit au lieu de provoquer un scroll horizontal/vertical. */
  body[data-gomathy-page="pc-conversions"] .gomathy-pc-card-v73:first-child label{font-size:.68rem!important;margin-bottom:.06rem!important}
  body[data-gomathy-page="pc-conversions"] .gomathy-pc-card-v73:first-child input,
  body[data-gomathy-page="pc-conversions"] .gomathy-pc-card-v73:first-child select{padding:.34rem .45rem!important;min-height:32px!important;margin-bottom:.22rem!important;font-size:.75rem!important}
  body[data-gomathy-page="pc-conversions"] .gomathy-pc-card-v73:first-child .p-4{padding:.4rem!important}
  body[data-gomathy-page="pc-conversions"] .gomathy-pc-card-v73:nth-child(2){display:flex!important;flex-direction:column!important}
  body[data-gomathy-page="pc-conversions"] .gomathy-pc-card-v73:nth-child(2)>.rounded-2xl{padding:.3rem .4rem!important;margin-bottom:.3rem!important}
  body[data-gomathy-page="pc-conversions"] .gomathy-pc-card-v73:nth-child(2)>.overflow-x-auto{flex:1!important;min-height:0!important;overflow:hidden!important;margin-bottom:.25rem!important;display:flex!important}
  body[data-gomathy-page="pc-conversions"] .gomathy-pc-card-v73:nth-child(2) table{width:100%!important;min-width:0!important;table-layout:fixed!important;font-size:.66rem!important;align-self:stretch!important}
  body[data-gomathy-page="pc-conversions"] .gomathy-pc-card-v73:nth-child(2) th,
  body[data-gomathy-page="pc-conversions"] .gomathy-pc-card-v73:nth-child(2) td{padding:.25rem .16rem!important;white-space:normal!important;word-break:break-word!important}
  body[data-gomathy-page="pc-conversions"] .gomathy-pc-card-v73:nth-child(2)>.grid{gap:.22rem!important}.gomathy-pc-card-v73:nth-child(2)>.grid>div{padding:.3rem!important;font-size:.63rem!important}
}
@media(min-width:900px){
  body[data-gomathy-page="molecules"] .gomathy-lewis-info-v8{overflow:hidden!important}
  .gsc-lab-palette-v75{overflow:hidden!important}
  .gsvt-v75 .gsvt-control-v75{overflow:hidden!important}
  .gsc-lab-palette-v75 h3,.gsvt-v75 .gsvt-control-v75 h3{margin:0 0 .28rem!important;font-size:.92rem!important}
  .gsc-lab-palette-v75 .palette{gap:.22rem!important}.gsc-lab-palette-v75 button{padding:.32rem .35rem!important;font-size:.64rem!important}
  .gsvt-v75 .gsvt-control-v75{display:flex!important;flex-direction:column!important;gap:.28rem!important}
  .gsvt-v75 .gsvt-control-v75 .gsvt-tip-v60{padding:.38rem!important;margin:.1rem 0!important;font-size:.67rem!important;line-height:1.25!important}
}

/* ===== SOURCE: styles/gomathy-v74-fixes.css ===== */
/* GoMathy V74 — corrections ciblées demandées :
   1) Proba : exploiter réellement toute la grande zone blanche (Urne + Échantillons).
   2) Contrôle : résumé compact, barème /20, onglet Réglages réactif.
   L'atelier graphique n'est volontairement pas ciblé. */

@media (min-width: 900px) {
  /* ---------- Probabilités : la zone visuelle devient réellement la zone principale ---------- */
  body[data-gomathy-page="probability"] [data-prob-panel="urn"] .gmx-ps-visual,
  body[data-gomathy-page="probability"] [data-prob-panel="simulation"] .gmx-ps-visual {
    display:grid!important;
    grid-template-rows:minmax(0,1fr) auto auto!important;
    align-items:stretch!important;
    justify-content:stretch!important;
    gap:.55rem!important;
    height:100%!important;
    min-height:0!important;
  }

  /* URNE : l'urne prend la majeure partie de l'espace ; le compte rendu reste lisible à droite. */
  body[data-gomathy-page="probability"] [data-prob-panel="urn"] .gmx-prob-urn-layout {
    height:100%!important;
    min-height:0!important;
    display:grid!important;
    grid-template-columns:minmax(0,1fr) minmax(230px,31%)!important;
    gap:1rem!important;
    align-items:stretch!important;
  }
  body[data-gomathy-page="probability"] [data-prob-panel="urn"] #prob-urn-svg,
  body[data-gomathy-page="probability"] [data-prob-panel="urn"] #prob-urn-trial {
    height:100%!important;
    min-height:0!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
  }
  body[data-gomathy-page="probability"] [data-prob-panel="urn"] #prob-urn-svg > svg,
  body[data-gomathy-page="probability"] [data-prob-panel="urn"] .gmx-prob-urn-svg {
    display:block!important;
    width:100%!important;
    height:100%!important;
    max-width:none!important;
    max-height:none!important;
    min-height:0!important;
  }
  body[data-gomathy-page="probability"] [data-prob-panel="urn"] .gmx-prob-urn-trial-empty {
    min-height:0!important;
    height:auto!important;
    width:100%!important;
    padding:1rem 1.15rem!important;
    font-size:.86rem!important;
    line-height:1.4!important;
  }
  body[data-gomathy-page="probability"] [data-prob-panel="urn"] .gmx-prob-urn-steps {
    width:100%!important;
    max-height:100%!important;
    overflow:auto!important;
  }

  /* ÉCHANTILLONS : fréquence, moyennes et Tchebychev utilisent toute la hauteur libre. */
  body[data-gomathy-page="probability"] [data-prob-panel="simulation"] #prob-sim-svg {
    width:100%!important;
    height:100%!important;
    min-height:0!important;
    display:flex!important;
    align-items:stretch!important;
    justify-content:stretch!important;
    overflow:hidden!important;
  }
  body[data-gomathy-page="probability"] [data-prob-panel="simulation"] #prob-sim-svg > svg {
    display:block!important;
    width:100%!important;
    height:100%!important;
    max-width:none!important;
    max-height:none!important;
    min-height:0!important;
  }
  body[data-gomathy-page="probability"] [data-prob-panel="simulation"] #prob-sim-explain,
  body[data-gomathy-page="probability"] [data-prob-panel="simulation"] .gmx-ps-hint,
  body[data-gomathy-page="probability"] [data-prob-panel="urn"] #prob-urn-explain,
  body[data-gomathy-page="probability"] [data-prob-panel="urn"] .gmx-ps-hint {
    margin:0!important;
    flex:0 0 auto!important;
  }

  /* ---------- Contrôle sur mesure ---------- */
  body[data-gomathy-page="control"] .gmx-v72-summary.gmx-v74-summary {
    display:grid!important;
    grid-template-columns:repeat(4,minmax(0,1fr))!important;
    gap:8px!important;
    margin:0 0 12px!important;
    align-items:stretch!important;
  }
  body[data-gomathy-page="control"] .gmx-v72-summary.gmx-v74-summary > span {
    min-height:0!important;
    height:auto!important;
    padding:8px 11px!important;
    border-radius:12px!important;
    display:flex!important;
    align-items:baseline!important;
    justify-content:flex-start!important;
    gap:7px!important;
  }
  body[data-gomathy-page="control"] .gmx-v72-summary.gmx-v74-summary b {
    display:inline!important;
    margin:0!important;
    font-size:14px!important;
    line-height:1.15!important;
    white-space:nowrap!important;
  }
  body[data-gomathy-page="control"] .gmx-v72-summary.gmx-v74-summary small {
    display:inline!important;
    margin:0!important;
    font-size:11px!important;
    line-height:1.15!important;
  }
  body[data-gomathy-page="control"] .gmx-v74-adaptation-note {
    border:1px solid #fde68a;
    background:#fffbeb;
    color:#854d0e;
    border-radius:11px;
    padding:8px 11px;
    margin:-2px 0 14px;
    font:400 12px/1.4 Georgia,serif;
  }
  body[data-gomathy-page="control"] .gmx-v74-fixed-scale {
    color:#64748b;
    font-weight:600;
    font-size:.86em;
  }
  /* Cinq blocs de réglages après suppression du sélecteur /10-/20 : meilleure occupation. */
  body[data-gomathy-page="control"] .gmx-v72-settings-grid {
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    align-items:start!important;
  }
}

@media (max-width: 980px) {
  body[data-gomathy-page="control"] .gmx-v72-summary.gmx-v74-summary{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}

@media (max-width: 650px) {
  body[data-gomathy-page="control"] .gmx-v72-summary.gmx-v74-summary{grid-template-columns:1fr!important}
  body[data-gomathy-page="control"] .gmx-v72-summary.gmx-v74-summary > span{align-items:flex-start!important;flex-direction:column!important;gap:2px!important}
}

/* ===== SOURCE: styles/gomathy-lewis-v78.css ===== */
/* V77 — Modèle de Lewis : saisie libre + structure prioritaire + validation chimique. */
@media (min-width:900px){
  body[data-gomathy-page="molecules"] #pages{overflow:hidden!important}
  body[data-gomathy-page="molecules"] .gomathy-lewis-v8{height:100%!important;display:flex!important;flex-direction:column!important;min-height:0!important;overflow:hidden!important;padding:.15rem .25rem .25rem!important}
  body[data-gomathy-page="molecules"] .gomathy-lewis-v8>button{margin:0 0 .15rem!important;flex:0 0 auto}
  body[data-gomathy-page="molecules"] .gomathy-tool-title-v8{margin:0 0 .3rem!important;padding:.25rem .5rem!important;flex:0 0 auto}
  body[data-gomathy-page="molecules"] .gomathy-tool-title-v8 h2{font-size:1.55rem!important;line-height:1.05!important;margin:.05rem 0!important}
  body[data-gomathy-page="molecules"] .gomathy-tool-title-v8 p:last-child{font-size:.76rem!important;line-height:1.25!important;margin:.08rem 0 0!important}
  body[data-gomathy-page="molecules"] .gomathy-lewis-input-v73{flex:0 0 auto!important;margin:0 0 .38rem!important;padding:.55rem .65rem!important;border-radius:15px!important;background:#fff!important;border:1px solid #cbd5e1!important}
  body[data-gomathy-page="molecules"] .gomathy-lewis-input-v73__head{display:none!important}
  body[data-gomathy-page="molecules"] .gomathy-formula-builder-v8{display:grid!important;grid-template-columns:minmax(260px,1fr) auto auto!important;gap:.42rem!important;align-items:end!important}
  body[data-gomathy-page="molecules"] .gomathy-formula-builder-v8 label{font-size:.72rem!important;font-weight:850!important;color:#334155!important}
  body[data-gomathy-page="molecules"] .gomathy-formula-builder-v8 input{min-height:42px!important;padding:.5rem .62rem!important;font-size:1rem!important;font-weight:800!important;letter-spacing:.02em!important}
  body[data-gomathy-page="molecules"] .gomathy-formula-builder-v8 button{min-height:42px!important;padding:.48rem .78rem!important;font-size:.78rem!important;font-weight:900!important}
  body[data-gomathy-page="molecules"] .gomathy-lewis-formulas-v8{display:flex!important;gap:.28rem!important;flex-wrap:nowrap!important;overflow-x:auto!important;padding:.35rem 0 0!important;scrollbar-width:thin}
  body[data-gomathy-page="molecules"] .gomathy-lewis-formulas-v8 button{flex:0 0 auto!important;padding:.28rem .48rem!important;font-size:.68rem!important;font-weight:900!important;border-radius:999px!important}
  body[data-gomathy-page="molecules"] .gomathy-lewis-formulas-v8 sub{font-size:.72em;vertical-align:sub}
  body[data-gomathy-page="molecules"] .gomathy-lewis-layout-v8{flex:1 1 auto!important;min-height:0!important;display:grid!important;grid-template-columns:minmax(0,1fr) 310px!important;gap:.55rem!important;overflow:hidden!important}
  body[data-gomathy-page="molecules"] .gomathy-lewis-main-v8{height:100%!important;min-height:0!important;display:flex!important;flex-direction:column!important;overflow:hidden!important;padding:.5rem!important;border-radius:18px!important}
  body[data-gomathy-page="molecules"] .gomathy-lewis-canvas-v8{flex:1 1 auto!important;min-height:0!important;display:flex!important;align-items:stretch!important;justify-content:stretch!important;padding:.25rem!important;background:linear-gradient(180deg,#fbfdff,#f8fafc)!important;border:1px solid #e2e8f0!important;border-radius:14px!important}
  body[data-gomathy-page="molecules"] .gomathy-lewis-canvas-v8 svg{width:100%!important;height:100%!important;max-height:none!important;min-height:360px!important}
  body[data-gomathy-page="molecules"] .gomathy-lewis-legend-v8{flex:0 0 auto!important;display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:.25rem!important;padding:.35rem .2rem .05rem!important;font-size:.65rem!important;text-align:center!important}
  body[data-gomathy-page="molecules"] .gomathy-lewis-info-v8{height:100%!important;min-height:0!important;overflow:auto!important;padding:.65rem!important;border-radius:18px!important}
  body[data-gomathy-page="molecules"] .gomathy-lewis-info-v8 h3{font-size:1.08rem!important;line-height:1.2!important;margin:.15rem 0 .45rem!important}
  body[data-gomathy-page="molecules"] .gomathy-lewis-info-v8 h3 sub{font-size:.68em}
  body[data-gomathy-page="molecules"] .gomathy-lewis-info-v8>p{font-size:.74rem!important;line-height:1.3!important;margin:.35rem 0!important}
  .gomathy-lewis-check-v77{padding:.42rem .52rem;border-radius:10px;font-size:.72rem;font-weight:950;margin:.25rem 0 .45rem}.gomathy-lewis-check-v77.is-ok{background:#ecfdf5;border:1px solid #a7f3d0;color:#047857}.gomathy-lewis-check-v77.is-warn{background:#fff7ed;border:1px solid #fed7aa;color:#c2410c}
  .gomathy-lewis-metrics-v77{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.28rem;margin:.3rem 0 .5rem}.gomathy-lewis-metrics-v77 p{margin:0!important;padding:.4rem .42rem;border:1px solid #e2e8f0;border-radius:10px;background:#f8fafc}.gomathy-lewis-metrics-v77 span{display:block;font-size:.52rem;font-weight:950;text-transform:uppercase;color:#64748b;line-height:1.1}.gomathy-lewis-metrics-v77 strong{display:block;margin-top:.12rem;font-size:.9rem;color:#0f172a}
  .gomathy-lewis-atom-checks-v77{display:grid;gap:.22rem;margin-top:.45rem}.gomathy-lewis-atom-checks-v77>div{display:grid;grid-template-columns:42px minmax(0,1fr) auto;gap:.35rem;align-items:center;padding:.3rem .38rem;border:1px solid #e2e8f0;border-radius:9px;background:#fff;font-size:.62rem}.gomathy-lewis-atom-checks-v77 b{font-size:.7rem}.gomathy-lewis-atom-checks-v77 span{color:#475569}.gomathy-lewis-atom-checks-v77 em{font-style:normal;color:#64748b;font-size:.56rem}
}
@media(max-width:899px){body[data-gomathy-page="molecules"] .gomathy-lewis-layout-v8{grid-template-columns:1fr!important}body[data-gomathy-page="molecules"] .gomathy-formula-builder-v8{grid-template-columns:1fr!important}}

/* V78 — lisibilité des liaisons + repères VSEPR/familles. */
@media (min-width:900px){
  body[data-gomathy-page="molecules"] .gomathy-lewis-layout-v8{grid-template-columns:minmax(0,1fr) 340px!important}
  body[data-gomathy-page="molecules"] .gomathy-lewis-canvas-v8{padding:.4rem!important}
  body[data-gomathy-page="molecules"] .gomathy-lewis-canvas-v8 svg{filter:drop-shadow(0 1px 0 rgba(255,255,255,.9))}
  body[data-gomathy-page="molecules"] .gomathy-lewis-canvas-v8 g[aria-label^="liaison covalente"] line{stroke:#050b16!important;stroke-width:1.85!important;opacity:1!important}
  body[data-gomathy-page="molecules"] .gomathy-lewis-canvas-v8 g[aria-label="doublet non liant"] circle{r:.82!important;fill:#050b16!important}
  body[data-gomathy-page="molecules"] .gomathy-lewis-formulas-v8{justify-content:flex-start!important;overflow:visible!important;flex-wrap:wrap!important;max-height:62px!important}
  body[data-gomathy-page="molecules"] .gomathy-lewis-formulas-v8 button{font-size:.72rem!important;padding:.3rem .55rem!important}
  body[data-gomathy-page="molecules"] .gomathy-lewis-info-v8{padding:.58rem!important}
  .gomathy-lewis-insights-v78{display:grid;gap:.4rem;margin:.45rem 0}
  .gomathy-lewis-insight-v78{border:1px solid #dbeafe;border-radius:12px;background:#fbfdff;padding:.48rem .52rem}
  .gomathy-lewis-insight-v78__head{display:flex;align-items:center;justify-content:space-between;gap:.4rem;margin-bottom:.38rem}
  .gomathy-lewis-insight-v78__head span{font-size:.55rem;font-weight:950;letter-spacing:.06em;text-transform:uppercase;color:#1d4ed8}
  .gomathy-lewis-insight-v78__head b{font-size:.76rem;color:#0f172a;text-align:right}
  .gomathy-lewis-vsepr-grid-v78{display:grid;grid-template-columns:1fr;gap:.28rem}
  .gomathy-lewis-vsepr-grid-v78 article{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:.35rem;align-items:center;border:1px solid #e2e8f0;border-radius:9px;background:#fff;padding:.34rem .4rem}
  .gomathy-lewis-vsepr-grid-v78 strong{font-size:.66rem;color:#0f172a}.gomathy-lewis-vsepr-grid-v78 span{font-size:.62rem;color:#334155}.gomathy-lewis-vsepr-grid-v78 small{font-size:.56rem;color:#64748b;text-align:right}
  .gomathy-lewis-vsepr-note-v78{margin:.35rem 0 0!important;font-size:.59rem!important;line-height:1.3!important;color:#64748b!important}
  .gomathy-lewis-family-v78{display:grid;gap:.26rem}
  .gomathy-lewis-family-v78>div{display:grid;grid-template-columns:28px minmax(0,1fr);grid-template-rows:auto auto;column-gap:.35rem;align-items:center;border-bottom:1px solid #eef2f7;padding:.25rem 0}
  .gomathy-lewis-family-v78>div:last-child{border-bottom:0}
  .gomathy-lewis-family-v78 b{grid-row:1/3;display:grid;place-items:center;width:27px;height:27px;border-radius:8px;background:#0f172a;color:#fff;font-size:.68rem}
  .gomathy-lewis-family-v78 span{font-size:.62rem;font-weight:850;color:#334155}.gomathy-lewis-family-v78 small{font-size:.55rem;color:#64748b}
  .gomathy-lewis-resonance-v78{border:1px solid #ddd6fe;border-radius:11px;background:#f5f3ff;padding:.42rem .5rem;color:#5b21b6;font-size:.61rem;line-height:1.3}
}
@media (min-width:900px){
  .gomathy-lewis-atom-checks-v77>div{grid-template-columns:52px minmax(0,1fr) auto!important}
  .gomathy-lewis-atom-checks-v77 b{white-space:nowrap!important}
}

/* ===== SOURCE: styles/gomathy-physics-v79.css ===== */
/* GoMathy V79 — optimisation pédagogique des outils Physique-Chimie */
@media (min-width:900px){
  .g79-tool{height:100%;display:flex;flex-direction:column;min-height:0;overflow:hidden;padding:.05rem .15rem .2rem}.g79-tool .gomathy-v60-back{flex:0 0 auto;margin-bottom:.12rem}.g79-tool .gomathy-tool-title-v8{flex:0 0 auto;margin:0 0 .32rem!important;padding:.48rem .72rem!important}.g79-tool .gomathy-tool-title-v8 h2{font-size:1.55rem!important}.g79-tool .gomathy-tool-title-v8 p:last-child{font-size:.78rem!important;margin-top:.1rem!important}.g79-recap{display:flex;gap:.35rem;flex-wrap:wrap;align-items:center;flex:0 0 auto;margin:0 0 .4rem;padding:.35rem .45rem;border:1px solid #dbeafe;border-radius:13px;background:#f8fbff}.g79-recap span{padding:.28rem .48rem;border-radius:999px;background:#fff;border:1px solid #e2e8f0;font-size:.68rem;font-weight:850;color:#334155}.g79-grid{flex:1;min-height:0;display:grid;grid-template-columns:285px minmax(0,1fr);gap:.58rem;overflow:hidden}.g79-controls,.g79-visual{height:100%;min-height:0;border:1px solid #e2e8f0;border-radius:18px;background:#fff;padding:.65rem;overflow:hidden}.g79-controls{display:flex;flex-direction:column;gap:.35rem;overflow:auto}.g79-controls h3{font-size:1rem;font-weight:950;margin:0}.g79-controls h4{font-size:.78rem;font-weight:950;margin:.05rem 0}.g79-controls label{display:grid;gap:.14rem;font-size:.7rem;font-weight:850;color:#334155}.g79-controls input,.g79-controls select{width:100%;min-height:34px;border:1px solid #cbd5e1;border-radius:9px;background:#fff;padding:.35rem .45rem;font-size:.8rem}.g79-controls hr{border:0;border-top:1px solid #e2e8f0;width:100%;margin:.1rem 0}.g79-row{display:grid;grid-template-columns:1fr 1fr;gap:.35rem;align-items:center}.g79-row button{min-height:34px;border:1px solid #bfdbfe;border-radius:9px;background:#eff6ff;color:#1d4ed8;font-size:.72rem;font-weight:900}.g79-row button.is-on{background:#ecfdf5;border-color:#a7f3d0;color:#047857}.g79-check{display:flex!important;grid-template-columns:auto 1fr!important;align-items:center;gap:.35rem!important}.g79-check input{width:auto!important;min-height:0!important}.g79-tip{margin-top:.1rem;border-radius:10px;background:#f8fafc;padding:.45rem .5rem;font-size:.68rem;line-height:1.35;color:#475569}.g79-hidden{display:none!important}.g79-visual{display:flex;flex-direction:column;gap:.35rem}.g79-stage{flex:1;min-height:0;display:flex;align-items:center;justify-content:center;border:1px solid #eef2f7;border-radius:15px;background:#fff;overflow:hidden}.g79-stage svg{width:100%;height:100%;min-height:0;max-height:none}.g79-results{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.3rem;flex:0 0 auto}.g79-results p{margin:0;padding:.38rem .45rem;border:1px solid #e2e8f0;border-radius:10px;background:#f8fafc}.g79-results span{display:block;font-size:.54rem;font-weight:900;text-transform:uppercase;color:#64748b}.g79-results strong{display:block;margin-top:.08rem;font-size:.82rem;color:#0f172a;white-space:normal}.g79-explain{flex:0 0 auto;border-radius:10px;background:#f8fafc;padding:.42rem .55rem;font-size:.7rem;line-height:1.35;color:#475569}.g79-gravity-stage svg{max-height:430px}

  /* Atome : recentrage vertical et suppression du rognage bas. */
  body[data-gomathy-page="atom-model"] .gomathy-pc-main-grid-v73{grid-template-columns:280px minmax(0,1fr)!important;align-items:stretch!important}body[data-gomathy-page="atom-model"] .gomathy-pc-main-grid-v73 .gomathy-pc-card-v73:nth-child(2){display:flex!important;flex-direction:column!important;justify-content:flex-start!important;min-height:0!important;overflow:hidden!important}body[data-gomathy-page="atom-model"] .gomathy-pc-main-grid-v73 .gomathy-pc-card-v73:nth-child(2)>.rounded-2xl:first-of-type{flex:1 1 auto!important;min-height:0!important;display:flex!important;flex-direction:column!important;justify-content:center!important;padding:.55rem!important}body[data-gomathy-page="atom-model"] .gomathy-pc-main-grid-v73 .gomathy-pc-card-v73:nth-child(2) svg{height:min(32vh,285px)!important;min-height:230px!important;max-height:285px!important;margin:auto!important}body[data-gomathy-page="atom-model"] .gomathy-pc-main-grid-v73 .gomathy-pc-card-v73:nth-child(2)>.mt-4{margin-top:.38rem!important;padding:.45rem!important}body[data-gomathy-page="atom-model"] .gomathy-pc-main-grid-v73 .gomathy-pc-card-v73:nth-child(2)>.grid{gap:.25rem!important;margin-top:.35rem!important}body[data-gomathy-page="atom-model"] .gomathy-pc-main-grid-v73 .gomathy-pc-card-v73:nth-child(2)>.grid>div{padding:.34rem .45rem!important}

  /* Forces / ondes / thermique / étalonnage : priorité au visuel. */
  .g79-extra .gomathy-extra-grid-v75{grid-template-columns:285px minmax(0,1fr)!important}.g79-extra .gomathy-extra-controls-v75{overflow:auto!important}.g79-extra .gomathy-extra-visual-v75>svg,.g79-extra .gpx-scope-v75,.g79-extra .gpx-thermal-stage-v75{flex:1!important;min-height:0!important}.g79-extra .gpx-results-v75{grid-template-columns:repeat(4,minmax(0,1fr))!important}.g79-extra .gpx-results-v75 strong{font-size:.8rem!important}.g79-extra #g79-m-svg{width:100%;height:100%;max-height:none}.g79-extra .gpx-scope-v75 svg{width:100%;height:100%}

  /* Laboratoire : ancrages visibles et placement propre. */
  .gsc-lab-bench-v75{overflow:hidden!important}.g79-lab-grid{position:absolute;inset:0;background-image:radial-gradient(circle,#cbd5e1 1px,transparent 1.2px);background-size:5% 5%;opacity:.28;pointer-events:none}.gsc-lab-item-v75{transition:left .12s ease,top .12s ease;filter:drop-shadow(0 8px 10px rgba(15,23,42,.08))}.gsc-lab-item-v75:active{cursor:grabbing;filter:drop-shadow(0 12px 18px rgba(15,23,42,.16))}.gsc-lab-palette-v75 .palette button{min-height:42px}.gsc-lab-palette-v75 .gsc-primary{min-height:38px}
}

/* ===== SOURCE: styles/gomathy-lewis-v80.css ===== */
/* V80 — Lewis : priorité absolue à la lecture des liaisons. */
body[data-gomathy-page="molecules"] .gomathy-lewis-canvas-v8 g[aria-label^="liaison covalente"] line{
  stroke:#050b16!important;
  stroke-width:2.35!important;
  opacity:1!important;
  stroke-linecap:round!important;
}
body[data-gomathy-page="molecules"] .gomathy-lewis-canvas-v8 g[data-bond-order="2"] line{
  stroke-width:2.3!important;
}
body[data-gomathy-page="molecules"] .gomathy-lewis-canvas-v8 g[data-bond-order="3"] line{
  stroke-width:2.2!important;
}
body[data-gomathy-page="molecules"] .gomathy-lewis-canvas-v8 svg{
  overflow:visible!important;
}

/* ===== SOURCE: styles/gomathy-science-v82.css ===== */
/* GoMathy V81 — Outils sciences premium : même architecture visuelle, contenu plus exploitable. */
@media (min-width:900px){
  .g81-electricity .g79-grid{grid-template-columns:300px minmax(0,1fr)!important}.g81-e-controls details{border:1px solid #e2e8f0;border-radius:11px;padding:.35rem .45rem;background:#f8fafc}.g81-e-controls summary{cursor:pointer;font-size:.72rem;font-weight:900}.g81-e-controls textarea{width:100%;margin:.35rem 0 .25rem;resize:none;border:1px solid #cbd5e1;border-radius:9px;padding:.4rem;font-size:.74rem}.g81-e-controls details button{width:100%;min-height:34px;border:0;border-radius:9px;background:#0f172a;color:#fff;font-weight:900;font-size:.72rem}.g81-e-controls details small{display:block;margin-top:.3rem;color:#64748b;font-size:.61rem;line-height:1.3}.g81-e-component{cursor:pointer}.g81-e-component:hover>rect:first-child,.g81-e-component:focus>rect:first-child{fill:#dbeafe!important;opacity:.32}.g81-inspector{display:grid;grid-template-columns:1.3fr repeat(4,minmax(0,1fr));gap:.28rem;align-items:stretch}.g81-inspector>div,.g81-inspector>p{margin:0;border:1px solid #dbeafe;border-radius:11px;background:#f8fbff;padding:.36rem .48rem}.g81-inspector small,.g81-inspector span{display:block;font-size:.54rem;text-transform:uppercase;font-weight:900;color:#64748b}.g81-inspector strong,.g81-inspector b{display:block;margin-top:.08rem;font-size:.78rem;color:#0f172a}.g81-inspector>div strong{font-size:.9rem;color:#1d4ed8}
  .g81-grav-grid{flex:1;min-height:0;display:grid;grid-template-columns:285px minmax(0,1fr);gap:.58rem;overflow:hidden}.g81-space{background:#071325!important}.g81-grav-results{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:.28rem}.g81-grav-results p{margin:0;padding:.35rem .45rem;border:1px solid #dbeafe;border-radius:10px;background:#f8fbff}.g81-grav-results span{display:block;font-size:.52rem;text-transform:uppercase;font-weight:900;color:#64748b}.g81-grav-results strong{display:block;font-size:.78rem;margin-top:.08rem}.g81-formulas{display:grid;gap:.2rem;border-radius:11px;background:#f8fafc;padding:.45rem}.g81-formulas b{font-size:.72rem}.g81-formulas span{font-family:Georgia,serif;font-size:.78rem}.g81-question{border-radius:11px;background:#eef2ff;padding:.42rem .55rem;font-size:.7rem;line-height:1.35;color:#3730a3}
  .g81-extra .gomathy-extra-grid-v75{grid-template-columns:295px minmax(0,1fr)!important}.g81-force-stage,.g81-wave-stage,.g81-cal-chart{flex:1;min-height:0;border:1px solid #eef2f7;border-radius:16px;overflow:hidden;background:#fff}.g81-force-stage svg,.g81-wave-stage svg,.g81-cal-chart svg{width:100%;height:100%;max-height:none}.g81-force-legend{display:grid;grid-template-columns:1fr 1fr;gap:.25rem;border-radius:11px;background:#f8fafc;padding:.4rem;font-size:.64rem}.g81-force-legend b{grid-column:1/-1}.g81-force-legend span::before{content:'';display:inline-block;width:9px;height:9px;border-radius:999px;margin-right:.3rem}.g81-force-legend .blue::before{background:#2563eb}.g81-force-legend .red::before{background:#dc2626}.g81-force-legend .green::before{background:#059669}.g81-force-legend .purple::before{background:#7c3aed}.g81-steps{flex:0 0 auto;border-radius:11px;background:#f8fafc;padding:.42rem .55rem;font-size:.68rem;line-height:1.35;color:#475569}.g81-mode-tabs{display:grid;grid-template-columns:repeat(3,1fr);gap:.22rem}.g81-mode-tabs button{min-height:34px;border:1px solid #ddd6fe;border-radius:9px;background:#fff;color:#5b21b6;font-size:.66rem;font-weight:900}.g81-mode-tabs button.active{background:#ede9fe;border-color:#8b5cf6}.g81-scope{height:100%;display:grid;grid-template-columns:minmax(0,1fr) 105px;background:#06111d;border:8px solid #1e293b;border-radius:19px;overflow:hidden}.g81-scope svg{width:100%;height:100%}.g81-scope-knobs{display:flex;flex-direction:column;justify-content:space-around;padding:.55rem;background:#111827;color:#e2e8f0}.g81-scope-knobs span{font-size:.55rem;font-weight:800;text-align:center}.g81-scope-knobs b{display:block;margin-top:.12rem;color:#67e8f9;font-size:.68rem}.g81-thermal-stage{flex:1;min-height:0;display:grid;grid-template-columns:minmax(220px,.8fr) minmax(260px,1.2fr);gap:1rem;align-items:center;padding:1rem}.g81-beaker{position:relative;height:90%;min-height:300px;border:6px solid #64748b;border-top:0;border-radius:0 0 42px 42px;overflow:hidden;background:#f8fafc}.g81-beaker .liquid{position:absolute;left:0;right:0;bottom:0;background:linear-gradient(#7dd3fc,#0284c7)}.g81-beaker strong{position:absolute;left:50%;top:45%;transform:translate(-50%,-50%);font-size:2rem;z-index:2;text-shadow:0 1px 2px #fff}.g81-energy-flow{display:grid;grid-template-columns:1fr;place-items:center;gap:.6rem;font-size:1.2rem;text-align:center}.g81-energy-flow>span:first-child{font-size:4rem}.g81-cal-pipeline{display:grid;grid-template-columns:repeat(4,1fr);gap:.25rem}.g81-cal-pipeline span{padding:.32rem;border-radius:9px;background:#ecfdf5;color:#047857;font-size:.62rem;font-weight:850;text-align:center}.g81-cal-pipeline b{display:inline-grid;place-items:center;width:20px;height:20px;border-radius:50%;background:#059669;color:#fff;margin-right:.25rem}
  .g81-chem-lab{height:100%;display:flex;flex-direction:column;min-height:0;overflow:hidden}.g81-lab-layout{flex:1;min-height:0;display:grid;grid-template-columns:310px minmax(0,1fr);gap:.6rem;overflow:hidden}.g81-lab-controls,.g81-lab-main{min-height:0;border:1px solid #e2e8f0;border-radius:18px;background:#fff;padding:.65rem;overflow:hidden}.g81-lab-controls{display:flex;flex-direction:column;gap:.32rem;overflow:auto}.g81-lab-controls label{display:grid;gap:.12rem;font-size:.68rem;font-weight:850}.g81-lab-controls select,.g81-lab-controls input{width:100%;min-height:34px;border:1px solid #cbd5e1;border-radius:9px;padding:.35rem .45rem;font-size:.76rem}.g81-tp-card{border-radius:12px;background:#fdf4ff;border:1px solid #f5d0fe;padding:.45rem}.g81-tp-card b{font-size:.8rem}.g81-tp-card p{margin:.15rem 0 0;font-size:.65rem;color:#6b21a8}.g81-lab-palette{display:grid;grid-template-columns:1fr 1fr;gap:.25rem}.g81-lab-palette button,.g81-lab-actions button{min-height:36px;border:1px solid #e9d5ff;border-radius:9px;background:#fff;color:#6b21a8;font-size:.64rem;font-weight:850}.g81-lab-actions{display:grid;grid-template-columns:1fr 1fr;gap:.25rem}.g81-lab-actions button:last-child{grid-column:1/-1;background:#7e22ce;color:#fff;border-color:#7e22ce}.g81-lab-main{display:flex;flex-direction:column;gap:.4rem}.g81-lab-top{display:grid;grid-template-columns:220px minmax(0,1fr);gap:.5rem;align-items:center;border-radius:12px;background:#faf5ff;padding:.4rem .55rem}.g81-lab-top small{display:block;font-size:.52rem;text-transform:uppercase;font-weight:900;color:#7e22ce}.g81-lab-top strong{font-size:.82rem}.g81-lab-top ol{margin:0;padding-left:1.2rem;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.12rem .6rem;font-size:.62rem;color:#581c87}.g81-lab-bench{position:relative;flex:1;min-height:0;border-radius:16px;overflow:hidden;background:linear-gradient(#f8fafc 0 78%,#d6d3d1 78% 82%,#a8a29e 82%)}.g81-lab-gridbg{position:absolute;inset:0;background-image:radial-gradient(circle,#cbd5e1 1px,transparent 1.1px);background-size:4% 5%;opacity:.22}.g81-lab-item{position:absolute;width:88px;height:112px;display:grid;place-items:center;cursor:grab;user-select:none;filter:drop-shadow(0 8px 10px rgba(15,23,42,.08))}.g81-lab-item svg{width:76px;height:72px}.g81-lab-item small{font-size:.54rem;font-weight:900;text-align:center}.g81-lab-feedback{flex:0 0 auto;border-radius:10px;background:#f8fafc;padding:.4rem .55rem;font-size:.66rem;color:#475569}
  .g81-svt{height:100%;display:flex;flex-direction:column;min-height:0;overflow:hidden}.g81-svt-tabs{display:flex;gap:.24rem;flex:0 0 auto;overflow-x:auto;padding:0 0 .35rem}.g81-svt-tabs button{white-space:nowrap;min-height:34px;padding:.35rem .55rem;border:1px solid #bbf7d0;border-radius:9px;background:#fff;color:#166534;font-size:.65rem;font-weight:900}.g81-svt-tabs button.active{background:#dcfce7;border-color:#22c55e}.g81-svt-stage{flex:1;min-height:0;display:grid;grid-template-columns:300px minmax(0,1fr);gap:.6rem;overflow:hidden}.g81-svt-controls,.g81-svt-visual{min-height:0;height:100%;border:1px solid #d1fae5;border-radius:18px;background:#fff;padding:.65rem;overflow:hidden}.g81-svt-controls{display:flex;flex-direction:column;gap:.34rem;overflow:auto}.g81-svt-controls h3,.g81-svt-controls h4{margin:0;font-weight:950}.g81-svt-controls h3{font-size:1rem}.g81-svt-controls h4{font-size:.75rem;margin-top:.15rem}.g81-svt-controls label{display:grid;gap:.12rem;font-size:.68rem;font-weight:850}.g81-svt-controls select,.g81-svt-controls input,.g81-svt-controls textarea{width:100%;border:1px solid #cbd5e1;border-radius:9px;padding:.35rem .45rem;font-size:.75rem}.g81-svt-note,.g81-feedback,.g81-detail{border-radius:10px;background:#f0fdf4;padding:.4rem .5rem;font-size:.65rem;line-height:1.35;color:#166534}.g81-label-form{display:grid;gap:.25rem}.g81-label-form label{grid-template-columns:28px 1fr;align-items:center}.g81-main{min-height:36px;border:0;border-radius:9px;background:#15803d;color:#fff;font-size:.7rem;font-weight:900}.g81-svt-visual{display:flex;flex-direction:column;gap:.4rem}.g81-diagram,.g81-evo,.g81-geo-main{flex:1;min-height:0;display:flex}.g81-diagram svg,.g81-evo svg,.g81-geo-main svg{width:100%;height:100%;max-height:none}.g81-hotspots circle{fill:#fff;stroke:#0f766e;stroke-width:4;cursor:pointer}.g81-hotspots text{font-size:15px;font-weight:950;pointer-events:none}.g81-gen-grid{height:100%;display:grid;grid-template-columns:1fr 1fr;gap:.55rem}.g81-gen-grid section{border:1px solid #e2e8f0;border-radius:14px;padding:.55rem;overflow:auto}.g81-meiosis{display:grid;grid-template-columns:1fr 1fr;gap:.4rem}.g81-meiosis>div{display:flex;align-items:center;justify-content:center;gap:.25rem;flex-wrap:wrap;padding:.4rem;background:#f8fafc;border-radius:10px;font-weight:950}.g81-meiosis span{font-size:.55rem;color:#64748b}.g81-meiosis b{display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:#dcfce7;color:#166534}.g81-punnett{display:grid;grid-template-columns:repeat(2,1fr);gap:.3rem;margin:.55rem auto;max-width:300px}.g81-punnett div{display:grid;place-items:center;min-height:62px;border-radius:12px;background:#f0fdf4;border:1px solid #bbf7d0;font-size:1.1rem;font-weight:950}.g81-abo-bars{display:grid;gap:.4rem;margin-top:.8rem}.g81-abo-bars div{display:grid;grid-template-columns:30px 1fr 45px;gap:.3rem;align-items:center}.g81-abo-bars i{height:18px;border-radius:999px;background:#ef4444;min-width:2px}.g81-abo-bars b{font-size:.7rem}.g81-dna-flow{flex:1;min-height:0;display:grid;grid-template-rows:1fr auto 1fr;gap:.35rem}.g81-dna-flow section{border:1px solid #e2e8f0;border-radius:14px;padding:.6rem;overflow:auto}.g81-dna-flow section.changed{border-color:#fca5a5;background:#fff7f7}.g81-dna-flow code{display:block;padding:.4rem;background:#0f172a;color:#e2e8f0;border-radius:8px;letter-spacing:.08em}.g81-dna-flow section>div{display:flex;gap:.3rem;flex-wrap:wrap;margin-top:.5rem}.g81-dna-flow span{display:grid;place-items:center;min-width:72px;padding:.35rem;border-radius:10px;background:#ecfdf5}.g81-dna-flow span.mut{background:#fee2e2}.g81-dna-flow span b{font-family:monospace}.g81-dna-flow .arrow{text-align:center;color:#64748b}.g81-div-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:.3rem}.g81-div-cards p{margin:0;border:1px solid #e2e8f0;border-radius:11px;padding:.4rem}.g81-div-cards b{display:block;font-size:.68rem}.g81-div-cards span{font-size:.58rem;color:#64748b}.g81-rock{display:grid;grid-template-columns:1fr auto;gap:.3rem;border:1px solid #d1fae5;border-radius:9px;background:#fff;padding:.35rem .45rem;text-align:left}.g81-rock b{font-size:.7rem}.g81-rock span{font-size:.6rem;color:#64748b}.g81-rock-cycle{display:grid;grid-template-columns:repeat(4,1fr);gap:.3rem}.g81-rock-cycle b{grid-column:1/-1}.g81-rock-cycle span{padding:.35rem;border-radius:9px;background:#f8fafc;font-size:.62rem;text-align:center}
}
@media(max-width:899px){.g81-grav-grid,.g81-lab-layout,.g81-svt-stage{grid-template-columns:1fr!important}.g81-inspector{grid-template-columns:1fr 1fr}.g81-gen-grid{grid-template-columns:1fr}.g81-svt,.g81-chem-lab{height:auto;overflow:visible}.g81-svt-stage,.g81-lab-layout{overflow:visible}.g81-svt-controls,.g81-svt-visual,.g81-lab-controls,.g81-lab-main{height:auto;overflow:visible}.g81-lab-bench{min-height:520px}}

/* V82 — passe gravitation / montages chimiques / SVT + respiration verticale légère */
@media (min-width:900px){
  /* Laisser respirer seulement les feuilles qui collaient au bandeau, sans déplacer les outils déjà validés. */
  body[data-gomathy-page="molecules"] .gomathy-lewis-v8{padding-top:8px!important}
  body[data-gomathy-page="electricity-model"] .g81-electricity{padding-top:7px!important}

  /* Gravitation : dessin important mais informations pédagogiques visibles. */
  .g82-gravity{height:100%;display:flex;flex-direction:column;min-height:0;overflow:hidden;padding-top:4px}
  .g82-grav-recap{flex:0 0 auto}
  .g82-grav-grid{flex:1;min-height:0;display:grid;grid-template-columns:285px minmax(0,1fr);gap:.58rem;overflow:hidden}
  .g82-grav-controls{height:100%;overflow:auto!important;padding:.58rem!important}
  .g82-grav-controls h3{margin:0 0 .28rem!important}
  .g82-grav-controls label{margin-bottom:.28rem!important;font-size:.68rem!important}
  .g82-grav-controls input,.g82-grav-controls select{min-height:34px!important;padding:.32rem .45rem!important;font-size:.75rem!important}
  .g82-space{flex:1;min-height:300px;background:#06101f!important;border-radius:17px!important;overflow:hidden}
  .g82-space svg{width:100%;height:100%;max-height:none}
  .g82-grav-visual{display:flex!important;flex-direction:column!important;min-height:0!important;padding:.55rem!important;overflow:hidden!important}
  .g82-grav-results{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.28rem;flex:0 0 auto;margin-top:.3rem}
  .g82-grav-results p{margin:0;padding:.32rem .42rem;border:1px solid #dbeafe;border-radius:10px;background:#f8fbff}
  .g82-grav-results span{display:block;font-size:.51rem;text-transform:uppercase;font-weight:900;color:#64748b}
  .g82-grav-results strong{display:block;margin-top:.05rem;font-size:.75rem;color:#0f172a}
  .g82-formulas{display:grid;gap:.28rem;margin-top:.25rem;border-radius:12px;background:#f8fafc;border:1px solid #e2e8f0;padding:.45rem}
  .g82-formulas>b{font-size:.7rem;color:#334155}
  .g82-formulas>span{display:flex;align-items:center;justify-content:center;gap:.18rem;min-height:30px;border-radius:8px;background:#fff;font-family:Georgia,"Times New Roman",serif;font-size:.77rem;color:#0f172a;border:1px solid #eef2f7}
  .g82-frac{display:inline-grid;grid-template-rows:auto auto;vertical-align:middle;line-height:1;text-align:center;margin:0 .08em}
  .g82-frac>span:first-child{border-bottom:1.6px solid currentColor;padding:0 .14em .08em}
  .g82-frac>span:last-child{padding:.08em .14em 0}
  .g82-exotype{flex:0 0 auto;margin-top:.32rem;border:1px solid #c7d2fe;border-radius:12px;background:linear-gradient(100deg,#eef2ff,#fff);padding:.42rem .55rem;display:grid;grid-template-columns:minmax(0,1fr) minmax(250px,.85fr);gap:.28rem .65rem;align-items:center}
  .g82-exotype-head{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:.5rem}
  .g82-exotype-head span{padding:.18rem .45rem;border-radius:999px;background:#3730a3;color:#fff;font-size:.56rem;font-weight:900}
  .g82-exotype-head b{font-size:.66rem;color:#4338ca;text-transform:uppercase;letter-spacing:.04em}
  .g82-exotype p{margin:0;font-size:.68rem;font-weight:750;color:#312e81;line-height:1.3}
  .g82-exotype ol{margin:0;padding-left:1.1rem;font-size:.59rem;color:#475569;line-height:1.35}
  .g82-exotype-answer{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;border-top:1px dashed #c7d2fe;padding-top:.25rem}
  .g82-exotype-answer small{font-size:.54rem;text-transform:uppercase;font-weight:900;color:#64748b}.g82-exotype-answer strong{font-size:.69rem;color:#312e81}

  /* Montage chimique V82 : sélection compacte + paillasse dominante. */
  .g82-chem-lab{height:100%;display:flex;flex-direction:column;min-height:0;overflow:hidden;padding-top:4px}
  .g82-lab-toolbar{display:grid;grid-template-columns:150px 260px auto minmax(260px,1fr);gap:.4rem;align-items:end;flex:0 0 auto;margin-bottom:.4rem}
  .g82-lab-toolbar>label{display:grid;gap:.1rem;font-size:.62rem;font-weight:850;color:#475569}
  .g82-lab-toolbar select{min-height:34px;border:1px solid #cbd5e1;border-radius:9px;background:#fff;padding:.3rem .42rem;font-size:.72rem}
  .g82-lab-mode{display:flex;gap:.2rem}.g82-lab-mode button{min-height:34px;padding:0 .6rem;border:1px solid #e9d5ff;border-radius:9px;background:#fff;color:#6b21a8;font-size:.64rem;font-weight:900}.g82-lab-mode button.active{background:#7e22ce;color:#fff;border-color:#7e22ce}
  .g82-lab-goal{min-height:45px;border-radius:11px;background:#faf5ff;border:1px solid #f5d0fe;padding:.35rem .5rem;display:grid;grid-template-columns:auto 1fr;gap:.05rem .45rem;align-items:center}.g82-lab-goal small{font-size:.5rem;text-transform:uppercase;font-weight:900;color:#7e22ce}.g82-lab-goal strong{font-size:.73rem;color:#581c87}.g82-lab-goal span{grid-column:1/-1;font-size:.59rem;color:#6b21a8}
  .g82-lab-layout{flex:1;min-height:0;display:grid;grid-template-columns:275px minmax(0,1fr);gap:.6rem;overflow:hidden}
  .g82-lab-side,.g82-lab-main{height:100%;min-height:0;border:1px solid #e2e8f0;border-radius:18px;background:#fff;padding:.55rem;overflow:hidden}
  .g82-lab-side{display:flex;flex-direction:column;gap:.34rem;overflow:auto}
  .g82-step-card{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:.35rem;align-items:center;border-radius:12px;background:#faf5ff;border:1px solid #f5d0fe;padding:.42rem}.g82-step-card small{display:block;font-size:.5rem;text-transform:uppercase;font-weight:900;color:#7e22ce}.g82-step-card strong{display:block;margin-top:.08rem;font-size:.67rem;line-height:1.25;color:#581c87}.g82-step-nav{display:flex;gap:.15rem}.g82-step-nav button{width:31px;height:31px;border:1px solid #d8b4fe;border-radius:9px;background:#fff;color:#7e22ce;font-weight:950}.g82-step-nav button:disabled{opacity:.3}
  .g82-values h4,.g82-lab-side>section h4{margin:0 0 .18rem;font-size:.67rem}.g82-values label{display:grid;gap:.08rem;margin-bottom:.18rem;font-size:.59rem;font-weight:800;color:#475569}.g82-values input{min-height:31px;border:1px solid #cbd5e1;border-radius:8px;padding:.27rem .38rem;font-size:.69rem}.g82-lab-hint{border-radius:9px;background:#f0fdf4;padding:.35rem .42rem;font-size:.58rem;line-height:1.3;color:#166534}
  .g82-palette{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.22rem}.g82-palette button{min-height:60px;border:1px solid #e9d5ff;border-radius:10px;background:#fff;color:#6b21a8;padding:.25rem;display:grid;grid-template-columns:38px minmax(0,1fr);gap:.2rem;align-items:center;text-align:left}.g82-palette button svg{width:38px;height:38px}.g82-palette button span{font-size:.56rem;font-weight:900}.g82-palette.useful button{background:#fdf4ff}
  .g82-other{border:1px solid #e2e8f0;border-radius:10px;padding:.3rem .4rem}.g82-other summary{cursor:pointer;font-size:.61rem;font-weight:850;color:#64748b}.g82-other .g82-palette{margin-top:.3rem}
  .g82-lab-actions{display:grid;grid-template-columns:1fr 1fr;gap:.22rem;margin-top:auto}.g82-lab-actions button{min-height:34px;border:1px solid #e9d5ff;border-radius:9px;background:#fff;color:#6b21a8;font-size:.59rem;font-weight:900}.g82-lab-actions .primary{grid-column:1/-1;background:#7e22ce;color:#fff;border-color:#7e22ce}
  .g82-lab-main{display:flex;flex-direction:column;gap:.35rem}.g82-bench-head{display:grid;grid-template-columns:210px minmax(0,1fr);gap:.45rem;align-items:center;flex:0 0 auto;background:#faf5ff;border-radius:11px;padding:.35rem .45rem}.g82-bench-head>div{display:flex;align-items:center;gap:.35rem}.g82-level-badge{padding:.16rem .4rem;border-radius:999px;background:#7e22ce;color:#fff;font-size:.52rem;font-weight:900}.g82-bench-head b{font-size:.7rem}.g82-bench-head ol{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.12rem .45rem;margin:0;padding:0;list-style:none}.g82-bench-head li{font-size:.54rem;color:#6b21a8;display:flex;align-items:flex-start;gap:.2rem;line-height:1.2}.g82-bench-head li span{display:inline-grid;place-items:center;flex:0 0 17px;height:17px;border-radius:50%;background:#fff;border:1px solid #e9d5ff;font-size:.48rem;font-weight:900}.g82-bench-head li.active{font-weight:900;color:#581c87}.g82-bench-head li.active span{background:#7e22ce;color:#fff}
  .g82-lab-bench{position:relative;flex:1;min-height:0;border-radius:16px;overflow:hidden;background:linear-gradient(#f8fafc 0 77%,#e7e5e4 77% 81%,#a8a29e 81%)}.g82-lab-gridbg{position:absolute;inset:0;background-image:radial-gradient(circle,#cbd5e1 1px,transparent 1.1px);background-size:4% 5%;opacity:.18}.g82-bench-label{position:absolute;left:12px;top:10px;font-size:.48rem;font-weight:950;letter-spacing:.12em;color:#94a3b8}.g82-target{position:absolute;width:96px;height:120px;transform:translate(-8px,-8px);border:3px dashed #c084fc;border-radius:16px;background:rgba(250,245,255,.45);display:grid;place-items:end center;animation:g82pulse 1.6s infinite}.g82-target span{margin-bottom:4px;padding:.14rem .32rem;border-radius:999px;background:#7e22ce;color:#fff;font-size:.5rem;font-weight:900}.g82-lab-item{position:absolute;width:88px;height:112px;display:grid;place-items:center;cursor:grab;user-select:none;filter:drop-shadow(0 8px 10px rgba(15,23,42,.1));transition:left .16s ease,top .16s ease}.g82-lab-item svg{width:76px;height:72px}.g82-lab-item small{font-size:.52rem;font-weight:900;text-align:center}.g82-lab-feedback{flex:0 0 auto;border-radius:10px;background:#f8fafc;padding:.38rem .5rem;font-size:.61rem;color:#475569}
  @keyframes g82pulse{50%{box-shadow:0 0 0 8px rgba(192,132,252,.12)}}

  /* SVT V82 : davantage de surface pour les schémas, vrais modes explorer / entraîner. */
  .g82-svt{height:100%;display:flex;flex-direction:column;min-height:0;overflow:hidden;padding-top:4px}
  .g82-svt-tabs{display:grid;grid-template-columns:repeat(7,minmax(105px,1fr));gap:.22rem;flex:0 0 auto;margin-bottom:.35rem}
  .g82-svt-tabs button{min-height:43px;border:1px solid #bbf7d0;border-radius:10px;background:#fff;color:#166534;padding:.25rem .35rem;text-align:center}.g82-svt-tabs button b{display:block;font-size:.62rem;white-space:nowrap}.g82-svt-tabs button small{display:block;margin-top:.08rem;font-size:.47rem;color:#64748b}.g82-svt-tabs button.active{background:#dcfce7;border-color:#22c55e;box-shadow:inset 0 0 0 1px #86efac}
  .g82-svt-stage{flex:1;min-height:0;display:grid;grid-template-columns:275px minmax(0,1fr);gap:.58rem;overflow:hidden}.g82-svt-controls,.g82-svt-visual{height:100%;min-height:0;border:1px solid #d1fae5;border-radius:18px;background:#fff;padding:.58rem;overflow:hidden}.g82-svt-controls{display:flex;flex-direction:column;gap:.32rem;overflow:auto}.g82-svt-controls h3,.g82-svt-controls h4{margin:0;font-weight:950}.g82-svt-controls h3{font-size:.95rem}.g82-svt-controls h4{font-size:.7rem}.g82-svt-controls label{display:grid;gap:.1rem;font-size:.65rem;font-weight:850;color:#334155}.g82-svt-controls select,.g82-svt-controls input,.g82-svt-controls textarea{width:100%;min-height:33px;border:1px solid #cbd5e1;border-radius:9px;padding:.31rem .42rem;font-size:.73rem}.g82-svt-visual{display:flex;flex-direction:column;gap:.34rem}.g82-level{align-self:flex-start;padding:.16rem .42rem;border-radius:999px;background:#166534;color:#fff;font-size:.5rem;font-weight:900}.g82-note,.g82-feedback,.g82-detail{border-radius:10px;background:#f0fdf4;padding:.38rem .48rem;font-size:.62rem;line-height:1.35;color:#166534}.g82-label-form{display:grid;gap:.22rem}.g82-label-form label{grid-template-columns:26px 1fr;align-items:center}.g82-main{min-height:35px;border:0;border-radius:9px;background:#15803d;color:#fff;font-size:.68rem;font-weight:900}.g82-diagram,.g82-evo,.g82-geo-main{flex:1;min-height:0;display:flex}.g82-diagram svg,.g82-evo svg,.g82-geo-main svg{width:100%;height:100%;max-height:none}
  .g82-hotspots circle{fill:#fff;stroke:#0f766e;stroke-width:4;cursor:pointer}.g82-hotspots text{font-size:15px;font-weight:950;pointer-events:none}.g82-hotspots .explore circle{fill:#0f766e;stroke:#fff;stroke-width:2}.g82-hotspots .explore path{stroke:#0f766e;stroke-width:2}.g82-hotspots .explore rect{fill:#fff;stroke:#bbf7d0;stroke-width:2}.g82-hotspots .explore text{font-size:12px;fill:#14532d}
  .g82-mode{display:grid;grid-template-columns:1fr 1fr;gap:.2rem}.g82-mode button{min-height:33px;border:1px solid #bbf7d0;border-radius:9px;background:#fff;color:#166534;font-size:.61rem;font-weight:900}.g82-mode button.active{background:#dcfce7;border-color:#22c55e}
  .g82-gen-grid{height:100%;display:grid;grid-template-columns:1fr 1fr;gap:.5rem}.g82-gen-grid section{border:1px solid #e2e8f0;border-radius:14px;padding:.5rem;overflow:auto}.g82-meiosis{display:grid;grid-template-columns:1fr 1fr;gap:.35rem}.g82-meiosis>div{display:flex;align-items:center;justify-content:center;gap:.22rem;flex-wrap:wrap;padding:.38rem;background:#f8fafc;border-radius:10px;font-weight:950}.g82-meiosis span{font-size:.53rem;color:#64748b}.g82-meiosis b{display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:#dcfce7;color:#166534}.g82-punnett{display:grid;grid-template-columns:repeat(2,1fr);gap:.28rem;margin:.45rem auto;max-width:300px}.g82-punnett div{display:grid;place-items:center;min-height:58px;border-radius:12px;background:#f0fdf4;border:1px solid #bbf7d0;font-size:1.05rem;font-weight:950}.g82-abo-bars{display:grid;gap:.35rem;margin-top:.6rem}.g82-abo-bars div{display:grid;grid-template-columns:30px 1fr 45px;gap:.3rem;align-items:center}.g82-abo-bars i{height:18px;border-radius:999px;background:#ef4444;min-width:2px}.g82-abo-bars b{font-size:.68rem}
  .g82-dna-flow{flex:1;min-height:0;display:grid;grid-template-rows:1fr auto 1fr;gap:.32rem}.g82-dna-flow section{border:1px solid #e2e8f0;border-radius:14px;padding:.55rem;overflow:auto}.g82-dna-flow section.changed{border-color:#fca5a5;background:#fff7f7}.g82-dna-flow code{display:block;padding:.38rem;background:#0f172a;color:#e2e8f0;border-radius:8px;letter-spacing:.08em}.g82-dna-flow section>div{display:flex;gap:.28rem;flex-wrap:wrap;margin-top:.4rem}.g82-dna-flow span{display:grid;place-items:center;min-width:68px;padding:.32rem;border-radius:10px;background:#ecfdf5}.g82-dna-flow span.mut{background:#fee2e2}.g82-dna-flow span b{font-family:monospace}.g82-dna-flow .arrow{text-align:center;color:#64748b}
  .g82-div-summary{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:.25rem}.g82-div-summary div{border:1px solid #e2e8f0;border-radius:10px;padding:.3rem .4rem;background:#f8fafc}.g82-div-summary small{display:block;font-size:.48rem;text-transform:uppercase;font-weight:900;color:#64748b}.g82-div-summary b{font-size:.7rem}.g82-hidden{display:none!important}
  .g82-geo-indices{display:grid;grid-template-columns:repeat(4,1fr);gap:.25rem}.g82-geo-indices span{padding:.32rem;border-radius:9px;background:#f8fafc;font-size:.56rem;text-align:center;color:#475569}.g82-rock-gallery{flex:1;min-height:0;display:grid;grid-template-columns:1fr 1fr;gap:.4rem}.g82-rock-gallery button{border:1px solid #d1fae5;border-radius:14px;background:#fff;padding:.42rem;text-align:left;display:grid;grid-template-columns:110px 1fr;grid-template-rows:auto auto;gap:.12rem .45rem}.g82-rock-gallery i{grid-row:1/3;width:110px;height:100%;min-height:115px;border-radius:10px;border:1px solid #cbd5e1}.g82-rock-gallery b{font-size:.76rem}.g82-rock-gallery span{font-size:.58rem;color:#64748b}.g82-rock-cycle{display:grid;grid-template-columns:repeat(4,1fr);gap:.25rem}.g82-rock-cycle b{grid-column:1/-1}.g82-rock-cycle span{padding:.32rem;border-radius:9px;background:#f8fafc;font-size:.56rem;text-align:center}
  .g82-body-main{flex:1;min-height:0;display:grid;grid-template-columns:minmax(0,1.45fr) minmax(210px,.55fr);gap:.45rem}.g82-body-diagram{min-height:0;border-radius:14px;background:radial-gradient(circle at 50% 45%,#fff,#f8fafc);border:1px solid #eef2f7;overflow:hidden}.g82-body-diagram svg{width:100%;height:100%;max-height:none}.g82-body-route{display:flex;flex-direction:column;gap:.28rem;border:1px solid #d1fae5;border-radius:14px;background:#f0fdf4;padding:.5rem;overflow:auto}.g82-body-route>b{font-size:.67rem;color:#14532d}.g82-body-route span{display:grid;grid-template-columns:25px 1fr;gap:.3rem;align-items:center;font-size:.58rem;line-height:1.3;color:#166534}.g82-body-route i{display:grid;place-items:center;width:24px;height:24px;border-radius:50%;background:#15803d;color:#fff;font-style:normal;font-weight:900}
}
@media(max-width:899px){
  .g82-grav-grid,.g82-lab-layout,.g82-svt-stage{grid-template-columns:1fr!important}.g82-chem-lab,.g82-svt{height:auto;overflow:visible}.g82-lab-toolbar{grid-template-columns:1fr 1fr}.g82-lab-goal{grid-column:1/-1}.g82-lab-side,.g82-lab-main,.g82-svt-controls,.g82-svt-visual{height:auto;overflow:visible}.g82-lab-bench{min-height:520px}.g82-svt-tabs{display:flex;overflow-x:auto}.g82-svt-tabs button{min-width:120px}.g82-body-main,.g82-gen-grid{grid-template-columns:1fr}.g82-body-diagram{min-height:520px}.g82-rock-gallery{grid-template-columns:1fr}.g82-grav-results{grid-template-columns:1fr 1fr}.g82-exotype{grid-template-columns:1fr}
}

/* ===== SOURCE: styles/gomathy-svt-lab-v131.css ===== */
/* GoMathy V131 — Laboratoire SVT scientifique */
.g131-lab-chips{display:flex;gap:.35rem;flex-wrap:wrap;margin-top:.35rem}.g131-lab-chips span{padding:.22rem .48rem;border-radius:999px;background:#ecfdf5;border:1px solid #a7f3d0;color:#166534;font-size:.56rem;font-weight:900}
.g82-svt-tabs{grid-template-columns:repeat(9,minmax(92px,1fr))!important}.g82-svt-tabs button{transition:.18s ease}.g82-svt-tabs button:hover{transform:translateY(-1px);border-color:#34d399;box-shadow:0 5px 13px rgba(22,101,52,.08)}
.g82-svt-stage{grid-template-columns:310px minmax(0,1fr)!important;gap:.7rem!important}.g82-svt-controls,.g82-svt-visual{border-radius:20px!important;box-shadow:0 10px 28px rgba(15,23,42,.05)}.g82-svt-controls{background:linear-gradient(180deg,#fff,#f8fffb)!important}.g82-svt-visual{background:linear-gradient(180deg,#fff,#f8fafc)!important}
.g131-range-value{float:right;color:#0f766e;font-size:.58rem;font-weight:950}.g82-svt-controls input[type=range]{padding:0;height:24px;accent-color:#0f766e;cursor:grab}.g82-svt-controls input[type=range]:active{cursor:grabbing}
.g131-protocol{padding:.55rem .62rem;border:1px solid #a7f3d0;border-radius:13px;background:#f0fdf4;color:#14532d}.g131-protocol>b{display:block;font-size:.68rem;margin-bottom:.2rem}.g131-protocol p,.g131-protocol ol{margin:.18rem 0 0;padding-left:1.05rem;font-size:.58rem;line-height:1.42}.g131-protocol li+li{margin-top:.12rem}
.g131-micro-layout{height:100%;min-height:0;display:grid;grid-template-columns:minmax(0,1.55fr) minmax(210px,.45fr);gap:.55rem}.g131-micro-field{min-height:0;border:1px solid #dbe4ea;border-radius:18px;overflow:hidden;background:#f8fafc;display:flex}.g131-micro-field svg{width:100%;height:100%}.g131-lab-readout{display:grid;gap:.38rem;align-content:start;overflow:auto}.g131-lab-readout article,.g131-exp-data article{padding:.55rem;border:1px solid #dbe4ea;border-radius:13px;background:#fff}.g131-lab-readout small,.g131-exp-data small{display:block;font-size:.48rem;letter-spacing:.08em;font-weight:950;color:#64748b}.g131-lab-readout b,.g131-exp-data b{display:block;margin-top:.18rem;font-size:.72rem;color:#0f172a}.g131-lab-readout p,.g131-exp-data p{margin:.2rem 0 0;font-size:.56rem;line-height:1.42;color:#475569}.g131-lab-readout article.ok{background:#ecfdf5;border-color:#86efac}.g131-lab-readout article.warn{background:#fff7ed;border-color:#fed7aa}
.g131-exp-grid{height:100%;min-height:0;display:grid;grid-template-columns:minmax(0,1.45fr) minmax(260px,.55fr);gap:.55rem}.g131-apparatus{min-height:0;border:1px solid #dbe4ea;border-radius:18px;background:#f8fafc;overflow:hidden;display:flex}.g131-apparatus svg{width:100%;height:100%}.g131-exp-data{min-height:0;display:flex;flex-direction:column;gap:.45rem;overflow:auto}.g131-exp-data>svg{width:100%;height:auto;border:1px solid #e2e8f0;border-radius:14px;background:#fff;padding:.25rem}.g131-table{display:grid;gap:.24rem;padding:.55rem;border:1px solid #dbe4ea;border-radius:13px;background:#fff}.g131-table>b{font-size:.68rem}.g131-table span{padding:.25rem .36rem;border-radius:8px;background:#f8fafc;font-size:.57rem;color:#334155}.g131-table small{font-size:.5rem;color:#92400e;line-height:1.35}.g131-science-rule{display:grid;grid-template-columns:1fr 1fr;gap:.22rem;padding:.48rem;border:1px solid #dbeafe;border-radius:12px;background:#eff6ff}.g131-science-rule b{grid-column:1/-1;font-size:.63rem;color:#1e3a8a}.g131-science-rule span{font-size:.53rem;color:#1e40af;background:#fff;padding:.22rem .3rem;border-radius:7px;text-align:center;font-weight:850}
.g82-svt-visual.micro,.g82-svt-visual.experiment{padding:.45rem!important}.g82-svt-controls.micro,.g82-svt-controls.experiment{padding:.7rem!important}
@media(max-width:1100px){.g82-svt-tabs{display:flex!important;overflow-x:auto}.g82-svt-tabs button{min-width:118px}.g131-micro-layout,.g131-exp-grid{grid-template-columns:1fr}.g131-lab-readout{grid-template-columns:repeat(2,minmax(0,1fr))}.g131-exp-data{display:grid;grid-template-columns:1fr 1fr}.g131-exp-data>svg{grid-column:1/-1}}
@media(max-width:899px){.g82-svt-stage{grid-template-columns:1fr!important}.g131-micro-field,.g131-apparatus{min-height:470px}.g131-lab-readout,.g131-exp-data{grid-template-columns:1fr}}


/* V132 — rendu scientifique plus réaliste sans sacrifier la lisibilité pédagogique */
.g82-geo-main,.g82-body-diagram,.g82-diagram{position:relative;background:linear-gradient(180deg,#fbfdff,#f8fafc)!important;border:1px solid #dbe4ea;box-shadow:inset 0 1px 0 #fff,0 8px 24px rgba(15,23,42,.04)}
.g132-science-svg{font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif}.g132-science-svg text{paint-order:stroke;stroke:#fff;stroke-width:.45px;stroke-opacity:.28}.g82-geo-main .g132-science-svg,.g82-body-diagram .g132-science-svg,.g82-diagram .g132-science-svg{filter:saturate(.96) contrast(1.02)}
.g82-hotspots .explore rect{fill:rgba(255,255,255,.94)!important;stroke:#86efac!important;filter:drop-shadow(0 2px 5px rgba(15,23,42,.1))}.g82-hotspots .explore path{stroke:#0f766e!important;stroke-width:2.2!important}.g82-hotspots .explore circle{r:7px;filter:drop-shadow(0 1px 2px rgba(15,23,42,.15))}.g82-hotspots .explore text{font-size:11.5px!important;font-weight:900!important;stroke:none!important}
.g82-geo-indices{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));gap:.28rem}.g82-geo-indices span{border:1px solid #e2e8f0;border-radius:10px;background:#fff;padding:.28rem .36rem;text-align:center;font-size:.53rem!important;font-weight:850;color:#475569;box-shadow:0 2px 7px rgba(15,23,42,.04)}
.g82-body-route{background:linear-gradient(180deg,#f0fdf4,#ecfdf5)!important}.g82-body-route span{background:rgba(255,255,255,.72);border:1px solid rgba(167,243,208,.75);border-radius:9px;padding:.28rem}.g82-body-route i{box-shadow:0 2px 5px rgba(21,128,61,.18)}
.g131-apparatus{background:linear-gradient(180deg,#f8fafc,#eef2f7)!important;box-shadow:inset 0 1px 0 #fff}.g131-apparatus svg{filter:drop-shadow(0 3px 8px rgba(15,23,42,.05))}.g131-micro-field{background:radial-gradient(circle at 50% 45%,#fff,#e2e8f0)!important;box-shadow:inset 0 1px 0 #fff}
@media(max-width:1100px){.g82-geo-indices{grid-template-columns:repeat(2,minmax(0,1fr))}}


/* V133 — anatomie, microscope et expériences : rendu atlas/laboratoire plus crédible */
.g133-micro-svg,.g133-lab-svg,.g133-anatomy-svg{font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif}
.g133-lab-svg text,.g133-anatomy-svg text{paint-order:stroke;stroke:#fff;stroke-width:.35px;stroke-opacity:.2}
.g131-apparatus{background:linear-gradient(180deg,#fbfcfd 0%,#eef3f7 100%)!important}
.g131-apparatus:before,.g131-micro-field:before{content:"";position:absolute;inset:0;pointer-events:none;border-radius:inherit;box-shadow:inset 0 1px 0 rgba(255,255,255,.9)}
.g131-apparatus,.g131-micro-field{position:relative}
.g82-body-diagram{background:radial-gradient(circle at 50% 42%,#ffffff 0,#fbfcfe 64%,#f1f5f9 100%)!important}
.g82-body-diagram svg{max-height:100%;filter:drop-shadow(0 2px 4px rgba(15,23,42,.035))}
.g133-anatomy-svg [filter]{filter:url(#g133anash)}
.g131-micro-field{background:radial-gradient(circle at 50% 45%,#fff 0,#e8edf3 72%,#d4dde7 100%)!important}
.g131-lab-readout article,.g131-exp-data article,.g131-table{box-shadow:0 3px 10px rgba(15,23,42,.035)}
@media(min-width:1101px){.g82-body-main{grid-template-columns:minmax(0,1fr) 205px!important}.g82-body-diagram{min-width:0}.g131-apparatus svg{min-height:430px}}

/* ===== SOURCE: styles/gomathy-svt-visuals-v134.css ===== */
/* GoMathy V134 — SVT visuels scientifiques enrichis */
.g134-cell-svg,.g134-eco-svg,.g134-evo-svg{font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif}
.g134-cell-svg text,.g134-eco-svg text,.g134-evo-svg text{paint-order:stroke;stroke:#fff;stroke-width:.35px;stroke-opacity:.22}
.g82-diagram:has(.g134-cell-svg){border-radius:18px;overflow:hidden;background:radial-gradient(circle at 50% 35%,#fff,#f4f8fb)!important}

/* Génétique */
.g134-genetics{height:100%;min-height:0;display:grid;grid-template-columns:minmax(0,1.16fr) minmax(310px,.84fr);gap:.58rem}
.g134-genetics>section{min-height:0;overflow:auto;border:1px solid #dce6ed;border-radius:18px;background:linear-gradient(180deg,#fff,#fbfdff);padding:.7rem;box-shadow:0 6px 18px rgba(15,23,42,.045)}
.g134-genetics header{display:flex;justify-content:space-between;align-items:flex-start;gap:.5rem;margin-bottom:.55rem}.g134-genetics header small{font-size:.48rem;letter-spacing:.09em;font-weight:950;color:#64748b}.g134-genetics header h3{margin:.12rem 0 0;font-size:.92rem}.g134-process-chip{white-space:nowrap;border:1px solid #bbf7d0;background:#f0fdf4;color:#166534;border-radius:999px;padding:.24rem .42rem;font-size:.5rem;font-weight:900}
.g134-parents{display:grid;grid-template-columns:1fr 1fr;gap:.45rem}.g134-parent-card{border:1px solid #e2e8f0;border-radius:14px;background:#f8fafc;padding:.5rem}.g134-parent-title{display:flex;justify-content:space-between;align-items:center}.g134-parent-title span{font-size:.58rem;font-weight:900;color:#475569}.g134-parent-title b{font-size:.92rem}.g134-parent-card>small{display:block;text-align:center;font-size:.47rem;color:#64748b;margin-top:.24rem}.g134-chromosomes{height:58px;display:flex;justify-content:center;align-items:center;gap:24px}.g134-chromosomes i{position:relative;width:10px;height:45px;border-radius:8px;background:linear-gradient(180deg,#60a5fa,#2563eb);transform:rotate(11deg);box-shadow:8px 0 0 -1px #3b82f6}.g134-chromosomes i.rec{background:linear-gradient(180deg,#86efac,#22c55e);box-shadow:8px 0 0 -1px #4ade80;transform:rotate(-10deg)}.g134-chromosomes em{position:absolute;left:15px;top:13px;font-style:normal;width:25px;height:25px;border-radius:50%;display:grid;place-items:center;background:#fff;border:1px solid #dce6ed;font-weight:950;color:#334155}
.g134-separation{display:grid;grid-template-columns:auto 1fr auto 1fr;align-items:center;gap:.35rem;margin:.5rem 0}.g134-separation>span{font-size:.55rem;font-weight:950;color:#64748b}.g134-separation>div{display:flex;justify-content:center;gap:.28rem}.g134-separation>i{font-style:normal;font-size:1rem;font-weight:900;color:#94a3b8}.g134-gamete{position:relative;width:34px;height:34px;border-radius:50%;display:grid;place-items:center;border:2px solid #60a5fa;background:radial-gradient(circle at 35% 30%,#fff,#dbeafe);box-shadow:0 2px 6px rgba(37,99,235,.13)}.g134-gamete.rec{border-color:#4ade80;background:radial-gradient(circle at 35% 30%,#fff,#dcfce7)}.g134-gamete b{font-size:.72rem;color:#1e3a8a}.g134-gamete.rec b{color:#166534}.g134-gamete i{position:absolute;width:6px;height:6px;border-radius:50%;background:currentColor;opacity:.18;right:7px;bottom:6px}
.g134-punnett{--g134-cols:3;display:grid;grid-template-columns:repeat(var(--g134-cols),minmax(62px,1fr));gap:.22rem;background:#eef4f7;border:1px solid #d8e2e9;border-radius:15px;padding:.35rem}.g134-punnett>div{min-height:58px;border-radius:10px;background:#fff;display:flex;align-items:center;justify-content:center}.g134-punnett .corner{font-size:.49rem;text-transform:uppercase;letter-spacing:.06em;font-weight:950;color:#64748b}.g134-punnett .head{background:#f8fafc}.g134-punnett .cell{flex-direction:column;border:1px solid #d9f0e0;background:linear-gradient(180deg,#f2fff6,#eafaf0)}.g134-punnett .cell b{font-size:.94rem}.g134-punnett .cell small{font-size:.43rem;color:#568165;margin-top:.1rem}.g134-result-strip{display:flex;align-items:center;gap:.26rem;flex-wrap:wrap;margin-top:.42rem;padding:.4rem .45rem;border-radius:11px;background:#f0fdf4}.g134-result-strip>b{font-size:.55rem;color:#166534;margin-right:.1rem}.g134-result-strip span{display:flex;gap:.2rem;align-items:center;background:#fff;border:1px solid #d9f0e0;border-radius:999px;padding:.18rem .34rem;font-size:.5rem;color:#475569}.g134-result-strip strong{color:#0f172a}
.g134-abo-parents{display:flex;align-items:center;justify-content:center;gap:.45rem;margin-bottom:.5rem}.g134-abo-parents span{padding:.3rem .65rem;border-radius:10px;background:#f8fafc;border:1px solid #dce6ed;font-size:.9rem;font-weight:950}.g134-abo-parents i{font-style:normal;color:#94a3b8;font-weight:900}.g134-rbc-list{display:grid;gap:.36rem}.g134-rbc-list article{position:relative;display:grid;grid-template-columns:64px 1fr 48px;grid-template-rows:auto 5px;align-items:center;gap:.1rem .35rem;padding:.38rem .42rem;border:1px solid #e2e8f0;border-radius:12px;background:#fff}.g134-rbc-list article.zero{opacity:.52}.g134-rbc-list svg{width:58px;height:42px;grid-row:1/3}.g134-rbc-list article div b{display:block;font-size:.66rem}.g134-rbc-list article div small{display:block;font-size:.47rem;color:#64748b}.g134-rbc-list article>strong{justify-self:end;font-size:.65rem}.g134-rbc-list .bar{grid-column:2/4;height:5px;border-radius:999px;background:#fee2e2;overflow:hidden}.g134-rbc-list .bar i{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#fb7185,#e11d48)}

/* ADN -> protéine */
.g134-dna-workbench{height:100%;min-height:0;display:grid;grid-template-rows:auto minmax(0,1fr) auto minmax(0,1fr) auto;gap:.38rem}.g134-dna-workbench>header{display:grid;grid-template-columns:92px 1fr auto;align-items:center;gap:.55rem;padding:.42rem .55rem;border:1px solid #dbe7ef;border-radius:14px;background:linear-gradient(90deg,#f7fbff,#fff)}.g134-dna-workbench>header svg{width:82px;height:46px}.g134-dna-workbench>header small{font-size:.46rem;font-weight:950;letter-spacing:.08em;color:#64748b}.g134-dna-workbench>header h3{margin:.08rem 0 0;font-size:.8rem}.g134-dna-legend{display:flex;gap:.18rem}.g134-dna-legend span{width:25px;height:25px;border-radius:7px;display:grid;place-items:center;color:#fff;font-size:.55rem;font-weight:950}.g134-dna-legend .bA,.g134-base.bA{background:#2563eb}.g134-dna-legend .bT,.g134-base.bT{background:#ef4444}.g134-dna-legend .bG,.g134-base.bG{background:#16a34a}.g134-dna-legend .bC,.g134-base.bC{background:#f59e0b}
.g134-seq-card{min-height:0;overflow:auto;border:1px solid #dce6ed;border-radius:15px;background:#fff;padding:.45rem}.g134-seq-card.altered{border-color:#fecaca;background:linear-gradient(180deg,#fff,#fff8f8)}.g134-seq-title{display:grid;grid-template-columns:34px 1fr auto;gap:.35rem;align-items:center;margin-bottom:.36rem}.g134-seq-title>span{width:30px;height:30px;border-radius:9px;background:#0f172a;color:#fff;display:grid;place-items:center;font-size:.56rem;font-weight:950}.g134-seq-title small{display:block;font-size:.45rem;letter-spacing:.08em;font-weight:950;color:#64748b}.g134-seq-title b{display:block;font-size:.57rem;margin-top:.08rem;color:#334155}.g134-seq-title code{padding:.28rem .42rem;border-radius:8px;background:#111827;color:#e5e7eb;font-size:.61rem;letter-spacing:.07em;white-space:nowrap}.g134-codon-row{display:flex;gap:.3rem;flex-wrap:wrap}.g134-codon{min-width:92px;padding:.32rem;border:1px solid #e2e8f0;border-radius:12px;background:#f8fafc}.g134-codon.mutated{border-color:#fca5a5;background:#fff1f2;box-shadow:inset 0 0 0 1px #fee2e2}.g134-codon .bases{display:flex;gap:.12rem}.g134-base{width:22px;height:22px;border-radius:6px;display:grid;place-items:center;color:#fff;font-size:.53rem;font-weight:950;box-shadow:inset 0 1px 0 rgba(255,255,255,.35)}.g134-codon .triplet{display:block;margin:.2rem 0 .18rem;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:.48rem;color:#64748b;letter-spacing:.05em}.g134-codon .aa{display:flex;align-items:center;gap:.25rem}.g134-codon .aa i{width:12px;height:12px;border-radius:50%;background:var(--aa);box-shadow:0 2px 4px color-mix(in srgb,var(--aa) 25%,transparent)}.g134-codon .aa b{font-size:.6rem}.g134-flow-arrow{display:flex;align-items:center;justify-content:center;gap:.45rem;color:#64748b}.g134-flow-arrow span,.g134-flow-arrow em{font-size:.5rem;font-style:normal}.g134-flow-arrow b{font-size:1rem;color:#0f766e}.g134-consequence{display:flex;align-items:center;gap:.45rem;padding:.42rem .55rem;border-radius:12px}.g134-consequence.neutral{background:#ecfdf5;border:1px solid #bbf7d0}.g134-consequence.impact{background:#fff7ed;border:1px solid #fed7aa}.g134-consequence>span{width:28px;height:28px;border-radius:50%;display:grid;place-items:center;background:#fff;font-weight:950}.g134-consequence small{display:block;font-size:.44rem;font-weight:950;letter-spacing:.07em;color:#64748b}.g134-consequence b{font-size:.6rem}

/* Diversité / évolution */
.g134-evo-layout{height:100%;min-height:0;display:grid;grid-template-rows:auto minmax(0,1fr) auto auto;gap:.38rem}.g134-scenario-card{display:grid;grid-template-columns:118px 1fr auto;align-items:center;gap:.55rem;padding:.46rem .58rem;border:1px solid #dce6ed;border-radius:15px;background:linear-gradient(90deg,#f8fbff,#fff)}.g134-scenario-card small{font-size:.43rem;letter-spacing:.08em;font-weight:950;color:#64748b}.g134-scenario-card h3{margin:.08rem 0;font-size:.78rem}.g134-scenario-card p{margin:0;font-size:.5rem;color:#64748b;line-height:1.32}.g134-model-chip{white-space:nowrap;padding:.21rem .4rem;border-radius:999px;background:#eef2ff;color:#4338ca;border:1px solid #c7d2fe;font-size:.45rem;font-weight:900}.g134-pop-picto{height:58px;border-radius:12px;background:#f8fafc;border:1px solid #e2e8f0;display:flex;align-items:center;justify-content:center;gap:5px;flex-wrap:wrap;padding:8px}.g134-pop-picto i{width:9px;height:9px;border-radius:50%;background:#60a5fa}.g134-pop-picto.selection i.fit{background:#e9365a;box-shadow:0 0 0 3px #ffe4e8}.g134-pop-picto.selection b{color:#e9365a}.g134-pop-picto.drift i:nth-child(3n){background:#7c4dff}.g134-pop-picto.drift i:nth-child(4n){background:#1f9d78}.g134-pop-picto.bottleneck,.g134-pop-picto.founder{flex-wrap:nowrap}.g134-pop-picto.bottleneck span,.g134-pop-picto.founder span{display:flex;gap:3px;flex-wrap:wrap;max-width:46px}.g134-pop-picto.bottleneck em{width:12px;height:42px;background:linear-gradient(90deg,transparent,#cbd5e1,transparent);clip-path:polygon(0 0,100% 0,65% 50%,100% 100%,0 100%,35% 50%)}.g134-pop-picto.founder b{color:#64748b}.g134-pop-picto.founder span:last-child i{background:#7c4dff}.g82-evo:has(.g134-evo-svg){border:1px solid #dce6ed;border-radius:18px;overflow:hidden;background:#fff}.g134-div-summary{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:.26rem}.g134-div-summary>div{border:1px solid #e2e8f0;border-radius:11px;background:#fff;padding:.32rem .4rem;box-shadow:0 2px 6px rgba(15,23,42,.025)}.g134-div-summary>div:not(.start){border-top:3px solid var(--pop)}.g134-div-summary small{display:block;font-size:.43rem;text-transform:uppercase;font-weight:950;color:#64748b}.g134-div-summary b{display:block;font-size:.66rem;margin:.1rem 0}.g134-div-summary span{display:block;height:4px;border-radius:999px;background:#eef2f7;overflow:hidden}.g134-div-summary span i{display:block;height:100%;background:var(--pop);border-radius:inherit}

/* Écosystèmes */
.g134-eco-scene{flex:1;min-height:0;border:1px solid #dce6ed;border-radius:18px;overflow:hidden;background:#fff;box-shadow:0 6px 18px rgba(15,23,42,.04)}.g134-eco-scene svg{width:100%;height:100%;display:block}.g134-name-pill rect,.g134-food-label rect,.g134-flux-label rect{fill:#fff;fill-opacity:.94;stroke:#d9e6df}.g134-name-pill text{font-size:11px;font-weight:900;fill:#334155}.g134-food-label text,.g134-flux-label text{font-size:9.5px;font-weight:850;fill:#475569}.g134-eco-caption{padding:.38rem .48rem;border-radius:11px;background:#f0fdf4;border:1px solid #d1fae5;color:#166534;font-size:.55rem;line-height:1.35}

@media(max-width:1100px){.g134-genetics{grid-template-columns:1fr}.g134-genetics>section{min-height:420px}.g134-scenario-card{grid-template-columns:100px 1fr}.g134-model-chip{display:none}.g134-div-summary{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:700px){.g134-parents{grid-template-columns:1fr}.g134-genetics>section{min-height:520px}.g134-dna-workbench>header{grid-template-columns:70px 1fr}.g134-dna-legend{display:none}.g134-seq-title{grid-template-columns:30px 1fr}.g134-seq-title code{grid-column:1/-1}.g134-scenario-card{grid-template-columns:1fr}.g134-pop-picto{display:none}.g134-div-summary{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* ===== SOURCE: styles/gomathy-svt-layout-v135.css ===== */
/* GoMathy V135 — SVT layout optimisation
   Objectif : plus de contenu utile au-dessus de la ligne de flottaison,
   navigation atlas sur une seule ligne, plan de travail compact et suppression
   du scroll vertical imbriqué dans les planches scientifiques. */

/* ===== 1. Cours : en-tête plus dense sans perdre la hiérarchie ===== */
@media (min-width: 1100px){
  .svt-course-shell{
    width:min(1460px,calc(100vw - 44px));
  }
  .svt-course-hero{
    grid-template-columns:70px minmax(0,1fr);
    gap:18px;
    padding:20px 24px;
    border-radius:24px;
  }
  .svt-course-hero-icon{
    width:60px;
    height:60px;
    border-radius:18px;
    font-size:32px;
  }
  .svt-course-kicker{font-size:11px;letter-spacing:.16em}
  .svt-course-hero h2{
    margin-top:3px;
    font-size:clamp(32px,2.55vw,40px);
    line-height:1.04;
  }
  .svt-course-summary{
    max-width:none;
    margin-top:8px;
    font-size:15.5px;
    line-height:1.52;
  }
  .svt-course-problem{
    max-width:none;
    width:100%;
    box-sizing:border-box;
    margin-top:11px;
    padding:10px 13px;
    border-radius:13px;
    font-size:14px;
    line-height:1.42;
  }
}

/* ===== 2. Plan de travail : 6 étapes = une vraie barre de progression ===== */
.svt129-workplan{
  margin:14px 0 12px;
  padding:13px 15px 14px;
  border-radius:18px;
  box-shadow:0 7px 20px rgba(15,23,42,.05);
}
.svt129-workplan header{
  margin-bottom:10px;
  gap:14px;
}
.svt129-workplan header p{font-size:9.5px;letter-spacing:.09em}
.svt129-workplan h3{font-size:16px}
.svt129-progress{min-width:160px;gap:7px}
.svt129-progress i{height:7px}
.svt129-workgrid{gap:7px}
.svt129-workgrid button{
  min-width:0;
  min-height:58px;
  gap:8px;
  padding:8px 9px;
  border-radius:12px;
}
.svt129-workgrid button>span{
  width:25px;
  height:25px;
  flex:0 0 25px;
  font-size:12px;
}
.svt129-workgrid button b{font-size:11.7px;line-height:1.18}
.svt129-workgrid button small{font-size:9.8px;line-height:1.25}
@media (min-width: 1260px){
  .svt129-workgrid{grid-template-columns:repeat(6,minmax(0,1fr))}
}
@media (min-width: 901px) and (max-width: 1259px){
  .svt129-workgrid{grid-template-columns:repeat(3,minmax(0,1fr))}
}

/* Sommaire du chapitre : compact, une seule bande horizontale sur desktop. */
.svt-course-outline{
  gap:7px;
  margin:9px 0 14px;
  padding:2px 1px 4px;
}
.svt-course-outline a{
  gap:6px;
  padding:7px 10px;
  font-size:11.5px;
}
.svt-course-outline a span{
  width:21px;
  height:21px;
  font-size:10px;
}

/* ===== 3. Atlas : titre + 9 onglets sans retour de ligne maladroit ===== */
.svt-v125-atlas{
  margin-bottom:18px;
  border-radius:24px;
  box-shadow:0 10px 28px rgba(15,118,110,.075);
}
.svt-v125-atlas>header{
  gap:14px;
  padding:15px 17px 12px;
  align-items:center;
}
.svt-v125-atlas>header>div:first-child{
  flex:0 1 440px;
  min-width:280px;
  max-width:440px;
}
.svt-v125-atlas header p{font-size:9.5px;letter-spacing:.15em}
.svt-v125-atlas h3{
  margin:3px 0;
  font-size:19px;
  line-height:1.17;
}
.svt-v125-atlas header span{font-size:11.5px;line-height:1.35}
.svt-v125-tabs{
  flex:1 1 auto;
  min-width:0;
  display:flex;
  flex-wrap:nowrap;
  gap:6px;
  justify-content:flex-end;
  overflow-x:auto;
  padding:2px 1px 4px;
  scrollbar-width:thin;
  scrollbar-color:#99f6e4 transparent;
}
.svt-v125-tabs::-webkit-scrollbar{height:5px}
.svt-v125-tabs::-webkit-scrollbar-thumb{background:#99f6e4;border-radius:99px}
.svt-v125-tabs button{
  flex:0 0 auto;
  padding:7px 9px;
  font-size:10.5px;
  white-space:nowrap;
}
.svt-v125-pane{padding:13px 15px 15px}
.svt-v125-plate{padding:6px;border-radius:18px}
.svt-v125-caption{
  margin-top:7px;
  padding:7px 10px;
  font-size:11px;
}

/* ===== 4. Planche scientifique : pas de scroll vertical dans un scroll de page ===== */
.svt126-pro-wrap{gap:8px}
.svt126-pro-toolbar{
  gap:9px;
  padding:8px 10px;
  border-radius:13px;
}
.svt126-pro-toolbar b{font-size:11px}
.svt126-pro-toolbar span{font-size:10px}
.svt126-pro-toolbar small{margin-top:2px;font-size:8.8px}
.svt126-pro-toolbar>button{padding:7px 9px;font-size:10px}
.svt126-zoom{gap:5px}
.svt126-zoom button{width:28px;height:28px;border-radius:8px;font-size:17px}
.svt126-zoom label{font-size:9px}
.svt126-zoom input{width:95px}

.svt126-diagram-viewport{
  display:flex;
  justify-content:center;
  align-items:flex-start;
  min-height:0;
  max-height:none;
  overflow:auto;
  padding:10px;
  box-sizing:border-box;
  border-radius:18px;
  background:linear-gradient(145deg,#f8fbfd 0%,#f2f8f7 52%,#f8fafc 100%);
  scrollbar-gutter:stable both-edges;
}
.svt126-diagram-stage{
  width:min(100%,1000px);
  min-width:0;
  margin:0 auto;
  flex:0 0 auto;
  transform-origin:50% 0%;
}
.svt126-svg{
  width:100%;
  height:auto;
  max-height:none;
}
.svt126-spot-card{
  min-height:0;
  padding:8px 11px;
  border-radius:12px;
  display:grid;
  grid-template-columns:auto minmax(0,1fr);
  gap:8px 12px;
  align-items:center;
}
.svt126-spot-card b{font-size:10.5px;white-space:nowrap}
.svt126-spot-card p{margin:0;font-size:10.5px;line-height:1.35}

/* Les couches HD V128/V130 suivent aussi une hauteur naturelle. */
.svt128-stage{
  overflow:hidden;
  border-radius:20px;
}
.svt130-premium .svt128-stage{min-height:0}
.svt130-premium .svt128-svg,
.svt130-svg{
  min-height:0!important;
  max-height:min(68vh,620px);
  width:100%;
  object-fit:contain;
}

/* ===== 5. Desktop large : densité visuelle maîtrisée ===== */
@media (min-width: 1380px){
  .svt-course-shell{margin-bottom:36px}
  .svt129-workplan{padding-left:17px;padding-right:17px}
  .svt-v125-atlas>header>div:first-child{flex-basis:405px;max-width:405px}
  .svt-v125-tabs button{padding-inline:8px}
}

/* ===== 6. Intermédiaire : on évite de forcer la navigation ===== */
@media (max-width: 1099px){
  .svt-v125-atlas>header{
    display:block;
    padding:15px;
  }
  .svt-v125-atlas>header>div:first-child{max-width:none}
  .svt-v125-tabs{
    justify-content:flex-start;
    margin-top:10px;
  }
  .svt126-diagram-stage{width:min(100%,900px)}
}

/* ===== 7. Mobile/tablette : scroll horizontal uniquement quand il est utile ===== */
@media (max-width: 700px){
  .svt129-workplan{margin-top:10px;padding:11px}
  .svt129-workgrid{grid-template-columns:1fr}
  .svt-course-outline{margin-top:8px}
  .svt-v125-atlas{border-radius:20px}
  .svt-v125-pane{padding:11px}
  .svt126-pro-toolbar{align-items:flex-start}
  .svt126-diagram-viewport{
    justify-content:flex-start;
    padding:6px;
    scrollbar-gutter:auto;
  }
  .svt126-diagram-stage{
    width:700px;
    min-width:700px;
  }
  .svt126-spot-card{
    display:block;
  }
  .svt126-spot-card b{display:block;margin-bottom:3px;white-space:normal}
}

/* ===== SOURCE: styles/gomathy-svt-polish-v136.css ===== */
/* GoMathy V136 — SVT premium visual polish
   Scope volontairement limité au laboratoire SVT.
   Objectifs : densité maîtrisée, hiérarchie moderne, profondeur discrète,
   comparaison ADN plus efficace, panneaux scientifiques plus cohérents. */

.g136-lab{
  --svt-ink:#122033;
  --svt-muted:#607086;
  --svt-green:#0b7f65;
  --svt-green-2:#19a978;
  --svt-line:#cfe8de;
  --svt-card:#ffffff;
  --svt-soft:#f6fbf9;
  --svt-shadow:0 14px 38px rgba(24,52,45,.075),0 2px 7px rgba(15,23,42,.035);
  --svt-inner:inset 0 1px 0 rgba(255,255,255,.92);
  color:var(--svt-ink);
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;
  text-rendering:optimizeLegibility;
}

/* ---------- En-tête : plus éditorial, moins massif ---------- */
.g136-lab>.gomathy-tool-title-v8{
  position:relative;
  overflow:hidden;
  margin:0 0 .52rem!important;
  padding:.72rem 1rem!important;
  border:1px solid #e6dcf7!important;
  border-radius:20px!important;
  background:
    radial-gradient(circle at 88% 20%,rgba(167,243,208,.24),transparent 25%),
    linear-gradient(120deg,#fff 0%,#fbf8ff 58%,#f5fffb 100%)!important;
  box-shadow:0 12px 28px rgba(83,52,112,.055)!important;
}
.g136-lab>.gomathy-tool-title-v8::after{
  content:"";
  position:absolute;inset:0 auto 0 0;width:4px;
  background:linear-gradient(180deg,#8b5cf6,#34d399);
  opacity:.78;
}
.g136-lab>.gomathy-tool-title-v8>div{
  display:grid;
  grid-template-columns:minmax(250px,.58fr) minmax(360px,1.35fr) auto;
  grid-template-areas:"eyebrow eyebrow chips" "title summary chips";
  gap:.2rem 1rem;
  align-items:center;
}
.g136-lab>.gomathy-tool-title-v8 .eyebrow{
  grid-area:eyebrow;
  margin:0!important;
  color:#7c3aed!important;
  font-size:.58rem!important;
  letter-spacing:.12em!important;
}
.g136-lab>.gomathy-tool-title-v8 h2{
  grid-area:title;
  margin:0!important;
  font-family:Georgia,"Times New Roman",serif;
  font-size:1.62rem!important;
  line-height:1.05!important;
  letter-spacing:-.015em;
  color:#101827!important;
}
.g136-lab>.gomathy-tool-title-v8>div>p:not(.eyebrow){
  grid-area:summary;
  margin:0!important;
  max-width:760px;
  font-family:Georgia,"Times New Roman",serif;
  font-size:.84rem!important;
  line-height:1.34!important;
  color:#334155!important;
}
.g136-lab .g131-lab-chips{
  grid-area:chips;
  display:grid;
  grid-template-columns:repeat(2,max-content);
  gap:.25rem!important;
  margin:0!important;
  justify-content:end;
}
.g136-lab .g131-lab-chips span{
  display:flex;align-items:center;justify-content:center;
  min-height:27px;
  padding:.25rem .52rem;
  border-color:#b9ecd5;
  background:rgba(255,255,255,.82);
  box-shadow:0 3px 10px rgba(15,118,110,.045);
  font-size:.54rem;
  letter-spacing:.01em;
}

/* ---------- Onglets : bande d'outils plus nette ---------- */
.g136-lab .g82-svt-tabs{
  gap:.32rem!important;
  margin-bottom:.48rem!important;
  padding:0 1px 2px;
}
.g136-lab .g82-svt-tabs button{
  position:relative;
  min-height:46px;
  overflow:hidden;
  border:1px solid #c9eadb;
  border-radius:13px;
  background:linear-gradient(180deg,#fff,#fbfefc);
  color:#185c4a;
  box-shadow:0 2px 7px rgba(15,23,42,.025);
  transition:transform .16s ease,border-color .16s ease,box-shadow .16s ease,background .16s ease;
}
.g136-lab .g82-svt-tabs button::before{
  content:"";
  position:absolute;left:12%;right:12%;bottom:0;height:2px;border-radius:99px;
  background:transparent;
}
.g136-lab .g82-svt-tabs button b{font-size:.62rem;letter-spacing:-.005em}
.g136-lab .g82-svt-tabs button small{font-size:.43rem;color:#748294}
.g136-lab .g82-svt-tabs button:hover{
  transform:translateY(-1px);
  border-color:#82d9b7;
  box-shadow:0 6px 16px rgba(15,118,110,.075);
}
.g136-lab .g82-svt-tabs button.active{
  border-color:#34d399!important;
  background:linear-gradient(180deg,#e7fff1,#d9fae8)!important;
  box-shadow:inset 0 0 0 1px rgba(34,197,94,.25),0 7px 18px rgba(22,163,74,.10)!important;
  color:#075e45!important;
}
.g136-lab .g82-svt-tabs button.active::before{background:linear-gradient(90deg,#10b981,#22c55e)}

/* ---------- Plateau général ---------- */
.g136-lab .g82-svt-stage{
  grid-template-columns:292px minmax(0,1fr)!important;
  gap:.62rem!important;
}
.g136-lab .g82-svt-controls,
.g136-lab .g82-svt-visual{
  border-color:#cce8dc!important;
  border-radius:19px!important;
  box-shadow:var(--svt-shadow)!important;
}
.g136-lab .g82-svt-controls{
  position:relative;
  padding:.72rem!important;
  gap:.37rem!important;
  background:
    linear-gradient(180deg,rgba(255,255,255,.98),rgba(247,253,250,.98))!important;
}
.g136-lab .g82-svt-controls::before{
  content:"";position:absolute;left:0;top:18px;bottom:18px;width:3px;
  border-radius:0 99px 99px 0;background:linear-gradient(#34d399,#a7f3d0);opacity:.7;
}
.g136-lab .g82-svt-controls h3{
  margin:.04rem 0 .08rem!important;
  font-family:Georgia,"Times New Roman",serif;
  font-size:1rem!important;
  letter-spacing:-.01em;
}
.g136-lab .g82-svt-controls h4{margin:.25rem 0 .02rem!important;font-size:.67rem!important;color:#214739}
.g136-lab .g82-level{
  padding:.18rem .45rem;
  background:linear-gradient(180deg,#087658,#075c46);
  box-shadow:0 3px 8px rgba(6,95,70,.14);
  font-size:.48rem;
}
.g136-lab .g82-svt-controls label{
  gap:.13rem!important;
  font-size:.59rem!important;
  color:#3c4d5e!important;
}
.g136-lab .g82-svt-controls select,
.g136-lab .g82-svt-controls input:not([type="range"]),
.g136-lab .g82-svt-controls textarea{
  min-height:35px!important;
  border-color:#c9d8e2!important;
  border-radius:10px!important;
  background:#fff!important;
  box-shadow:inset 0 1px 2px rgba(15,23,42,.025);
  color:#26384b;
  transition:border-color .15s ease,box-shadow .15s ease;
}
.g136-lab .g82-svt-controls select:focus,
.g136-lab .g82-svt-controls input:focus,
.g136-lab .g82-svt-controls textarea:focus{
  outline:none;
  border-color:#5ccca0!important;
  box-shadow:0 0 0 3px rgba(52,211,153,.12)!important;
}
.g136-lab .g82-note,.g136-lab .g82-feedback,.g136-lab .g82-detail{
  border:1px solid #d9f2e5;
  background:linear-gradient(180deg,#f1fcf6,#eefaf3)!important;
  border-radius:10px!important;
  color:#146044!important;
  font-size:.57rem!important;
  line-height:1.42!important;
}
.g136-lab .g82-main{
  min-height:38px;
  border-radius:10px;
  background:linear-gradient(180deg,#17934e,#0d7d41)!important;
  box-shadow:0 5px 12px rgba(13,125,65,.14);
}
.g136-lab .g82-svt-visual{
  position:relative;
  padding:.5rem!important;
  background:
    radial-gradient(circle at 48% 28%,rgba(255,255,255,.98),rgba(248,251,253,.98) 55%,rgba(242,247,248,.98))!important;
}
.g136-lab .g82-svt-visual::before{
  content:"";position:absolute;inset:8px;border:1px solid rgba(255,255,255,.86);border-radius:15px;pointer-events:none;
}

/* ---------- Microscope : instrument davantage mis en scène ---------- */
.g136-lab .g131-micro-layout{grid-template-columns:minmax(0,1fr) 205px;gap:.48rem}
.g136-lab .g131-micro-field{
  border-color:#cbd9e3;
  border-radius:17px;
  background:
    radial-gradient(circle at 50% 43%,#fff 0,#edf2f6 65%,#d9e2eb 100%)!important;
  box-shadow:inset 0 1px 0 #fff,inset 0 -18px 40px rgba(71,85,105,.05)!important;
}
.g136-lab .g131-micro-field svg{
  filter:drop-shadow(0 8px 14px rgba(30,41,59,.055));
}
.g136-lab .g131-lab-readout{gap:.34rem;padding-right:1px}
.g136-lab .g131-lab-readout article,
.g136-lab .g131-exp-data article,
.g136-lab .g131-table{
  border-color:#d8e3ea;
  border-radius:12px;
  background:linear-gradient(180deg,#fff,#fbfdfe);
  box-shadow:0 4px 12px rgba(15,23,42,.035);
}
.g136-lab .g131-lab-readout article{padding:.5rem .52rem}
.g136-lab .g131-lab-readout small,.g136-lab .g131-exp-data small{color:#6f7e90;font-size:.44rem}
.g136-lab .g131-lab-readout b,.g136-lab .g131-exp-data b{font-size:.66rem;line-height:1.24}
.g136-lab .g131-lab-readout p,.g136-lab .g131-exp-data p{font-size:.51rem;line-height:1.38}

/* ---------- Expériences : banc de labo + panneau de mesures ---------- */
.g136-lab .g131-exp-grid{grid-template-columns:minmax(0,1fr) 225px;gap:.48rem}
.g136-lab .g131-apparatus{
  border-color:#ccd9e2;
  border-radius:17px;
  background:
    linear-gradient(180deg,#fbfdff 0%,#f3f7fa 68%,#edf2f6 100%)!important;
  box-shadow:inset 0 1px 0 #fff,inset 0 -24px 50px rgba(100,116,139,.045)!important;
}
.g136-lab .g131-apparatus svg{filter:drop-shadow(0 8px 14px rgba(15,23,42,.045))}
.g136-lab .g131-exp-data{gap:.38rem;padding-right:1px}
.g136-lab .g131-exp-data>svg{border-color:#d8e3ea;border-radius:12px;background:linear-gradient(180deg,#fff,#fbfdff)}
.g136-lab .g131-protocol{border-color:#bcebd5;background:linear-gradient(180deg,#f2fff7,#edfbf3);box-shadow:inset 0 1px 0 #fff}
.g136-lab .g131-science-rule{border-color:#d5e4f7;background:linear-gradient(180deg,#f4f8ff,#eef5ff)}

/* ---------- Cellules : sensation d'atlas plutôt que simple SVG ---------- */
.g136-lab .g82-diagram:has(.g134-cell-svg){
  border:1px solid #d4e1e8!important;
  border-radius:18px!important;
  background:
    radial-gradient(circle at 50% 38%,#fff 0%,#f8fbfd 66%,#eff4f7 100%)!important;
  box-shadow:inset 0 1px 0 #fff,inset 0 -18px 42px rgba(51,65,85,.04)!important;
}
.g136-lab .g134-cell-svg{filter:drop-shadow(0 7px 10px rgba(15,23,42,.055)) saturate(.96)}
.g136-lab .g82-hotspots>g:not(.explore) circle{
  fill:rgba(255,255,255,.97)!important;
  stroke:#0f766e!important;
  stroke-width:3.5!important;
  filter:drop-shadow(0 2px 4px rgba(15,23,42,.12));
}
.g136-lab .g82-hotspots>g:not(.explore) text{font-family:Inter,system-ui,sans-serif;font-weight:950;fill:#101828;stroke:none!important}

/* ---------- Génétique : cartes plus structurées ---------- */
.g136-lab .g134-genetics{gap:.5rem}
.g136-lab .g134-genetics>section{
  border-color:#d8e3ea;
  border-radius:16px;
  background:linear-gradient(180deg,#fff,#fbfdfd);
  box-shadow:0 7px 18px rgba(15,23,42,.045);
}
.g136-lab .g134-parent-card{background:linear-gradient(180deg,#fbfdff,#f6f9fb);border-color:#dce5eb}
.g136-lab .g134-chromosomes i{filter:drop-shadow(0 3px 3px rgba(37,99,235,.14))}
.g136-lab .g134-rbc-list article{background:linear-gradient(180deg,#fff,#fcfdff);border-color:#dde6ec}
.g136-lab .g134-rbc-list svg{filter:drop-shadow(0 3px 4px rgba(190,24,93,.12))}

/* ---------- ADN : vraie comparaison côte à côte sur desktop ---------- */
@media (min-width:1180px){
  .g136-lab .g134-dna-workbench{
    grid-template-columns:minmax(0,1fr) 34px minmax(0,1fr);
    grid-template-rows:auto minmax(0,1fr) auto;
    gap:.48rem;
  }
  .g136-lab .g134-dna-workbench>header{grid-column:1/-1;grid-row:1}
  .g136-lab .g134-dna-workbench>section:nth-of-type(1){grid-column:1;grid-row:2}
  .g136-lab .g134-dna-workbench>.g134-flow-arrow{
    grid-column:2;grid-row:2;flex-direction:column;gap:.28rem;
  }
  .g136-lab .g134-dna-workbench>.g134-flow-arrow b{transform:rotate(-90deg);font-size:1.1rem}
  .g136-lab .g134-dna-workbench>.g134-flow-arrow span,
  .g136-lab .g134-dna-workbench>.g134-flow-arrow em{
    writing-mode:vertical-rl;transform:rotate(180deg);font-size:.45rem;white-space:nowrap;
  }
  .g136-lab .g134-dna-workbench>section:nth-of-type(2){grid-column:3;grid-row:2}
  .g136-lab .g134-dna-workbench>.g134-consequence{grid-column:1/-1;grid-row:3}
}
.g136-lab .g134-dna-workbench>header,.g136-lab .g134-seq-card{border-color:#d8e3ea}
.g136-lab .g134-seq-card{background:linear-gradient(180deg,#fff,#fbfdff);box-shadow:0 5px 14px rgba(15,23,42,.035)}
.g136-lab .g134-codon{background:linear-gradient(180deg,#fbfdff,#f5f8fa);box-shadow:0 2px 6px rgba(15,23,42,.025)}
.g136-lab .g134-base{box-shadow:inset 0 1px 0 rgba(255,255,255,.45),0 2px 4px rgba(15,23,42,.08)}

/* ---------- Évolution : graphique plus "publication scientifique" ---------- */
.g136-lab .g134-scenario-card{border-color:#d8e3ea;background:linear-gradient(90deg,#f8fbff,#fff 62%,#f7fffb)}
.g136-lab .g82-evo{
  border-color:#d8e3ea!important;
  border-radius:16px!important;
  background:linear-gradient(180deg,#fff,#fcfdff)!important;
  box-shadow:inset 0 1px 0 #fff,0 6px 16px rgba(15,23,42,.035);
}
.g136-lab .g82-evo svg{filter:drop-shadow(0 2px 3px rgba(15,23,42,.02))}
.g136-lab .g134-div-summary>div{box-shadow:0 3px 9px rgba(15,23,42,.028)}

/* ---------- Géologie : planche plus profonde sans surcharger ---------- */
.g136-lab .g82-geo-main{
  border-color:#cad9e2!important;
  border-radius:17px!important;
  box-shadow:inset 0 1px 0 #fff,inset 0 -14px 30px rgba(67,79,92,.035)!important;
}
.g136-lab .g82-geo-main .g132-science-svg{filter:drop-shadow(0 5px 9px rgba(15,23,42,.035)) saturate(.97) contrast(1.015)}
.g136-lab .g82-geo-indices span{border-color:#d7e1e7;background:linear-gradient(180deg,#fff,#fafcfd);box-shadow:0 3px 8px rgba(15,23,42,.03)}

/* ---------- Corps humain : fond atlas, traits plus propres ---------- */
.g136-lab .g82-body-main{gap:.48rem!important}
.g136-lab .g82-body-diagram{
  border-color:#cfdae2!important;
  border-radius:17px!important;
  background:
    radial-gradient(ellipse at 50% 43%,#fff 0,#fafcfd 55%,#f1f5f8 100%)!important;
  box-shadow:inset 0 1px 0 #fff,inset 0 -18px 42px rgba(71,85,105,.035)!important;
}
.g136-lab .g82-body-diagram svg{filter:drop-shadow(0 6px 10px rgba(15,23,42,.05)) saturate(.96)}
.g136-lab .g82-body-route{
  border:1px solid #c8ead9;
  border-radius:15px;
  padding:.45rem!important;
  background:linear-gradient(180deg,#f1fff7,#eafaf1)!important;
  box-shadow:inset 0 1px 0 #fff;
}
.g136-lab .g82-body-route>h4{font-family:Georgia,"Times New Roman",serif;color:#184d3c}
.g136-lab .g82-body-route span{box-shadow:0 2px 6px rgba(15,118,110,.035)}
.g136-lab .g82-hotspots .explore rect{fill:rgba(255,255,255,.97)!important;stroke:#6ee7b7!important;filter:drop-shadow(0 3px 6px rgba(15,23,42,.10))}
.g136-lab .g82-hotspots .explore path{stroke:#0b7f78!important;stroke-width:2.1!important}

/* ---------- Écosystèmes : cohérence avec l'atlas ---------- */
.g136-lab .g134-eco-scene{
  border-color:#d3e2e6!important;
  border-radius:17px!important;
  background:linear-gradient(180deg,#fbfeff,#f5faf8)!important;
  box-shadow:inset 0 1px 0 #fff;
}
.g136-lab .g134-eco-svg{filter:drop-shadow(0 5px 8px rgba(15,23,42,.035)) saturate(.96)}
.g136-lab .g134-eco-caption{border-color:#d6efe2;background:linear-gradient(180deg,#f1fcf6,#edf9f2)}

/* ---------- Finitions ---------- */
.g136-lab *{scrollbar-width:thin;scrollbar-color:#a7d9c7 transparent}
.g136-lab ::selection{background:#bbf7d0;color:#13382c}
.g136-lab button,.g136-lab select,.g136-lab input,.g136-lab textarea{font-family:inherit}

@media (max-width:1179px){
  .g136-lab>.gomathy-tool-title-v8>div{
    grid-template-columns:1fr auto;
    grid-template-areas:"eyebrow chips" "title chips" "summary summary";
  }
  .g136-lab .g82-svt-stage{grid-template-columns:280px minmax(0,1fr)!important}
  .g136-lab .g131-micro-layout,.g136-lab .g131-exp-grid{grid-template-columns:1fr}
  .g136-lab .g131-lab-readout{grid-template-columns:repeat(4,minmax(0,1fr));overflow:visible}
  .g136-lab .g131-exp-data{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));overflow:visible}
  .g136-lab .g131-exp-data>svg{grid-column:1/-1}
}
@media (max-width:899px){
  .g136-lab>.gomathy-tool-title-v8>div{display:block}
  .g136-lab .g131-lab-chips{display:flex;justify-content:flex-start;margin-top:.38rem!important}
  .g136-lab .g82-svt-stage{grid-template-columns:1fr!important}
  .g136-lab .g131-lab-readout,.g136-lab .g131-exp-data{grid-template-columns:1fr 1fr}
}
@media (max-width:620px){
  .g136-lab>.gomathy-tool-title-v8{padding:.65rem .72rem!important;border-radius:16px!important}
  .g136-lab>.gomathy-tool-title-v8 h2{font-size:1.36rem!important}
  .g136-lab>.gomathy-tool-title-v8>div>p:not(.eyebrow){font-size:.73rem!important;margin-top:.18rem!important}
  .g136-lab .g131-lab-chips span{font-size:.48rem;padding:.2rem .4rem}
  .g136-lab .g131-lab-readout,.g136-lab .g131-exp-data{grid-template-columns:1fr}
}

/* ===== SOURCE: styles/gomathy-responsive-v97.css ===== */
/* GoMathy V97 — couche responsive + lecture guidée
   IMPORTANT : cette feuille est volontairement limitée aux surfaces de contenu.
   Les pages d'outils pédagogiques sont exclues par gomathy-responsive-v97.js. */

:root {
  --gm-v97-safe-left: env(safe-area-inset-left, 0px);
  --gm-v97-safe-right: env(safe-area-inset-right, 0px);
  --gm-v97-safe-bottom: env(safe-area-inset-bottom, 0px);
  --gm-v97-reading-max: 74ch;
  --gm-v97-card-radius: 22px;
  --gm-v97-touch: 44px;
}

html[data-gm-v97-device="phone"] { --gm-v97-card-radius: 18px; }

body.gm-v97-responsive-surface {
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-text-size-adjust: 100%;
}

body.gm-v97-responsive-surface #app > main {
  width: 100%;
  padding-left: max(10px, var(--gm-v97-safe-left));
  padding-right: max(10px, var(--gm-v97-safe-right));
}

body.gm-v97-responsive-surface #pages,
body.gm-v97-responsive-surface #pages * {
  box-sizing: border-box;
}

body.gm-v97-responsive-surface #pages img,
body.gm-v97-responsive-surface #pages video,
body.gm-v97-responsive-surface #pages svg,
body.gm-v97-responsive-surface #pages canvas {
  max-width: 100%;
}

body.gm-v97-responsive-surface #pages p,
body.gm-v97-responsive-surface #pages li {
  line-height: 1.62;
  overflow-wrap: anywhere;
}

body.gm-v97-responsive-surface #pages .gomathy-course-narrative,
body.gm-v97-responsive-surface #pages .gomathy-course-keypoints,
body.gm-v97-responsive-surface #pages .gomathy-course-method-list,
body.gm-v97-responsive-surface #pages .course-unified-body,
body.gm-v97-responsive-surface #pages .gomathy-course-section__body,
body.gm-v97-responsive-surface #pages .svt-course-summary {
  font-size: clamp(.98rem, .22vw + .94rem, 1.08rem);
}

body.gm-v97-responsive-surface #pages .gomathy-course-narrative > p,
body.gm-v97-responsive-surface #pages .course-unified-body > p,
body.gm-v97-responsive-surface #pages .gomathy-course-section__body > p {
  max-width: var(--gm-v97-reading-max);
}

body.gm-v97-responsive-surface #pages table {
  max-width: 100%;
}

body.gm-v97-responsive-surface #pages .course-unified-body,
body.gm-v97-responsive-surface #pages .gomathy-course-section__body,
body.gm-v97-responsive-surface #pages .svt-course-section,
body.gm-v97-responsive-surface #pages .gm-pc-v96-card {
  min-width: 0;
}

body.gm-v97-responsive-surface #pages .course-unified-body,
body.gm-v97-responsive-surface #pages .gomathy-course-section__body {
  overflow-x: auto;
  overscroll-behavior-inline: contain;
}

body.gm-v97-responsive-surface #pages button,
body.gm-v97-responsive-surface #pages select,
body.gm-v97-responsive-surface #pages input:not([type="radio"]):not([type="checkbox"]) {
  min-height: var(--gm-v97-touch);
}

/* Lecture guidée — composant ajouté hors des outils. */
.gm-v97-reading-toolbar {
  position: sticky;
  top: 8px;
  z-index: 35;
  display: grid;
  grid-template-columns: auto minmax(120px, 1fr) auto;
  align-items: center;
  gap: 12px;
  width: min(100%, 980px);
  margin: 0 auto 18px;
  padding: 10px 12px;
  border: 1px solid rgba(148, 163, 184, .34);
  border-radius: 18px;
  background: rgba(255,255,255,.94);
  box-shadow: 0 14px 34px -28px rgba(15,23,42,.55);
  backdrop-filter: blur(14px);
}

.gm-v97-reading-modes {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.gm-v97-reading-mode,
.gm-v97-step-button {
  border: 1px solid #dbe4f0;
  border-radius: 999px;
  background: #fff;
  color: #334155;
  min-height: 38px !important;
  padding: 8px 12px;
  font-size: .82rem;
  font-weight: 800;
  cursor: pointer;
}

.gm-v97-reading-mode[aria-pressed="true"] {
  border-color: #93c5fd;
  background: #eff6ff;
  color: #1d4ed8;
}

.gm-v97-reading-progress-wrap {
  min-width: 0;
}

.gm-v97-reading-progress-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 5px;
  color: #64748b;
  font-size: .74rem;
  font-weight: 800;
}

.gm-v97-reading-progress {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e2e8f0;
}

.gm-v97-reading-progress > span {
  display: block;
  width: var(--gm-v97-progress, 0%);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2563eb, #14b8a6);
  transition: width .2s ease;
}

.gm-v97-step-nav {
  display: flex;
  gap: 6px;
}

.gm-v97-step-button:disabled {
  opacity: .38;
  cursor: default;
}

.gm-v97-guided .svt-course-outline {
  display: none !important;
}

.gm-v97-guided .svt-example-grid,
.gm-v97-guided .svt-final-grid,
.gm-v97-guided .course-unified-example-grid,
.gm-v97-guided .course-unified-final-grid {
  display: contents !important;
}

.gm-v97-guided .gm-v97-major-step {
  width: min(100%, 920px);
  margin-left: auto !important;
  margin-right: auto !important;
  animation: gmV97StepIn .18s ease-out;
}

.gm-v97-guided .gm-v97-step-hidden {
  display: none !important;
}

.gm-v97-guided .gm-v97-major-step p,
.gm-v97-guided .gm-v97-major-step li {
  font-size: clamp(1rem, .34vw + .94rem, 1.1rem);
  line-height: 1.68;
}

.gm-v97-guided .gm-v97-major-step h3 {
  font-size: clamp(1.16rem, .8vw + 1rem, 1.55rem);
}

@keyframes gmV97StepIn {
  from { opacity: .45; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Téléphone */
@media (max-width: 639px) {
  body.gm-v97-responsive-surface #app > main {
    padding-top: 8px;
    padding-bottom: max(12px, var(--gm-v97-safe-bottom));
  }

  body.gm-v97-responsive-surface #pages .gomathy-courses-grid,
  body.gm-v97-responsive-surface #pages .course-unified-example-grid,
  body.gm-v97-responsive-surface #pages .course-unified-final-grid,
  body.gm-v97-responsive-surface #pages .svt-example-grid,
  body.gm-v97-responsive-surface #pages .svt-final-grid {
    grid-template-columns: 1fr !important;
  }

  body.gm-v97-responsive-surface #pages .gomathy-course-card,
  body.gm-v97-responsive-surface #pages .svt-course-section,
  body.gm-v97-responsive-surface #pages .svt-method-card,
  body.gm-v97-responsive-surface #pages .svt-example-card,
  body.gm-v97-responsive-surface #pages .svt-activity-card,
  body.gm-v97-responsive-surface #pages .svt-vocabulary-card,
  body.gm-v97-responsive-surface #pages .svt-takeaway-card,
  body.gm-v97-responsive-surface #pages .svt-pitfall-card,
  body.gm-v97-responsive-surface #pages .gomathy-course-section {
    border-radius: var(--gm-v97-card-radius) !important;
  }

  body.gm-v97-responsive-surface #pages .svt-course-hero {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  body.gm-v97-responsive-surface #pages .svt-course-hero-icon {
    width: 58px !important;
    height: 58px !important;
  }

  .gm-v97-reading-toolbar {
    position: relative;
    top: auto;
    grid-template-columns: 1fr;
    gap: 9px;
    padding: 10px;
    border-radius: 16px;
  }

  .gm-v97-reading-modes,
  .gm-v97-step-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .gm-v97-reading-mode,
  .gm-v97-step-button {
    width: 100%;
    min-height: 44px !important;
  }

  .gm-v97-guided .gm-v97-major-step {
    width: 100%;
  }
}

/* Tablette */
@media (min-width: 640px) and (max-width: 1023px) {
  body.gm-v97-responsive-surface #pages .gomathy-courses-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

/* Très grands écrans : on élargit les visuels, pas les lignes de texte. */
@media (min-width: 1440px) {
  body.gm-v97-responsive-surface #app > main {
    max-width: 1480px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gm-v97-reading-progress > span,
  .gm-v97-guided .gm-v97-major-step {
    transition: none !important;
    animation: none !important;
  }
}

/* ===== SOURCE: styles/gomathy-game-v97.css ===== */
/* GoMathy V97 — Mode Jeu, autonome et sans impact sur Outils/. */
.gm-game-v97 {
  --gm-game-ink: #172033;
  --gm-game-muted: #667085;
  --gm-game-border: #dfe6ef;
  --gm-game-soft: #f7f9fc;
  --gm-game-blue: #2563eb;
  --gm-game-teal: #0f9f8f;
  width: min(100%, 1120px);
  margin: 0 auto;
  padding: 8px 0 max(26px, env(safe-area-inset-bottom, 0px));
  color: var(--gm-game-ink);
}

.gm-game-v97 * { box-sizing: border-box; }

.gm-game-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(240px, .65fr);
  gap: 18px;
  align-items: center;
  padding: clamp(20px, 4vw, 38px);
  border: 1px solid #dce5f1;
  border-radius: 30px;
  background:
    radial-gradient(circle at 88% 14%, rgba(45,212,191,.16), transparent 28%),
    radial-gradient(circle at 12% 0%, rgba(96,165,250,.18), transparent 31%),
    linear-gradient(135deg, #ffffff, #f7fbff);
  box-shadow: 0 22px 55px -42px rgba(15,23,42,.65);
}

.gm-game-kicker {
  margin: 0 0 8px;
  color: #2563eb;
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.gm-game-hero h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.8rem);
  line-height: 1;
  letter-spacing: -.045em;
}

.gm-game-hero p {
  max-width: 62ch;
  margin: 14px 0 0;
  color: var(--gm-game-muted);
  font-size: clamp(1rem, .35vw + .94rem, 1.12rem);
}

.gm-game-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 10px;
}

.gm-game-stat {
  padding: 14px;
  border: 1px solid rgba(148,163,184,.28);
  border-radius: 18px;
  background: rgba(255,255,255,.84);
}

.gm-game-stat strong {
  display: block;
  font-size: 1.5rem;
  line-height: 1;
}

.gm-game-stat span {
  display: block;
  margin-top: 6px;
  color: var(--gm-game-muted);
  font-size: .75rem;
  font-weight: 800;
}

.gm-game-config {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0;
  padding: 14px;
  border: 1px solid var(--gm-game-border);
  border-radius: 22px;
  background: #fff;
}

.gm-game-field label {
  display: block;
  margin: 0 0 6px;
  color: #475467;
  font-size: .76rem;
  font-weight: 900;
}

.gm-game-field select {
  width: 100%;
  min-height: 46px;
  padding: 9px 11px;
  border: 1px solid #d8e1ec;
  border-radius: 13px;
  background: #fbfdff;
  color: #1e293b;
  font: inherit;
  font-weight: 750;
}

.gm-game-modes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.gm-game-mode {
  appearance: none;
  display: flex;
  min-height: 190px;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 20px;
  border: 1px solid var(--gm-game-border);
  border-radius: 24px;
  background: #fff;
  color: inherit;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 15px 35px -32px rgba(15,23,42,.8);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.gm-game-mode:hover,
.gm-game-mode:focus-visible {
  transform: translateY(-2px);
  border-color: #a8c7f6;
  box-shadow: 0 22px 42px -34px rgba(37,99,235,.6);
  outline: none;
}

.gm-game-mode-icon {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 16px;
  background: #eff6ff;
  font-size: 1.55rem;
}

.gm-game-mode strong { font-size: 1.15rem; }
.gm-game-mode p { margin: 0; color: var(--gm-game-muted); font-size: .91rem; }
.gm-game-mode small { margin-top: auto; color: #2563eb; font-weight: 900; }

.gm-game-note {
  margin: 14px 0 0;
  padding: 12px 14px;
  border: 1px dashed #cbd5e1;
  border-radius: 15px;
  background: #f8fafc;
  color: #64748b;
  font-size: .84rem;
}

.gm-game-topbar {
  display: grid;
  grid-template-columns: auto minmax(0,1fr) auto;
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
}

.gm-game-back,
.gm-game-ghost,
.gm-game-primary {
  min-height: 44px;
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 900;
  cursor: pointer;
}

.gm-game-back,
.gm-game-ghost {
  border: 1px solid #d9e2ec;
  background: #fff;
  color: #334155;
}

.gm-game-primary {
  border: 1px solid #1d4ed8;
  background: #2563eb;
  color: white;
}

.gm-game-progress {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #e2e8f0;
}
.gm-game-progress span {
  display: block;
  height: 100%;
  width: var(--gm-game-progress, 0%);
  border-radius: inherit;
  background: linear-gradient(90deg, #2563eb, #14b8a6);
  transition: width .2s ease;
}

.gm-game-counter {
  color: #64748b;
  font-size: .78rem;
  font-weight: 900;
  white-space: nowrap;
}

.gm-game-stage {
  min-height: 430px;
  padding: clamp(18px, 4vw, 34px);
  border: 1px solid var(--gm-game-border);
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 20px 45px -38px rgba(15,23,42,.65);
}

.gm-game-stage-label {
  margin: 0 0 10px;
  color: #2563eb;
  font-size: .76rem;
  font-weight: 950;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.gm-game-question {
  max-width: 780px;
  margin: 0 0 20px;
  font-size: clamp(1.35rem, 2.3vw, 2.08rem);
  line-height: 1.22;
  letter-spacing: -.022em;
}

.gm-game-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
}

.gm-game-option {
  min-height: 62px;
  padding: 13px 15px;
  border: 2px solid #e2e8f0;
  border-radius: 17px;
  background: #fbfdff;
  color: #243047;
  font: inherit;
  font-weight: 850;
  text-align: left;
  cursor: pointer;
}

.gm-game-option:hover:not(:disabled) { border-color: #93c5fd; background: #eff6ff; }
.gm-game-option.is-correct { border-color: #5eead4; background: #ecfdf5; color: #0f766e; }
.gm-game-option.is-wrong { border-color: #fca5a5; background: #fff1f2; color: #be123c; }
.gm-game-option:disabled { cursor: default; }

.gm-game-feedback {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 17px;
  background: #f8fafc;
  color: #475569;
}
.gm-game-feedback strong { color: #0f172a; }

.gm-game-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 18px;
}

.gm-flashcard {
  perspective: 1000px;
}
.gm-flashcard-button {
  display: block;
  width: 100%;
  min-height: 300px;
  padding: clamp(24px, 5vw, 50px);
  border: 2px solid #dce5ef;
  border-radius: 26px;
  background: linear-gradient(145deg, #fff, #f7fbff);
  color: #172033;
  cursor: pointer;
  text-align: center;
}
.gm-flashcard-button .gm-flash-hint { display: block; margin-bottom: 12px; color: #64748b; font-size: .78rem; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }
.gm-flashcard-button .gm-flash-main { display: block; max-width: 760px; margin: 0 auto; font-size: clamp(1.35rem, 3vw, 2.15rem); font-weight: 900; line-height: 1.28; }
.gm-flashcard-button .gm-flash-sub { display: block; max-width: 720px; margin: 16px auto 0; color: #64748b; font-size: 1rem; line-height: 1.55; }

.gm-memory-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.gm-memory-card {
  min-height: 120px;
  padding: 12px;
  border: 2px solid #dfe6ef;
  border-radius: 18px;
  background: #f8fafc;
  color: #1e293b;
  font: inherit;
  font-size: .84rem;
  font-weight: 850;
  cursor: pointer;
}
.gm-memory-card.is-open { border-color: #93c5fd; background: #eff6ff; }
.gm-memory-card.is-match { border-color: #5eead4; background: #ecfdf5; color: #0f766e; }
.gm-memory-card .gm-memory-hidden { font-size: 1.6rem; }

.gm-game-result {
  max-width: 660px;
  margin: 30px auto;
  text-align: center;
}
.gm-game-result-icon { font-size: 3.2rem; }
.gm-game-result h2 { margin: 10px 0 8px; font-size: clamp(1.8rem, 4vw, 2.8rem); }
.gm-game-result p { color: #64748b; }
.gm-game-result-score { display: inline-flex; gap: 18px; margin: 12px 0 20px; padding: 14px 18px; border-radius: 18px; background: #f8fafc; }
.gm-game-result-score strong { display:block; font-size:1.4rem; }
.gm-game-result-score span { display:block; color:#64748b; font-size:.74rem; font-weight:850; }

@media (max-width: 760px) {
  .gm-game-hero { grid-template-columns: 1fr; border-radius: 22px; }
  .gm-game-config { grid-template-columns: 1fr; }
  .gm-game-modes { grid-template-columns: 1fr; }
  .gm-game-mode { min-height: 145px; }
  .gm-game-options { grid-template-columns: 1fr; }
  .gm-game-stage { min-height: 0; padding: 18px 14px; border-radius: 20px; }
  .gm-game-topbar { grid-template-columns: auto minmax(0,1fr); }
  .gm-game-counter { grid-column: 1 / -1; text-align: center; }
  .gm-memory-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .gm-memory-card { min-height: 96px; font-size: .76rem; }
  .gm-game-actions { position: sticky; bottom: max(8px, env(safe-area-inset-bottom, 0px)); z-index: 10; padding-top: 8px; background: linear-gradient(180deg, rgba(255,255,255,0), #fff 30%); }
  .gm-game-actions > * { flex: 1; }
}

@media (max-width: 430px) {
  .gm-memory-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gm-game-stats { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  .gm-game-mode,
  .gm-game-progress span { transition: none !important; }
}

/* ===== SOURCE: styles/gomathy-math-typography-v122.css ===== */
/* GoMathy V122 — micro-typographie mathématique de précision.
   Ce fichier est chargé APRÈS les anciens styles de cours afin de normaliser
   sans ambiguïté les fractions, exposants, vecteurs et cartes de formules. */

/* 1) Fractions créées par le post-traitement V122 : 3 enfants (numérateur / trait / dénominateur). */
.gm122-frac{
  display:inline-grid!important;
  grid-template-rows:auto 1.25px auto!important;
  align-items:center!important;
  justify-items:center!important;
  min-width:1.02em!important;
  margin:0 .075em!important;
  vertical-align:-.30em!important;
  line-height:1!important;
  font-family:Georgia,"Times New Roman",serif!important;
  font-size:.94em!important;
  white-space:nowrap!important;
  box-sizing:content-box!important;
}
.gm122-frac>span{display:block!important;padding:0 .105em!important;line-height:1.02!important;white-space:nowrap!important}
.gm122-frac>i{display:block!important;width:100%!important;min-width:.92em!important;height:0!important;margin:.02em 0!important;border-top:1.25px solid currentColor!important}
.gm122-frac.is-compact{font-size:.82em!important;vertical-align:-.23em!important;margin-inline:.035em!important}

/* 2) Fractions des formulaires structurés V122 : 2 enfants seulement.
      Important : ne jamais leur appliquer une grille à 3 lignes. */
.math-formula-v122__frac{
  display:inline-grid!important;
  grid-template-rows:auto auto!important;
  align-items:center!important;
  justify-items:stretch!important;
  min-width:1.12em!important;
  margin:0 .08em!important;
  vertical-align:-.31em!important;
  line-height:1!important;
  font-family:Georgia,"Times New Roman",serif!important;
  font-size:.95em!important;
  white-space:nowrap!important;
  flex:0 0 auto!important;
}
.math-formula-v122__frac>span{display:block!important;min-width:100%!important;text-align:center!important;line-height:1.02!important;white-space:nowrap!important}
.math-formula-v122__frac>span:first-child{padding:0 .12em .055em!important;border-bottom:1.25px solid currentColor!important}
.math-formula-v122__frac>span:last-child{padding:.055em .12em 0!important}
.math-formula-v122__frac.is-compact{font-size:.82em!important;vertical-align:-.24em!important;margin-inline:.035em!important}

/* 3) Fractions du moteur historique formatMathDisplay : 3 enfants dédiés. */
.course-theme-maths .math-inline-fraction,
.gm106-specific-sheet .math-inline-fraction,
.gm98-premium-wrap[data-gm98-subject="maths"] .math-inline-fraction{
  display:inline-grid!important;
  grid-template-rows:auto 1.2px auto!important;
  align-items:center!important;
  justify-items:center!important;
  min-width:1.02em!important;
  margin:0 .075em!important;
  vertical-align:-.29em!important;
  line-height:1!important;
  font-family:Georgia,"Times New Roman",serif!important;
  font-size:.94em!important;
  transform:none!important;
  white-space:nowrap!important;
  box-sizing:content-box!important;
}
.course-theme-maths .math-inline-fraction-top,
.course-theme-maths .math-inline-fraction-bottom,
.gm106-specific-sheet .math-inline-fraction-top,
.gm106-specific-sheet .math-inline-fraction-bottom,
.gm98-premium-wrap[data-gm98-subject="maths"] .math-inline-fraction-top,
.gm98-premium-wrap[data-gm98-subject="maths"] .math-inline-fraction-bottom{
  display:block!important;padding:0 .105em!important;line-height:1.02!important;white-space:nowrap!important
}
.course-theme-maths .math-inline-fraction-line,
.gm106-specific-sheet .math-inline-fraction-line,
.gm98-premium-wrap[data-gm98-subject="maths"] .math-inline-fraction-line{
  display:block!important;width:100%!important;min-width:.92em!important;height:0!important;margin:.02em 0!important;border-top:1.2px solid currentColor!important
}

/* Dans une phrase, la fraction reste une ponctuation mathématique discrète. */
.course-theme-maths p .gm122-frac,
.course-theme-maths li .gm122-frac,
.course-theme-maths p .math-inline-fraction,
.course-theme-maths li .math-inline-fraction,
.gm106-specific-sheet p .gm122-frac,
.gm106-specific-sheet li .gm122-frac,
.gm106-specific-sheet p .math-inline-fraction,
.gm106-specific-sheet li .math-inline-fraction{font-size:.88em!important;vertical-align:-.27em!important;margin-inline:.06em!important}

/* Dans une vraie formule, on garde une taille normale et un centrage propre. */
.course-theme-maths .math-formula-v31__expr .math-formula-v122__frac,
.course-theme-maths .gomathy-formula-chip-v34__formula .math-inline-fraction,
.course-theme-maths .gomathy-math-display-v35 .math-inline-fraction,
.course-theme-maths .gomathy-example-math-line-v35 .math-inline-fraction{
  font-size:.94em!important;vertical-align:-.30em!important;margin-inline:.09em!important
}

/* Fractions imbriquées dans les exposants : compactes, sans faire gonfler la ligne. */
sup .gm122-frac,
sup .math-formula-v122__frac,
sup .math-inline-fraction,
.math-formula-v122__pow sup .math-formula-v122__frac{
  font-size:.66em!important;
  vertical-align:-.18em!important;
  margin-inline:.018em!important;
}

/* Exposants / indices : taille et ligne de base uniformes. */
.course-theme-maths .math-inline>sup,
.gm106-specific-sheet .math-inline>sup,
.gm98-premium-wrap[data-gm98-subject="maths"] .math-inline>sup,
.math-formula-v122__pow sup{
  font-size:.70em!important;line-height:0!important;vertical-align:.55em!important;margin-left:.012em!important
}
.course-theme-maths .math-inline>sub,
.gm106-specific-sheet .math-inline>sub,
.gm98-premium-wrap[data-gm98-subject="maths"] .math-inline>sub{
  font-size:.70em!important;line-height:0!important;vertical-align:-.21em!important
}

/* Vecteurs créés à partir de la notation combinée AB⃗ / u⃗. */
.gm122-vector{position:relative;display:inline-block;padding:.17em .08em 0;line-height:1;font-family:Georgia,"Times New Roman",serif;font-style:italic;vertical-align:.01em;white-space:nowrap}
.gm122-vector::before{content:"";position:absolute;left:.04em;right:.14em;top:.015em;border-top:.075em solid currentColor}
.gm122-vector::after{content:"";position:absolute;right:.015em;top:-.09em;border-top:.115em solid transparent;border-bottom:.115em solid transparent;border-left:.19em solid currentColor}
.gm122-vector>span{letter-spacing:.01em}

/* Les petites cartes ne doivent ni clipper ni casser une formule en deux à cause de sa hauteur. */
.course-theme-maths .gomathy-formula-chip-v34,
.course-theme-maths .gomathy-example-math-line-v35,
.course-theme-maths .math-formula-v31 td.is-math{overflow:visible!important}
.course-theme-maths .gomathy-formula-chip-v34__formula,
.course-theme-maths .math-formula-v31__expr{
  line-height:1.48!important;
  padding-block:.20rem!important;
  overflow:visible!important;
}
.course-theme-maths .gomathy-formula-chip-v34__formula>.math-inline{
  align-items:center!important;
  column-gap:.06rem!important;
  row-gap:.18rem!important;
}
.course-theme-maths .math-formula-v31 td.is-math{line-height:1.50!important}

/* Une paire de coordonnées reste une seule expression horizontale ; elle peut se replier proprement sur mobile. */
.course-theme-maths .math-formula-v31__expr:not(.math-formula-v31__expr--stack){column-gap:.04em!important;row-gap:.12em!important}
.course-theme-maths .math-formula-v31__expr--stack{gap:.30rem!important}

@media(max-width:760px){
  .gm122-frac,.math-formula-v122__frac,.course-theme-maths .math-inline-fraction{font-size:.90em!important;margin-inline:.045em!important}
  .course-theme-maths p .gm122-frac,.course-theme-maths li .gm122-frac{font-size:.86em!important}
}
