/* GoMathy V84 — harmonisation de tous les cours de Première au niveau de la refonte Suites. */
.gm84-premiere-excellence .svt-course-main{grid-template-columns:minmax(0,1fr)!important;gap:26px!important}
.gm84-premiere-excellence .svt-course-main>.svt-course-section{width:100%!important;min-width:0!important;max-width:100%!important;padding:28px 30px!important;overflow:visible!important}
.gm84-premiere-excellence .course-unified-body{min-width:0!important;max-width:100%!important;font-size:1.01rem!important;line-height:1.72!important}
.gm84-premiere-excellence .svt-section-heading h3,.gm84-premiere-excellence .svt-block-title h3{font-size:1.32rem!important;line-height:1.3!important}
.gm84-premiere-excellence .svt-section-heading,.gm84-premiere-excellence .svt-block-title{gap:14px!important}

/* Fil conducteur ajouté à l'introduction. */
.gm84-route{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:20px;padding:14px 16px;border:1px solid #cfe3df;border-radius:16px;background:linear-gradient(145deg,#f7fbfa,#fff)}
.gm84-route__label{font-size:.72rem;font-weight:900;letter-spacing:.07em;text-transform:uppercase;color:#0f766e;margin-right:2px}
.gm84-route>div{display:flex;align-items:center;gap:8px;padding:8px 11px;border:1px solid #dbe8e5;border-radius:12px;background:#fff;min-width:0}
.gm84-route>div b{display:grid;place-items:center;width:24px;height:24px;border-radius:8px;background:#0f766e;color:#fff;font-size:.78rem;flex:0 0 auto}
.gm84-route>div span{color:#36555c;font-size:.9rem;line-height:1.35}
.gm84-route>i{font-style:normal;color:#84a19d;font-weight:900}

/* Les notions sont volontairement structurées comme les cartes du chapitre Suites. */
.gm84-essential-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;align-items:start}
.gm84-essential-card{min-width:0;padding:22px;border:1px solid #d6e3e1;border-radius:20px;background:#fff;box-shadow:0 8px 22px rgba(38,56,74,.045)}
.gm84-essential-card--wide{grid-column:1/-1}
.gm84-essential-card h4{margin:0 0 12px;color:#153f3d;font-size:1.08rem;line-height:1.38;font-weight:900}
.gm84-card-body p{margin:.55rem 0;color:#405565;line-height:1.68}
.gm84-card-body strong{color:#203e4a}
.gm84-formula{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:.3rem;min-height:44px;margin:10px 0;padding:9px 13px;border:1px solid #d8e7fb;border-radius:12px;background:#eef5ff;color:#173f82;font-family:Georgia,'Times New Roman',serif;font-size:1.04rem;font-weight:700;text-align:center;line-height:1.55}
.gm84-frac{display:inline-grid;grid-template-rows:auto 1px auto;vertical-align:middle;align-items:center;justify-items:center;min-width:2em;margin:0 .14em;line-height:1.04}
.gm84-frac>i{display:block;width:100%;height:1px;background:currentColor;margin:.08em 0}
.gm84-frac>span{padding:0 .12em;white-space:nowrap}

.gm84-choice-grid,.gm84-case-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:12px 0}
.gm84-choice-grid>div,.gm84-case-grid>div{min-width:0;padding:12px 13px;border:1px solid #e0e9ea;border-radius:13px;background:#f8fafb}
.gm84-choice-grid b,.gm84-case-grid b{display:block;color:#18534f;margin-bottom:4px;font-size:.92rem}
.gm84-choice-grid span,.gm84-case-grid span{display:block;color:#526873;font-size:.88rem;line-height:1.48}
.gm84-flow{display:flex;align-items:center;justify-content:center;gap:8px;flex-wrap:wrap;margin:12px 0;padding:11px 12px;border-radius:13px;background:#f4f8f7;border:1px solid #dfe9e7}
.gm84-flow span,.gm84-flow strong{padding:6px 10px;border-radius:9px;background:#fff;border:1px solid #dbe6e4;color:#244c49;font-size:.88rem}
.gm84-flow i{font-style:normal;color:#74918d;font-weight:900}
.gm84-sign-strip{display:grid;grid-template-columns:auto auto 1fr 1fr auto 1fr auto;align-items:center;gap:6px;margin:12px 0;padding:10px;border-radius:13px;background:#f7fafb;border:1px solid #e1e9eb;text-align:center;font-size:.85rem}
.gm84-sign-strip em{font-style:normal;padding:8px;border-radius:9px;background:#eaf7f2;color:#196359;font-weight:750}
.gm84-sign-strip strong{padding:8px;border-radius:9px;background:#fff0ef;color:#a54141}
.gm84-formula-table{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin:12px 0}
.gm84-formula-table>div{display:flex;justify-content:space-between;gap:12px;padding:11px 12px;border:1px solid #dee7eb;border-radius:12px;background:#f8fafc}
.gm84-formula-table b{color:#28514e}.gm84-formula-table span{font-family:Georgia,'Times New Roman',serif;color:#183d75;font-weight:700;text-align:right}
.gm84-trig-table{display:grid;gap:1px;margin:12px 0;padding:1px;border:1px solid #dce5ea;border-radius:13px;overflow:hidden;background:#dce5ea}
.gm84-trig-table>div{display:grid;grid-template-columns:1.1fr repeat(5,1fr);background:#fff}
.gm84-trig-table b,.gm84-trig-table span{padding:9px 6px;text-align:center}
.gm84-trig-table b{background:#eef5ff;color:#173f82}.gm84-trig-table span{font-family:Georgia,'Times New Roman',serif;color:#314f5e}
.gm84-code-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(160px,.7fr);gap:10px;align-items:center;margin:12px 0}
.gm84-code-grid pre,.gm84-example pre{margin:0;padding:11px 13px;border:1px solid #dce6ea;border-radius:11px;background:#f5f7fa;color:#253f4d;font:600 .87rem/1.55 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;white-space:pre-wrap;overflow:auto}
.gm84-code-grid span{color:#526a74;font-size:.9rem;line-height:1.5}

/* Exemples contextualisés : données -> formule -> remplacement -> résultat. */
.gm84-example{margin-top:18px;padding-top:17px;border-top:1px solid #dce7e5}
.gm84-example__label{display:inline-flex;align-items:center;gap:7px;margin-bottom:12px;padding:6px 10px;border:1px solid #f0c96d;border-radius:999px;background:#fff9e9;color:#8b5e08;font-size:.72rem;font-weight:900;letter-spacing:.04em;text-transform:uppercase}
.gm84-prompt{margin:0 0 12px!important;padding:11px 13px;border:1px solid #efdfba;border-radius:12px;background:#fffdf7;color:#3d4f56!important}
.gm84-data-row{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0 12px}
.gm84-data-label,.gm84-data-chip{display:inline-flex;align-items:center;min-height:31px;padding:5px 9px;border-radius:9px;font-size:.82rem;font-weight:750}
.gm84-data-label{background:#0f766e;color:#fff}.gm84-data-chip{background:#eef5ff;color:#25477a;border:1px solid #dbe7f7}
.gm84-step-list{display:grid;gap:9px}
.gm84-step{display:grid;grid-template-columns:30px minmax(0,1fr);gap:11px;align-items:start;padding:11px 12px;border:1px solid #dce7e6;border-radius:13px;background:#fbfdfd}
.gm84-step__number{display:grid;place-items:center;width:28px;height:28px;border-radius:9px;background:#e2f3ee;color:#0f766e;font-weight:900}
.gm84-step b{display:block;color:#244b49;margin:1px 0 4px}.gm84-step p{margin:.28rem 0!important;line-height:1.6!important}.gm84-step .gm84-formula{margin:6px 0 2px}
.gm84-check{margin:10px 0 0!important;padding:10px 12px;border-radius:11px;background:#eaf7ef;color:#275943!important;font-weight:650}

/* Méthode existante : même contenu, mais beaucoup plus lisible. */
.gm84-premiere-excellence #math-method{padding:25px 27px!important}
.gm84-premiere-excellence #math-method .course-unified-body>.space-y-2{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px!important}
.gm84-premiere-excellence #math-method .course-unified-body>.space-y-2>.flex{position:relative;display:grid!important;grid-template-columns:34px minmax(0,1fr);gap:12px!important;align-items:start;padding:14px 15px!important;border:1px solid #dbe5e4;border-radius:15px;background:#fff;min-width:0}
.gm84-premiere-excellence #math-method .course-unified-body>.space-y-2>.flex>span{width:30px!important;height:30px!important;margin:0!important}
.gm84-premiere-excellence #math-method .course-unified-body>.space-y-2>.flex>p{margin:2px 0 0!important;font-size:.95rem!important;line-height:1.62!important}

/* Le bloc d'exemple autonome est supprimé : l'entraînement occupe toute la largeur. */
.gm84-practice-only{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:0!important}
.gm84-premiere-excellence #math-practice{width:100%!important;min-width:0!important;padding:26px 28px!important}
.gm84-premiere-excellence #math-practice .gomathy-course-practice-list>div:first-child{padding:13px 15px!important;border-radius:12px;background:#f6f8fb;margin-bottom:16px!important;gap:9px}
.gm84-premiere-excellence #math-practice .gomathy-course-practice-item{padding:20px!important;border-radius:16px!important;margin-top:14px!important;background:#fff!important;border:1px solid #dce5eb!important}
.gm84-premiere-excellence #math-practice .gomathy-course-practice-item__question{font-size:1rem!important;line-height:1.72!important;font-weight:650;color:#263d4a}
.gm84-premiere-excellence #math-practice details{margin-top:13px}.gm84-premiere-excellence #math-practice summary{padding:9px 11px;border-radius:10px;background:#eef5f4;font-weight:850;color:#1c5c57;cursor:pointer}
.gm84-premiere-excellence #math-practice .gomathy-course-practice-item__correction{padding:12px 2px 2px;line-height:1.68}

/* Vocabulaire et bilan. */
.gm84-premiere-excellence .gomathy-course-vocab-grid{grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:14px!important}
.gm84-premiere-excellence .gomathy-course-vocab-item{min-height:0!important;padding:16px 17px!important}.gm84-premiere-excellence .gomathy-course-vocab-item p{line-height:1.55!important}
.gm84-premiere-excellence #math-final{display:grid!important;grid-template-columns:minmax(0,1fr)!important;align-items:start!important;gap:20px!important}
.gm84-premiere-excellence #math-final>section{width:100%!important;min-width:0!important;max-width:100%!important;padding:23px!important;border-radius:20px!important}
.gm84-premiere-excellence #math-final h3{font-size:1.08rem;margin-bottom:12px}
.gm84-final-takeaway{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.gm84-final-takeaway>div{padding:12px 13px;border-radius:12px;background:rgba(255,255,255,.74);border:1px solid rgba(15,118,110,.1)}
.gm84-final-takeaway b{display:block;color:#155d57;margin-bottom:4px}.gm84-final-takeaway span{display:block;font-size:.9rem;line-height:1.5;color:#405b62}
.gm84-pitfall-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px}
.gm84-pitfall-grid article{min-width:0;padding:12px 13px;border:1px solid #f0d4d4;border-left:4px solid #d96262;border-radius:12px;background:#fffafa}
.gm84-pitfall-grid b{display:block;color:#9d3434;margin-bottom:4px}.gm84-pitfall-grid p{margin:0;color:#685158;font-size:.9rem;line-height:1.52}

@media(max-width:1120px){
 .gm84-essential-grid{grid-template-columns:minmax(0,1fr)}.gm84-essential-card--wide{grid-column:auto}
 .gm84-choice-grid,.gm84-case-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .gm84-final-takeaway,.gm84-pitfall-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:800px){
 .gm84-premiere-excellence .svt-course-main>.svt-course-section{padding:20px!important}
 .gm84-premiere-excellence #math-method,.gm84-premiere-excellence #math-practice{padding:20px!important}
 .gm84-premiere-excellence #math-method .course-unified-body>.space-y-2{grid-template-columns:1fr!important}
 .gm84-choice-grid,.gm84-case-grid,.gm84-formula-table,.gm84-final-takeaway,.gm84-pitfall-grid{grid-template-columns:1fr}
 .gm84-code-grid{grid-template-columns:1fr}
 .gm84-trig-table{overflow-x:auto}.gm84-trig-table>div{min-width:560px}
 .gm84-sign-strip{grid-template-columns:repeat(3,1fr)}
 .gm84-route>i{display:none}.gm84-route>div{width:100%}
}
