@import url("./sprites.css");
@import url("./knacssextract.css");
@import url("../js/libs/JSXGraph1.11.1/jsxgraph.css");
@import url("./bulma-steps.css");
@import url("./keyboard.css");

.hidden {
    display: none;
}

/* KaTeX: cacher la version MathML (accessibilité seulement) */
.katex-mathml {
    position: absolute !important;
    clip: rect(1px, 1px, 1px, 1px) !important;
    clip-path: inset(50%) !important;
    height: 1px !important;
    width: 1px !important;
    overflow: hidden !important;
    white-space: nowrap !important;
}

#tab-enonce,
#tab-corrige,
#tab-param {
    padding: 1em;
}
#tab-content header {
    color: rgb(223, 227, 245);
    padding: 0.5em 1em 0 0.5em;
    border-bottom: #8aacf2 1px solid;
}
#tab-content header button:hover {
    background: #bac9e7;
}
#tab-content header button.active {
    background: #8aacf2;
}
#tab-corrige aside,
#tab-enonce aside {
    display: inline-block;
    width: 50px;
    vertical-align: top;
}
#tab-corrige > div,
#tab-enonce > div {
    display: inline-block;
    width: calc(100% - 55px);
}
#tab-corrige aside button,
#tab-enonce aside button {
    background-color: rgba(0, 0, 0, 0);
    padding: 0;
    margin-bottom: 5px;
}

.pointer {
    cursor: pointer;
}
.underline {
    text-decoration: underline !important;
}
.zoom-A1 {
    font-size: 1.2em;
    user-select: none;
}
.float-right {
    float: right;
}
.red {
    color: red;
}
.message {
    display: block;
    width: 420px;
    text-align: center;
    position: absolute;
    background: #367ebd;
    color: rgb(223, 227, 245);
    padding: 3rem;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 0.5em;
    box-shadow:
        0 8px 6px -6px #000,
        -1px 2px 20px rgba(47, 91, 235, 0.6) inset;
    z-index: 10;
}
#painting {
    position: absolute;
    display: block;
    cursor: url(../img/iconfinder_pencil.png), auto;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    z-index: 40;
}
.slider-head {
    font-size: 2rem;
}
.slider-head button,
.zoom button {
    background-color: rgba(0, 0, 0, 0);
    padding: 0.5rem;
}

.steps-container {
    margin-top: 3.5rem;
}
.zoom {
    display: inline-block;
}

/* Slides
Animations from https://www.w3schools.com/w3css/4/w3.css
*/
/* figures */
.slide .fig {
    height: 50%;
    /*width:50%;*/
}
/* #corrige-content .fig {
  height: 300px;
  width: 300px;
} */
/* #enonce-content .fig {
  height: 150px;
  width: 150px;
}*/
.fig svg {
    max-width: 100% !important;
    max-height: 100% !important;
}
#corrige-content li > div {
    display: none;
}
#corrige-content li > div.visible {
    display: block;
}
.fig .italic {
    font-family: "Times New Roman", Times, serif !important;
    font-style: italic;
}
custom-svg svg .correction,
svg .correction {
    display: none;
}
custom-svg.corrige svg .correction,
.corrige svg .correction {
    display: initial;
}
/*
* Enonces et corriges
*/
.inline-table {
    display: inline-table !important;
    border-collapse: collapse !important;
    width: auto !important;
    vertical-align: middle;
    text-align: center;
}
.inline-table td,
.inline-table th {
    border: 1px solid #5b5b5b;
    padding: 4px 8px;
    text-align: center;
}
.center-table {
    /*text-align: center;*/
    display: flex;
    justify-content: center;
}
/* Font sizes
*/
#slideshow-container {
    position: absolute;
    z-index: 1000;
    display: block;
    top: 10px;
    left: 10px;
    bottom: 10px;
    right: 10px;
    /*overflow: hidden;*/
}
#slideshow-container header {
    display: block;
    position: absolute;
    z-index: 10;
    top: -10px;
    left: 50%;
    transform: translate(-50%, -90%);
    background: #bbb;
    padding: 0 1em;
    border-radius: 0 0 1em 1em;
    transition: transform 1s ease;
}
#slideshow-container header:hover {
    transform: translate(-50%, 0);
}
#slideshow-container header button {
    background-color: #bbb;
}
#slideshow,
#slideshow .sample {
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
}
#slideshow {
    background-color: ivory;
}
#slideshow .sample {
    z-index: 200;
    background: #d6d7df;
}

#slideshow-container.hidden {
    display: none;
}
#slideshow.vertical,
#slideshow.vertical .sample {
    flex-direction: column;
}
.slider-nav {
    float: right;
    font-size: 1rem;
}
.slider-nav button {
    background-color: rgba(0, 0, 0, 0);
    padding: 0.5rem;
}
.slider-1 {
    width: calc(100% - 20px);
    height: calc(100% - 20px);
    border: 1px solid black;
}
.slider-2 {
    width: calc(50% - 10px);
    height: calc(100% - 20px);
    border: 1px solid black;
}
#slideshow:not(.vertical) .slider-2 .slider-nav img,
.slider-34 .slider-nav img {
    width: 32px;
    height: 32px;
}
#slideshow.vertical .slider-2 {
    width: calc(100% - 20px);
    height: calc(50% - 10px);
}
.slider-34 {
    width: calc(50% - 10px);
    height: calc(50% - 10px);
    border: 1px solid black;
}
#slideshow > div {
    overflow: hidden;
}
.slider-1,
.slider-2,
.slider-34 {
    font-size: 1.6em;
}
.slider-1 .slide {
    font-size: 2.4em;
}
.slider-2 .slide {
    font-size: 1.6em;
}
/*taille des spans */
.slide > span.medium,
.slide > span.medium + div:not(.kb) {
    font-size: 0.8em;
}
/*taille des spans */
.slide > span.small,
.slide > span.small + div:not(.kb) {
    font-size: 0.666em;
}
.slide > span {
    min-height: initial;
}
.vertical.return .slider-2 .slide {
    font-size: 1em;
}

.slider-bigger {
    font-size: 3em;
}
.slider-biggest {
    font-size: 4em;
}
.slider-title,
.slider-chrono {
    padding: 0.5em;
    display: inline-block;
    font-size: 2rem;
    vertical-align: middle;
}
.slide {
    position: relative;
    /* place réservée au clavier escamotable : keyboard.js tient --kb-h à jour
       (hauteur du clavier ouvert, de la seule poignée une fois replié) */
    padding-bottom: var(--kb-h, 0px);
    width: 100%;
    height: calc(100% - 10rem);
    display: flex;
    flex-direction: column;
}
.vertical .slide {
    flex-direction: row;
}
.slide > span,
.slide > div {
    margin: auto;
    flex-grow: 5;
    align-content: center;
}
.slide div.consigne {
    flex-grow: 1;
}
/*  .slide > div:not(.kb) {
    height: 60%;
    width:60%;
  }*/
.vertical .slide > div {
    margin-top: 0;
    height: 40%;
    width: 40%;
}
.answerInSlide {
    background-color: #ffcac5;
    padding: 2rem;
}
.answerInSlide.hidden {
    display: none !important;
}
.answerInSlide .fig {
    margin: auto;
}
.slide.hidden {
    display: none;
}
.blink_me {
    animation: blinker 2s linear infinite;
}
math-field {
    margin: auto;
    min-width: 300px;
    width: 80%;
    border: 1px solid rgba(0, 0, 0, 0.3);
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.2);
}
/* Hide the virtual keyboard toggle */
math-field::part(virtual-keyboard-toggle) {
    display: none;
}

/* Hide the menu toggle */
math-field::part(menu-toggle) {
    display: none;
}

.return .slider-2:nth-child(1) {
    transform: rotate(180deg);
}
.return .slider-34:nth-child(1) {
    transform: rotate(180deg);
}
.return .slider-34:nth-child(2) {
    transform: rotate(180deg);
}
#screen-division .return {
    transform: rotate(180deg);
}

#corrige-content li.good:after {
    content: "✓";
    color: green;
    margin-left: 3px;
}
#corrige-content li.wrong:after {
    content: "×";
    color: red;
    margin-left: 3px;
}
#tab-enonce ol,
#tab-corrige ol {
    counter-reset: pas;
    padding-left: 2rem;
}
#tab-enonce ol > li,
#tab-corrige ol > li {
    counter-increment: pas;
    list-style: none;
}
#tab-enonce ol > li::before,
#tab-corrige ol > li::before {
    content: counter(pas) ")";
    margin-right: 0.8em;
    text-align: right;
    vertical-align: middle;
    font-weight: bold;
    display: inline-block;
    width: 1em;
}
.alpha #tab-enonce ol > li::before,
.alpha #tab-corrige ol > li::before {
    content: counter(pas, lower-greek) ")";
}
.MAJUSCULE #tab-enonce ol > li::before,
.MAJUSCULE #tab-corrige ol > li::before {
    content: counter(pas, upper-alpha) ")";
}
#tab-enonce ol > li,
#tab-corrige ol > li {
    padding: 4px 10px 4px;
}

.score {
    margin-left: 3rem;
}

@keyframes blinker {
    50% {
        opacity: 0.4;
    }
}

.steps .steps-content {
    font-size: 2em;
}
.w3-animate-fading {
    animation: fading 10s infinite;
}
@keyframes fading {
    0% {
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}
.w3-animate-opacity {
    animation: opac 0.8s;
}
@keyframes opac {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
.w3-animate-top {
    position: relative;
    animation: animatetop 0.4s;
}
@keyframes animatetop {
    from {
        top: -300px;
        opacity: 0;
    }
    to {
        top: 0;
        opacity: 1;
    }
}
.w3-animate-left {
    position: relative;
    animation: animateleft 0.4s;
}
@keyframes animateleft {
    from {
        left: -300px;
        opacity: 0;
    }
    to {
        left: 0;
        opacity: 1;
    }
}
.w3-animate-right {
    position: relative;
    animation: animateright 0.4s;
}
@keyframes animateright {
    from {
        right: -300px;
        opacity: 0;
    }
    to {
        right: 0;
        opacity: 1;
    }
}
.w3-animate-bottom {
    position: relative;
    animation: animatebottom 0.4s;
}
@keyframes animatebottom {
    from {
        bottom: -300px;
        opacity: 0;
    }
    to {
        bottom: 0;
        opacity: 1;
    }
}
.w3-animate-zoom {
    animation: animatezoom 0.6s;
}
@keyframes animatezoom {
    from {
        transform: scale(0);
    }
    to {
        transform: scale(1);
    }
}
.w3-animate-input {
    transition: width 0.4s ease-in-out;
}
.w3-animate-input:focus {
    width: 100% !important;
}

/* Keyboards : base commune dans css/keyboard.css (importée en tête de fichier) */
@media screen and (max-width: 800px) {
    body {
        font-size: 1rem;
    }
}
/* Ranges de taille de texte */
#slideshow-container input[type="range"],
#tab-enonce input[type="range"],
#tab-corrige input[type="range"] {
    vertical-align: middle;
    width: 60px;
    margin: 0 2pt;
}

/* progress bar */
.progress {
    -moz-appearance: none;
    -webkit-appearance: none;
    appearance: none;
    border: none;
    border-radius: 290486px;
    display: block;
    height: 1rem;
    overflow: hidden;
    padding: 0;
    width: 200px;
}

.progress::-webkit-progress-bar {
    background-color: #ededed;
}

.progress::-webkit-progress-value {
    background-color: #4a4a4a;
}

.progress::-moz-progress-bar {
    background-color: #4a4a4a;
}

.progress::-ms-fill {
    background-color: #4a4a4a;
    border: none;
}

.progress.is-primary::-webkit-progress-value {
    background-color: #00d1b2;
}

.progress.is-primary::-moz-progress-bar {
    background-color: #00d1b2;
}

.progress.is-primary::-ms-fill {
    background-color: #00d1b2;
}

.progress.is-primary:indeterminate {
    background-image: linear-gradient(to right, #00d1b2 30%, #ededed 30%);
}

.progress.is-link::-webkit-progress-value {
    background-color: #3273dc;
}

.progress.is-link::-moz-progress-bar {
    background-color: #3273dc;
}

.progress.is-link::-ms-fill {
    background-color: #3273dc;
}

.progress.is-link:indeterminate {
    background-image: linear-gradient(to right, #3273dc 30%, #ededed 30%);
}

.progress.is-info::-webkit-progress-value {
    background-color: #3298dc;
}

.progress.is-info::-moz-progress-bar {
    background-color: #3298dc;
}

.progress.is-info::-ms-fill {
    background-color: #3298dc;
}

.progress.is-info:indeterminate {
    background-image: linear-gradient(to right, #3298dc 30%, #ededed 30%);
}

.progress.is-success::-webkit-progress-value {
    background-color: #48c774;
}

.progress.is-success::-moz-progress-bar {
    background-color: #48c774;
}

.progress.is-success::-ms-fill {
    background-color: #48c774;
}

.progress.is-success:indeterminate {
    background-image: linear-gradient(to right, #48c774 30%, #ededed 30%);
}

.progress.is-warning::-webkit-progress-value {
    background-color: #ffdd57;
}

.progress.is-warning::-moz-progress-bar {
    background-color: #ffdd57;
}

.progress.is-warning::-ms-fill {
    background-color: #ffdd57;
}

.progress.is-warning:indeterminate {
    background-image: linear-gradient(to right, #ffdd57 30%, #ededed 30%);
}

.progress.is-danger::-webkit-progress-value {
    background-color: #f14668;
}

.progress.is-danger::-moz-progress-bar {
    background-color: #f14668;
}

.progress.is-danger::-ms-fill {
    background-color: #f14668;
}

.progress.is-danger:indeterminate {
    background-image: linear-gradient(to right, #f14668 30%, #ededed 30%);
}

.progress:indeterminate {
    -webkit-animation-duration: 1.5s;
    animation-duration: 1.5s;
    -webkit-animation-iteration-count: infinite;
    animation-iteration-count: infinite;
    -webkit-animation-name: moveIndeterminate;
    animation-name: moveIndeterminate;
    -webkit-animation-timing-function: linear;
    animation-timing-function: linear;
    background-color: #ededed;
    background-image: linear-gradient(to right, #4a4a4a 30%, #ededed 30%);
    background-position: top left;
    background-repeat: no-repeat;
    background-size: 150% 150%;
}

.progress:indeterminate::-webkit-progress-bar {
    background-color: transparent;
}

.progress:indeterminate::-moz-progress-bar {
    background-color: transparent;
}

.progress.is-small {
    height: 0.75rem;
}

.progress.is-medium {
    height: 1.25rem;
}

.progress.is-large {
    height: 1.5rem;
}

@-webkit-keyframes moveIndeterminate {
    from {
        background-position: 200% 0;
    }
    to {
        background-position: -200% 0;
    }
}

@keyframes moveIndeterminate {
    from {
        background-position: 200% 0;
    }
    to {
        background-position: -200% 0;
    }
}

#countdown-container {
    position: absolute;
    z-index: 5000;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: #0275d8;
    font-family: Helvetica, Arial, sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
}
#countdown-container.hidden {
    display: none !important;
}
#countdown {
    position: relative;
    width: 200px;
    height: 200px;
}
#countdown .num {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 10rem;
    font-weight: bold;
    color: white;
    opacity: 0;
    animation: countdownNum 1.2s ease-out forwards;
}
#countdown .num:nth-child(1) {
    animation-delay: 0s;
}
#countdown .num:nth-child(2) {
    animation-delay: 1.2s;
}
#countdown .num:nth-child(3) {
    animation-delay: 2.4s;
}
@keyframes countdownNum {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(2);
    }
    20% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    80% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.5);
    }
}
.demo {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 500px;
    height: 140px;
    margin-top: -70px;
    padding: 10px;
    border-radius: 20px;
    -webkit-transform: translateX(-50%);
    transform: translateX(-50%);
}
.demo__colored-blocks {
    overflow: hidden;
    position: absolute;
    left: 50%;
    top: 0;
    width: 500px;
    height: 100%;
    margin-left: -250px;
    padding: 10px;
    border-radius: 20px;
    -webkit-perspective: 1000px;
    perspective: 1000px;
    -webkit-animation:
        demoAnim 4s ease-in-out 1,
        contAnim 4s 1;
    animation:
        demoAnim 4s ease-in-out 1,
        contAnim 4s 1;
}
.demo__colored-blocks-rotater {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    -webkit-animation: rotation 1.3s linear 1;
    animation: rotation 1.3s linear 1;
}
.demo__colored-blocks-inner {
    overflow: hidden;
    position: relative;
    height: 100%;
    background: #32386d;
    border-radius: inherit;
}
.demo__colored-block {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 300%;
    height: 300%;
    -webkit-transform-origin: 0 0;
    transform-origin: 0 0;
}
.demo__colored-block:nth-child(1) {
    -webkit-transform: rotate(0deg) skewX(-30deg);
    transform: rotate(0deg) skewX(-30deg);
    background-color: #fd3359;
}
.demo__colored-block:nth-child(2) {
    -webkit-transform: rotate(120deg) skewX(-30deg);
    transform: rotate(120deg) skewX(-30deg);
    background-color: #f4d302;
}
.demo__colored-block:nth-child(3) {
    -webkit-transform: rotate(240deg) skewX(-30deg);
    transform: rotate(240deg) skewX(-30deg);
    background-color: #21bdff;
}
.demo__inner {
    overflow: hidden;
    position: relative;
    width: 100%;
    height: 100%;
}
.demo__numbers {
    overflow: visible;
    position: absolute;
    left: 50%;
    top: 50%;
    width: 100px;
    height: 100px;
    margin-left: -50px;
    margin-top: -50px;
}
.demo__numbers-path {
    fill: none;
    stroke-width: 10px;
    stroke: #fff;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 0, 518.055065155;
    stroke-dashoffset: 0;
    -webkit-animation: numAnim 4s ease-in-out 1;
    animation: numAnim 4s ease-in-out 1;
    opacity: 0;
}
.demo__text {
    position: absolute;
    left: 50%;
    top: 0;
    width: 500px;
    height: 100%;
    margin-left: -250px;
    text-align: center;
    line-height: 140px;
    font-size: 100px;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 15px;
    -webkit-transform: translateX(10px);
    transform: translateX(10px);
    -webkit-animation: hideText 4s 1;
    animation: hideText 4s 1;
}

@-webkit-keyframes contAnim {
    15%,
    100% {
        margin-left: -250px;
        width: 500px;
    }
    25%,
    90% {
        margin-left: -70px;
        width: 140px;
    }
}

@keyframes contAnim {
    15%,
    100% {
        margin-left: -250px;
        width: 500px;
    }
    25%,
    90% {
        margin-left: -70px;
        width: 140px;
    }
}
@-webkit-keyframes numAnim {
    15% {
        stroke-dasharray: 0, 518.055065155;
        stroke-dashoffset: 0;
        opacity: 0;
    }
    25%,
    41% {
        opacity: 1;
        stroke-dasharray: 144.4256591797, 518.055065155;
        stroke-dashoffset: -40;
    }
    53%,
    66% {
        stroke-dasharray: 136.0216217041, 518.055065155;
        stroke-dashoffset: -227.238697052;
    }
    76% {
        stroke-dasharray: 113.4751205444, 518.055065155;
        stroke-dashoffset: -445.8995704651;
    }
    88%,
    100% {
        stroke-dasharray: 72.1554946899, 518.055065155;
        stroke-dashoffset: -445.8995704651;
    }
    92% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}
@keyframes numAnim {
    15% {
        stroke-dasharray: 0, 518.055065155;
        stroke-dashoffset: 0;
        opacity: 0;
    }
    25%,
    41% {
        opacity: 1;
        stroke-dasharray: 144.4256591797, 518.055065155;
        stroke-dashoffset: -40;
    }
    53%,
    66% {
        stroke-dasharray: 136.0216217041, 518.055065155;
        stroke-dashoffset: -227.238697052;
    }
    76% {
        stroke-dasharray: 113.4751205444, 518.055065155;
        stroke-dashoffset: -445.8995704651;
    }
    88%,
    100% {
        stroke-dasharray: 72.1554946899, 518.055065155;
        stroke-dashoffset: -445.8995704651;
    }
    92% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}
@-webkit-keyframes rotation {
    to {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}
@keyframes rotation {
    to {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}
@-webkit-keyframes demoAnim {
    15% {
        border-radius: 20px;
        -webkit-transform: rotate(0);
        transform: rotate(0);
    }
    30%,
    43% {
        border-radius: 50%;
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
    52%,
    65% {
        border-radius: 0;
        -webkit-transform: rotate(720deg);
        transform: rotate(720deg);
    }
    78%,
    90% {
        border-radius: 50%;
        -webkit-transform: rotate(1080deg);
        transform: rotate(1080deg);
    }
    100% {
        border-radius: 20px;
        -webkit-transform: rotate(1440deg);
        transform: rotate(1440deg);
    }
}
@keyframes demoAnim {
    15% {
        border-radius: 20px;
        -webkit-transform: rotate(0);
        transform: rotate(0);
    }
    30%,
    43% {
        border-radius: 50%;
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
    52%,
    65% {
        border-radius: 0;
        -webkit-transform: rotate(720deg);
        transform: rotate(720deg);
    }
    78%,
    90% {
        border-radius: 50%;
        -webkit-transform: rotate(1080deg);
        transform: rotate(1080deg);
    }
    100% {
        border-radius: 20px;
        -webkit-transform: rotate(1440deg);
        transform: rotate(1440deg);
    }
}
@-webkit-keyframes hideText {
    15%,
    100% {
        opacity: 1;
    }
    20%,
    96% {
        opacity: 0;
    }
}
@keyframes hideText {
    15%,
    100% {
        opacity: 1;
    }
    20%,
    96% {
        opacity: 0;
    }
}

/* Timing Configuration UI */
#timing-config {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

#timing-config h2 {
    font-size: 1.8em;
    margin-bottom: 20px;
    color: #2c3e50;
    border-bottom: 3px solid #3273dc;
    padding-bottom: 10px;
}

#timing-config h3 {
    font-size: 1.4em;
    color: #34495e;
    margin-bottom: 15px;
}

#timing-config h4 {
    font-size: 1.2em;
    color: #555;
    margin-bottom: 10px;
}

.global-tempo-section {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.cart-section {
    background: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.activity-section {
    background: #fafafa;
}

.questions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
    margin-top: 10px;
}

.question-tempo {
    transition: all 0.2s ease;
}

.question-tempo:hover {
    background: #f0f8ff !important;
    transform: translateY(-2px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.question-tempo input[type="number"] {
    border: 1px solid #ccc;
    border-radius: 3px;
    text-align: center;
    font-size: 14px;
}

.question-tempo input[type="number"]:focus {
    outline: none;
    border-color: #3273dc;
    box-shadow: 0 0 0 2px rgba(50, 115, 220, 0.1);
}

#global-tempo-input {
    border: 2px solid #3273dc;
    border-radius: 4px;
    font-size: 16px;
    font-weight: bold;
}

.button--primary,
.button--success,
.button--info {
    border: none;
    border-radius: 4px;
    font-size: 1em;
    font-weight: 500;
    transition: all 0.2s ease;
}

.button--primary:hover {
    background: #2563c7 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.button--success:hover {
    background: #1fc257 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.start-section {
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
  .angle-svg { max-width: 100%; height: auto; }

/* ==========================================================================
   Thème Das Mathebuch (consigne verte, énoncé en cadre blanc, icônes sobres)
   ========================================================================== */
:root {
    --dm-green: #3a9a8a;
    --dm-green-dark: #2b7a6d;
    --dm-mint: #e4f1ee;
    --dm-orange: #e38e2e;
    --dm-blue: #6db6d4;
    --dm-yellow: #fff3b0;
}
#slideshow { background-color: var(--dm-mint); }
.slider-1, .slider-2, .slider-34 {
    border: 2px solid var(--dm-green);
    border-radius: 0.6rem;
    background: var(--dm-mint);
}
.slider-head { color: var(--dm-green-dark); }
.slider-title { font-weight: 700; color: var(--dm-green-dark); }
.progress::-webkit-progress-value { background-color: var(--dm-orange); }
.progress::-moz-progress-bar { background-color: var(--dm-orange); }

/* consigne : blanc sur bandeau vert */
.slide div.consigne {
    flex: 0 0 auto;
    margin: 0.3em 0.5em 0;
    padding: 0.25em 0.8em;
    background: var(--dm-green);
    color: #fff;
    font-weight: 700;
    text-align: center;
    border-radius: 0.5em;
    box-shadow: 0 2px 0 var(--dm-green-dark);
}
/* énoncé : cadre blanc */
.slide > span {
    align-self: stretch;
    min-width: 0;
    max-width: 100%;
    margin: 0.5em;
    padding: 0.4em 0.6em;
    background: #fff;
    border: 2px solid var(--dm-green);
    border-radius: 0.6em;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12);
    text-align: center;
}
.answerInSlide {
    background-color: var(--dm-yellow);
    border-left: 0.4rem solid var(--dm-orange);
    border-radius: 0.5em;
    padding: 0.6rem 1rem;
}

/* icônes sobres (remplacent les pastilles colorées du sprite) */
.slider-nav button, #slideshow-container header button {
    background: transparent;
    border: 1.5px solid var(--dm-green);
    border-radius: 50%;
    width: 2.6rem;
    height: 2.6rem;
    padding: 0.35rem;
    margin-left: 0.3rem;
    color: var(--dm-green-dark);
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}
.slider-nav button:hover, #slideshow-container header button:hover {
    background: var(--dm-green);
    color: #fff;
}
i.sprite[class*="sprite-slider-"] {
    display: block;
    width: 100%;
    height: 100%;
    background: currentColor;
    -webkit-mask: var(--ico) center / contain no-repeat;
    mask: var(--ico) center / contain no-repeat;
}
.sprite-slider-stop {
    --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='6' y='6' width='12' height='12' rx='2'/%3E%3C/svg%3E");
}
.sprite-slider-pause {
    --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6v12M15 6v12'/%3E%3C/svg%3E");
}
.sprite-slider-play {
    --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 5l11 7-11 7z'/%3E%3C/svg%3E");
}
.sprite-slider-next {
    --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 5l9 7-9 7zM18 5v14'/%3E%3C/svg%3E");
}
.sprite-slider-solution {
    --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 18h6M10 21h4M12 3a6 6 0 0 0-3.5 10.9c.7.6 1 1.3 1 2.1h5c0-.8.3-1.5 1-2.1A6 6 0 0 0 12 3z'/%3E%3C/svg%3E");
}
.slide div.consigne { font-size: 0.7em; }
.slider-nav button, #slideshow-container header button { width: 3.4rem; height: 3.4rem; padding: 0.5rem; }
.progress.is-link::-webkit-progress-value { background-color: var(--dm-orange); }
.progress.is-link::-moz-progress-bar { background-color: var(--dm-orange); }
.slide > span { margin: 0.2em 0.5em; padding: 0.15em 0.5em; border-radius: 0.5em; }
.slide div.consigne { margin-top: 0.2em; padding: 0.1em 0.8em; }

/* ---- Énoncés / corrections (onglets Aufgaben / Losungen) ---- */
html, body { background: var(--dm-mint); color: #222; }
#tab-content header { background: var(--dm-green); color: #fff; border-bottom: 0; padding: 0.4em 1em 0 0.5em; }
#tab-content header button, #header-menu button {
    background: transparent; color: #fff; border: 0; border-radius: 0.5em 0.5em 0 0;
    padding: 0.5em 1.1em; font-weight: 600; cursor: pointer;
}
#tab-content header button:hover, #header-menu button:hover { background: var(--dm-green-dark); }
#tab-content header button.active, #header-menu button.active { background: var(--dm-mint); color: var(--dm-green-dark); }
#tab-enonce.is-active ~ *, #tab-corrige.is-active ~ * { }
#tab-corrige h3, #tab-enonce h3 {
    display: block; margin: 0.4em 0; padding: 0.2em 0.8em; background: var(--dm-green); color: #fff;
    border-radius: 0.5em; box-shadow: 0 2px 0 var(--dm-green-dark); font-size: 1.3rem;
}
#tab-enonce ol, #tab-corrige ol { padding-left: 0; margin: 0.5em 0; }
#tab-enonce ol > li, #tab-corrige ol > li {
    display: flex; align-items: center; gap: 0.5em;
    background: #fff; border: 2px solid var(--dm-green); border-radius: 0.5em;
    box-shadow: 0 2px 6px rgba(0,0,0,.1); padding: 0.1em 0.5em; margin: 0.4em 0;
}
#tab-enonce ol > li::before, #tab-corrige ol > li::before {
    flex: 0 0 auto; width: 1.4em; height: 1.4em; line-height: 1.4em; margin: 0; text-align: center;
    border-radius: 50%; background: var(--dm-orange); color: #fff; font-size: 0.5em; font-weight: 700;
}
#tab-enonce ol > li > span, #tab-corrige ol > li > span { flex: 1 1 0; min-width: 0; text-align: center; }
#tab-corrige li.good:after, #tab-corrige li.wrong:after { flex: 0 0 auto; }

/* boutons latéraux : même style sobre que le diaporama */
#tab-corrige aside, #tab-enonce aside { width: 3.6rem; }
#tab-corrige aside button, #tab-enonce aside button {
    display: block; width: 3rem; height: 3rem; padding: 0.5rem; margin-bottom: 0.4rem;
    border: 1.5px solid var(--dm-green); border-radius: 50%; background: transparent; color: var(--dm-green-dark); cursor: pointer;
}
#tab-corrige aside button:hover, #tab-enonce aside button:hover { background: var(--dm-green); color: #fff; }
#tab-corrige > div, #tab-enonce > div { width: calc(100% - 4rem); }
i.sprite[class*="sprite-iconfinder_pencil"], i.sprite-restart, i.sprite-newdatas {
    display: block; width: 100%; height: 100%; background: currentColor;
    -webkit-mask: var(--ico) center / contain no-repeat; mask: var(--ico) center / contain no-repeat;
}
i.sprite[class*="sprite-iconfinder_pencil"] {
    --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 20l1-4L16.5 4.5a2.1 2.1 0 0 1 3 3L8 19z'/%3E%3Cpath d='M14.5 6.5l3 3'/%3E%3C/svg%3E");
}
i.sprite-restart {
    --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12a8 8 0 1 0 2.5-5.8L4 8.5'/%3E%3Cpath d='M4 4v4.5h4.5'/%3E%3C/svg%3E");
}
i.sprite-newdatas {
    --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='4' width='16' height='16' rx='3'/%3E%3Cpath d='M8.5 8.5h.01M15.5 8.5h.01M12 12h.01M8.5 15.5h.01M15.5 15.5h.01'/%3E%3C/svg%3E");
}
#header-menu { background: var(--dm-green); padding: 0.4em 1em 0 0.5em; display: block; }
#tab-enonce ol > li::before, #tab-corrige ol > li::before { content: counter(pas); font-size: 0.6em; }
.alpha #tab-enonce ol > li::before, .alpha #tab-corrige ol > li::before { content: counter(pas, lower-greek); }
.MAJUSCULE #tab-enonce ol > li::before, .MAJUSCULE #tab-corrige ol > li::before { content: counter(pas, upper-alpha); }
