/* Opérations posées : une couleur par opération (addition verte, soustraction orange, multiplication bleue, division violette) */
#features.op-section { padding-top: 1em; }
.op-outil { max-width: 72em; margin: 0 auto; text-align: left; --c: #16855a; --cl: #eaf7f1; }
.op-outil *:focus-visible { outline: 3px solid #f2b01e; outline-offset: 2px; }
.op-outil:fullscreen { background: #fff; padding: 1.5em 2em; overflow: auto; max-width: none; }
.op-outil:-webkit-full-screen { background: #fff; padding: 1.5em 2em; overflow: auto; max-width: none; }
.op-carte { background: #fff; border: 2px solid #e5e5e5; border-radius: 1.2em; padding: 1.2em; }

/* L'opération posée */
.op-pose { display: flex; justify-content: center; align-items: flex-start; overflow-x: auto; padding: .6em 0 .4em; min-height: 6em; }
.op-sous { --c: #c46a0a; }
.op-mul { --c: #2f63b3; }
.op-div { --c: #6a4fc2; }
.op-g { width: auto; margin: 0; border-collapse: collapse; font: 600 2.6em/1 'Fredoka', 'Nunito', sans-serif; color: #333; }
.op-g td { width: 1.05em; height: 1.45em; padding: 0; text-align: center; vertical-align: middle; position: relative; border-bottom: 3px solid transparent; }
.op-g td.op-s { width: .9em; color: #777; }
.op-g td.trait { border-bottom-color: #333; }
.op-g .res, .op-g .reste { color: var(--c); }
.op-g .part { color: #555; }
.op-g .moins { color: #777; }
.op-g .ajout, .op-g .inutile { color: #bbb; }
.op-g .abaisse { color: #c0392b; }
.op-g td.virg::after { content: ','; position: absolute; right: -.12em; bottom: .18em; line-height: 1; color: #c0392b; z-index: 2; }
.op-g td.neuf { background: rgba(255, 214, 80, .35); } /* transparent : le thème crayon ne la hachure pas */
.op-g td.neuf .op-c { display: inline-block; animation: op-pop .5s ease; }
.op-r { position: absolute; top: -.08em; left: 50%; transform: translateX(-50%); font-size: .45em; line-height: 1; color: #c0392b; font-weight: 700; }
.op-r.avant { top: .6em; left: .05em; transform: none; font-size: .5em; }
.op-r.bas { top: .1em; left: .02em; transform: none; }
.op-r.neuf { animation: op-fade .6s ease; }
@keyframes op-fade { from { opacity: 0; } to { opacity: 1; } }
.op-g.potence { border-left: 3px solid #333; margin-left: .3em; }
.op-g.potence td { width: 1.05em; }
.op-g.potence tr:first-child td { padding-left: .1em; }
@keyframes op-pop { 0% { transform: scale(.2); opacity: 0; } 70% { transform: scale(1.2); } 100% { transform: none; opacity: 1; } }

/* Explication et étapes */
.op-msg { margin-top: .8em; padding: .8em 1.1em; border-radius: .9em; background: #f6fcf9; color: #444; line-height: 1.7; text-align: center; font-size: 1.1em; min-height: 3.2em; }
.op-msg small { color: #888; }
.op-msg b { color: var(--c); }
.op-msg.err { background: #fdecea; color: #a33; }
.op-pas { display: flex; flex-wrap: wrap; gap: .5em; justify-content: center; align-items: center; margin-top: 1em; }
.op-etape { min-width: 7em; text-align: center; font: 600 1.05em/1.2 'Fredoka', 'Nunito', sans-serif; color: #777; }

/* Réglages, sous l'outil */
.op-reglages { display: flex; flex-wrap: wrap; gap: 1em 1.5em; align-items: center; justify-content: center; margin-top: 1em; padding: 1em 1.2em; background: #fff; border: 2px solid #e5e5e5; border-radius: 1.2em; }
.op-ligne { display: flex; gap: .5em; align-items: center; }
.op-ligne input { width: 8em; font: 600 1.2em/1.2 'Fredoka', 'Nunito', sans-serif !important; text-align: center; }
.op-signe { font: 700 1.6em/1 'Fredoka', 'Nunito', sans-serif; color: #16855a; min-width: .8em; text-align: center; }
.op-groupe { display: flex; flex-wrap: wrap; gap: .4em .7em; align-items: center; }
.op-groupe[hidden] { display: none; }
.op-titre { font-weight: 600; color: #555; font-size: .9em; }
.op-puces, .op-actions { display: flex; flex-wrap: wrap; gap: .5em; }
.op-puce { padding: .35em 1em; border: 2px solid #e5e5e5; border-radius: 2em; background: #fff; color: #777; cursor: pointer; font-size: .92em; -webkit-user-select: none; user-select: none; }
.op-puce:hover { border-color: #5cc79a; }
.op-puce.actif { background: #16855a; border-color: #16855a; color: #fff; }
.op-act { display: inline-flex; align-items: center; gap: .55em; padding: .45em .9em; border: 2px solid #e5e5e5; border-radius: .8em; background: #fff; color: #555; cursor: pointer; font-size: .9em; line-height: 1.3; white-space: nowrap; -webkit-user-select: none; user-select: none; transition: border-color .2s; }
.op-act:hover { border-color: #5cc79a; }
.op-act .icon { flex: none; width: 1.9em; height: 1.9em; border-radius: 50%; background: #eaf7f1; color: #16855a; display: flex; align-items: center; justify-content: center; }
.op-act .icon:before { margin: 0; }
.op-act.actif { border-color: #16855a; }
.op-act.actif .icon, .op-act-p .icon { background: #16855a; color: #fff; }
.op-act.off { opacity: .4; pointer-events: none; }
.op-astuce { margin: 1em 0 0; text-align: center; font-size: .82em; color: #999; }
.op-astuce .icon { color: #5cc79a; margin-right: .3em; }

/* Code de série */
.op-code-zone { max-width: 72em; margin: 1.2em auto 0; display: grid; gap: .8em; background: #fff; border: 2px solid #e5e5e5; border-radius: 1.2em; padding: 1em 1.2em; text-align: left; }
.op-code-zone .cc-bloc > span:first-child { display: block; font-weight: 600; color: #555; margin-bottom: .4em; }
.op-code-zone:empty { display: none; }

@media screen and (max-width: 736px) {
	.op-g { font-size: 1.7em; }
	.op-ligne input { width: 6em; }
}
@media (prefers-reduced-motion: reduce) { .op-g td.neuf .op-c, .op-r.neuf { animation: none; } .op-act { transition: none; } }
