/* Vision dans l'espace : bleu « crayon » comme la géométrie, cubes aux couleurs des crayons */
#features.ve-section { padding-top: 1em; }
.ve-outil { max-width: 72em; margin: 0 auto; text-align: left; --c: #2f63b3; --cl: #eaf0fa; }
.ve-outil *:focus-visible { outline: 3px solid #f2b01e; outline-offset: 2px; }
.ve-outil:fullscreen { background: #fff; padding: 1em 2em; overflow: auto; max-width: none; }
.ve-outil:-webkit-full-screen { background: #fff; padding: 1em 2em; overflow: auto; max-width: none; }
.ve-carte { background: #fff; border: 2px solid #e5e5e5; border-radius: 1.2em; padding: 1em 1.2em 1.2em; }

/* Onglets */
.ve-onglets { display: flex; flex-wrap: wrap; gap: .5em; justify-content: center; margin-bottom: .6em; }
.ve-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; }
.ve-onglet small { opacity: .75; margin-left: .15em; }
.ve-onglet:hover { border-color: var(--c); }
.ve-onglet.actif { background: var(--c); border-color: var(--c); color: #fff; }

/* La vue en 3D */
.ve-cv { display: block; width: 100%; height: min(52vh, 30em); touch-action: none; cursor: grab; background: radial-gradient(ellipse at 50% 40%, #fff 40%, #f3f6fb); border-radius: .8em; }
.ve-cv:active { cursor: grabbing; }
.ve-outil:fullscreen .ve-cv { height: 62vh; }
.ve-outil:-webkit-full-screen .ve-cv { height: 62vh; }
/* plein écran : le code du parcours ne sert pas en classe ; la zone 3D prend la hauteur qui reste, sans réduction */
.ve-outil:fullscreen #zone-code, .ve-outil:-webkit-full-screen #zone-code { display: none; }
.ve-outil:fullscreen .ve-cv, .ve-outil:-webkit-full-screen .ve-cv { height: calc(100vh - 20.5em); min-height: 16em; }
/* activité élève : la question et les réglages (difficulté, étapes) restent visibles, la zone 3D leur laisse la place */
.ve-outil:fullscreen:has(#reglages:not([hidden])) .ve-cv { height: calc(100vh - 26em); min-height: 16em; }

/* Barre des vues, boutons, puces */
.ve-barre, .ve-ligne { display: flex; flex-wrap: wrap; gap: .45em; justify-content: center; align-items: center; margin: .6em 0; }
.ve-barre-t, .ve-titre { font-weight: 700; color: var(--c); margin-right: .2em; }
.ve-aide { color: #888; font-size: .9em; margin: 0 .4em; }
.ve-puce, .ve-bt-p { padding: .4em .95em; border: 2px solid #e5e5e5; border-radius: .8em; background: #fff; color: #555; cursor: pointer; font: 600 .95em/1.3 'Fredoka', 'Nunito', sans-serif; -webkit-user-select: none; user-select: none; }
.ve-puce:hover { border-color: var(--c); }
.ve-puce.actif { background: var(--cl); border-color: var(--c); color: var(--c); }
.ve-puce .icon, .ve-lien .icon { margin-right: .2em; }
.ve-bt-p { background: var(--c); border-color: var(--c); color: #fff; }
.ve-bt-p:hover { filter: brightness(1.1); }
.ve-lien { cursor: pointer; color: #666; font-weight: 600; margin: 0 .4em; -webkit-user-select: none; user-select: none; }
.ve-lien .icon { color: var(--c); }
.ve-sep { width: 1.2em; }
.ve-pastille { width: 1.9em; height: 1.9em; border-radius: 50%; background: var(--p); border: 3px solid #fff; box-shadow: 0 0 0 2px #ccc; cursor: pointer; }
.ve-pastille.actif { box-shadow: 0 0 0 3px #333; }
.ve-aide-c { text-align: center; color: #888; font-size: .9em; margin: .2em 0; }
.ve-compte { text-align: center; margin: .3em 0; color: #555; }
.ve-compte b { font: 700 1.6em/1 'Fredoka', 'Nunito', sans-serif; color: var(--c); }
.ve-num { font: 600 1em 'Fredoka', 'Nunito', sans-serif; color: #555; min-width: 9em; text-align: center; }
.ve-glisse { display: inline-flex; align-items: center; gap: .6em; margin: 0 .8em 0 0; color: #666; font-weight: 600; }
.ve-glisse input { width: 14em; accent-color: var(--c); -webkit-appearance: auto; appearance: auto; height: auto; background: none; border: 0; padding: 0; }
.ve-verdict { text-align: center; color: #555; margin: .5em 0 0; }

/* Les vues dessinées */
.ve-vues { display: flex; flex-wrap: wrap; gap: 1.2em; justify-content: center; align-items: flex-end; margin: .6em 0; }
.ve-vue { margin: 0; text-align: center; }
.ve-vue figcaption { font-weight: 600; color: #666; font-size: .9em; margin-top: .2em; }
.ve-vue-svg { display: block; margin: 0 auto; height: auto; overflow: visible; }
.ve-vide { fill: none; stroke: #e1e6ec; stroke-width: .04; }
.ve-plein { stroke: #33373d; stroke-width: .07; }

/* Activité élève */
.ve-progres { display: flex; justify-content: center; gap: .35em; margin: .5em 0 .2em; }
.ve-pt { width: .9em; height: .9em; border-radius: 50%; background: #e5e5e5; }
.ve-pt.cur { box-shadow: 0 0 0 3px var(--c); }
.ve-pt.r2 { background: #3fa45b; } .ve-pt.r1 { background: #f2b01e; } .ve-pt.r0 { background: #e05656; }
.ve-etape { text-align: center; color: var(--c); font-weight: 700; margin: .3em 0 0; }
.ve-consigne { text-align: center; font-size: 1.1em; color: #333; margin: .3em 0; }
.ve-nb { font: 700 1.4em 'Fredoka', 'Nunito', sans-serif; width: 4em !important; text-align: center; padding: .2em; border: 2px solid #ccd; border-radius: .6em; height: auto !important; }
.ve-choix { display: flex; flex-wrap: wrap; gap: 1em; justify-content: center; align-items: center; margin: .6em 0; }
.ve-tuile { display: flex; align-items: center; justify-content: center; min-width: 7em; min-height: 6em; padding: .7em; border: 3px solid #e5e5e5; border-radius: 1em; background: #fff; cursor: pointer; -webkit-user-select: none; user-select: none; }
.ve-tuile:hover { border-color: var(--c); background: var(--cl); }
.ve-tuile.bon { border-color: #3fa45b; background: #eaf7ee; }
.ve-tuile.mauvais { border-color: #e05656; background: #fdeeee; }
.ve-mot { font: 700 1.3em 'Fredoka', 'Nunito', sans-serif; color: #444; min-height: 0; gap: .4em; }
.ve-retour { text-align: center; margin: .4em 0; color: #444; }
.ve-bien { color: #2e8b4a; } .ve-mal { color: #c0392b; }

/* Réglages de l'activité et code */
.ve-reglages { margin: 1em auto 0; display: grid; gap: .6em; background: #fff; border: 2px solid #e5e5e5; border-radius: 1.2em; padding: 1em 1.2em; }
.ve-reglages[hidden] { display: none; }
.ve-groupe { display: flex; flex-wrap: wrap; gap: .45em; justify-content: center; align-items: center; }
.ve-groupe .ve-titre { flex: 1 1 100%; text-align: center; }
.ve-code-zone { 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; }
.ve-code-zone .cc-bloc > span:first-child { display: block; font-weight: 600; color: #555; margin-bottom: .4em; }
.ve-code-zone:empty { display: none; }
