/* Symétries et transformations : une couleur par transformation (axiale verte, centrale orange, translation bleue, rotation violette) */
#features.sy-section { padding-top: 1em; }
.sy-outil { max-width: 72em; margin: 0 auto; text-align: left; --c: #16855a; --cl: #eaf7f1; }
.sy-outil *:focus-visible { outline: 3px solid #f2b01e; outline-offset: 2px; }
.sy-outil:fullscreen { background: #fff; padding: 1em 2em; overflow: auto; max-width: none; }
.sy-outil:-webkit-full-screen { background: #fff; padding: 1em 2em; overflow: auto; max-width: none; }
.sy-t-axiale { --c: #16855a; --cl: #eaf7f1; }
.sy-t-centrale { --c: #c46a0a; --cl: #fdf1e4; }
.sy-t-translation { --c: #2f63b3; --cl: #eaf0fa; }
.sy-t-rotation { --c: #6a4fc2; --cl: #f0ecfb; }
.sy-t-melange { --c: #c23b5c; --cl: #fbeaef; }
.sy-carte { background: #fff; border: 2px solid #e5e5e5; border-radius: 1.2em; padding: 1em 1.2em 1.2em; }

/* Onglets */
.sy-onglets { display: flex; flex-wrap: wrap; gap: .5em; justify-content: center; margin-bottom: .8em; }
.sy-onglet { padding: .45em 1.1em; border: 2px solid #e5e5e5; border-radius: .8em; background: #fff; color: #666; cursor: pointer; font: 600 1em/1.3 'Fredoka', 'Nunito', sans-serif; -webkit-user-select: none; user-select: none; }
.sy-onglet small { opacity: .75; margin-left: .15em; }
.sy-onglet[hidden] { display: none; }
.sy-support { margin-bottom: .5em; }
.sy-support .sy-onglet .icon { margin-right: .25em; }
.sy-affichage { flex: 1 1 100%; justify-content: center; flex-wrap: nowrap; }
.sy-affichage .sy-puces { flex-wrap: nowrap; }
.sy-affichage .sy-puce { white-space: nowrap; }
.sy-onglet:hover { border-color: var(--c); }
.sy-onglet.actif { background: var(--c); border-color: var(--c); color: #fff; }

/* Le quadrillage */
.sy-vue { display: flex; justify-content: center; }
.sy-vue > .sy-svg { width: 100%; max-height: 62vh; }
.sy-outil:fullscreen .sy-vue > .sy-svg { max-height: 72vh; }
.sy-svg { display: block; height: auto; background: #fff; overflow: visible; }
.sy-q { stroke: #d6dde4; stroke-width: .035; }
.sy-fig { fill: rgba(90, 90, 90, .16); stroke: #444; stroke-width: .09; stroke-linejoin: round; }
.sy-img { fill: var(--c); fill-opacity: .2; stroke: var(--c); stroke-width: .1; stroke-linejoin: round; }
.sy-mob { fill-opacity: .3; stroke-dasharray: .25 .12; }
.sy-axe { stroke: var(--c); stroke-width: .09; }
.sy-vec { stroke: var(--c); stroke-width: .09; fill: none; }
.sy-croix { stroke: var(--c); stroke-width: .1; }
.sy-sens { stroke: var(--c); stroke-width: .06; fill: none; }
.sy-pointe { fill: var(--c); stroke: none; }
.sy-trait { stroke: var(--c); stroke-width: .055; stroke-dasharray: .2 .12; fill: none; }
.sy-trait.sy-pointe, .sy-trace.sy-pointe { fill: var(--c); stroke: none; }
.sy-code { stroke: var(--c); stroke-width: .07; }
.sy-trace { stroke: var(--c); stroke-width: .05; stroke-dasharray: .18 .14; fill: none; opacity: .75; }
.sy-pf { fill: #333; }
.sy-pi { fill: var(--c); }
.sy-pe { fill: var(--c); }
.sy-halo { fill: none; stroke: #f2b01e; stroke-width: .12; }
.sy-lab { font: 600 .62px 'Fredoka', 'Nunito', sans-serif; text-anchor: middle; dominant-baseline: middle; stroke: #fff; stroke-width: .14; paint-order: stroke; }
.sy-lab-e { fill: var(--c); }
.sy-gauche { text-anchor: start; }
.sy-petit { font-size: .48px; }

/* Papier blanc et instruments */
.sy-papier { fill: #fff; stroke: #e2e2e2; stroke-width: .05; }
.sy-cons { stroke: var(--c); stroke-width: .05; fill: none; opacity: .85; }
.sy-instr { fill: rgba(120, 170, 225, .2); stroke: #5b84b1; stroke-width: .05; }
.sy-instr-trou { fill: #fff; fill-opacity: .7; stroke: #5b84b1; stroke-width: .04; }
.sy-regle { fill: rgba(242, 200, 80, .28); stroke: #b88a1a; }
.sy-grad { stroke: #6d6d6d; stroke-width: .035; }
.sy-compas { stroke: #6b6b6b; stroke-width: .13; stroke-linecap: round; }
.sy-compas-c { stroke: #8a8a8a; }
.sy-compas-t { fill: #6b6b6b; }
.sy-compas-p { fill: #c0392b; }
.sy-neuf { animation: sy-apparait .7s ease both; }
.sy-arc-neuf { stroke-dasharray: 1; stroke-dashoffset: 1; animation: sy-trace-arc .9s .2s ease forwards; }
@keyframes sy-apparait { from { opacity: 0; } to { opacity: 1; } }
@keyframes sy-trace-arc { to { stroke-dashoffset: 0; } }

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

/* Fiche d'exercices */
.sy-vue > div { width: 100%; }
.sy-imp-titre { display: none; }
.sy-fiche { display: grid; grid-template-columns: repeat(auto-fit, minmax(24em, 1fr)); gap: 1em 1.4em; }
.sy-exo { border: 2px solid #eee; border-radius: 1em; padding: .6em .8em .8em; }
.sy-exo p { margin: 0 0 .4em; line-height: 1.4; font-size: .95em; color: #444; }
.sy-exo p b { color: var(--c); }
.sy-exo .sy-svg { width: 100%; max-width: none; max-height: none; }

/* Réglages, sous l'outil */
.sy-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; }
.sy-groupe { display: flex; flex-wrap: wrap; gap: .4em .7em; align-items: center; }
.sy-groupe[hidden] { display: none; }
.sy-titre { font-weight: 600; color: #555; font-size: .9em; }
.sy-puces, .sy-actions { display: flex; flex-wrap: wrap; gap: .5em; }
.sy-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; }
.sy-puce .icon { margin-right: .2em; }
.sy-puce:hover { border-color: var(--c); }
.sy-puce.actif { background: var(--c); border-color: var(--c); color: #fff; }
.sy-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; }
.sy-act:hover { border-color: var(--c); }
.sy-act .icon { flex: none; width: 1.9em; height: 1.9em; border-radius: 50%; background: var(--cl); color: var(--c); display: flex; align-items: center; justify-content: center; }
.sy-act .icon:before { margin: 0; }
.sy-act-p .icon { background: var(--c); color: #fff; }
.sy-act.off { opacity: .4; pointer-events: none; }
.sy-astuce { margin: 1em 0 0; text-align: center; font-size: .82em; color: #999; }
.sy-astuce .icon { color: var(--c); margin-right: .3em; }

/* Code de série */
.sy-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; }
.sy-code-zone .cc-bloc > span:first-child { display: block; font-weight: 600; color: #555; margin-bottom: .4em; }
.sy-code-zone:empty { display: none; }

@media (prefers-reduced-motion: reduce) { .sy-act { transition: none; } .sy-neuf { animation: none; } .sy-arc-neuf { animation: none; stroke-dasharray: none; stroke-dashoffset: 0; } }

/* Impression : la fiche seule, deux exercices par ligne, carreaux de 5 mm */
@page { size: A4 portrait; margin: 1cm; }
@media print {
	#header, #banner, #footer, #nav, #titleBar, #navPanel, .sy-onglets, .sy-msg, .sy-pas, .sy-reglages, .sy-astuce, .sy-code-zone, .retours-zone, .retours-voile, .pdf-rappel { display: none !important; }
	html, body, #page-wrapper, #features.sy-section, #features .container { margin: 0 !important; padding: 0 !important; background: #fff !important; min-height: 0 !important; }
	.sy-outil { max-width: none; }
	.sy-carte { border: 0; padding: 0; }
	.sy-imp-titre { display: block; font: 600 15pt/1.3 'Fredoka', 'Nunito', sans-serif; margin: 0 0 .4cm; color: #000; }
	.sy-imp-titre small { display: block; font: 400 10pt 'Nunito', sans-serif; color: #444; }
	.sy-fiche { grid-template-columns: 8.4cm 8.4cm; gap: .5cm .6cm; justify-content: center; }
	.sy-exo { border: 0; padding: 0; break-inside: avoid; }
	.sy-exo p { font-size: 10pt; color: #000; }
	.sy-exo .sy-svg { width: 8.4cm; }
	.sy-svg, .sy-svg * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
	.sy-q { stroke: #b9c2cb; }
}
