﻿body {   
}
/* page jeu-test    */

.jeutest-quiz-background {
    min-height: 100dvh;
    width: 100%;
    background-size: cover;
    margin-top: 25px;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.jeutest-quiz-card {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0,0,0,0.3)
}

.jeutest-perso {
    color: black;
    text-align: left;
    font-family: 'Segoe UI', sans-serif; /*cursive;*/
    font-size: 1.2rem;
    font-weight: bold;
    margin: 0.2rem 0; /* réduit fortement l’espace vertical */
    line-height: 1.3; /* resserre les lignes */
}

.jeutest-reintialise-btn {
    background-color: gold;
    border-radius: 20px;
    border-color: black;
}

.jeutest-button-jeu {
    border-radius: 20px;
    padding: 10px 15px;
    font-family: 'Segoe UI', sans-serif; /*cursive, sans-serif;*/
    font-weight: 700;
    font-size: 1rem;
    margin-top: 10px;
    width: 100%;
    cursor: pointer;
    border: none;
    /* background-color: rgba(0,123,255,0.8); /* bleu semi-transparent */
    background-color: #00a000;
    color: #0a0a0a;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    .jeutest-button-jeu:hover {
        background-color: rgba(0,123,255,1);
        transform: translateY(-2px);
        box-shadow: 0 4px 6px rgba(0,0,0,0.3);
    }

.jeutest-toggle-title {
    user-select: none;
}

.jeutest-hint {
    display: block; /* passe à la ligne */
    margin-top: 8px; /* espace avec la question */
    font-size: 0.75em; /* plus petit */
    font-style: italic;
    font-weight: normal; /* évite le gras hérité du h3 */
    opacity: 0.85; /* un peu plus discret */
   
}
.jeutest-clickable-card {
    display: flex;
    justify-content: center;/*space-between;*/
    padding: 12px 18px;
    border-radius: 14px;
    font-weight: bold;
    color: black;
    transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
    text-shadow:4px 3px 0px #fff
}

.jeutest-clickable-card-btn {
    display: flex;
    justify-content: center; /*space-between;*/
    padding: 12px 18px;
    /*padding-right: 30px;*/
    border-radius: 40px;
    cursor: pointer;
    font-weight: bold;
    color: black;
    background-color: #00a000;
    transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}
.jeutest-clickable-card-btn:hover,
.jeutest-clickable-card-btn:focus-visible {
    filter: brightness(1.2); /* surbrillance plus claire */
    box-shadow: 0 6px 18px rgba(0,0,0,0.25);
    transform: translateY(-2px);
}

.jeutest-clickable-card-btn:active {
    filter: brightness(1.1);
    transform: scale(0.97);
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.jeutestjeu-test {
    font-family: 'Segoe UI', sans-serif; /*cursive, sans-serif;*/
    max-width: 800px;
    margin: auto;
    /*padding: 1rem;*/
    /*border-radius: 20px;*/
   /* font-weight: 600;*/
}
/*concerne l'affichage du domaine */
.jeutest-domaine-tag {
    display: inline-block;
    padding: 0.15em 0.6em;
    margin: 0 0.3em;
    font-weight: 600;
    font-size: 0.95em;
    /*color: #0078d8;*/ /* bleu profond */
    background-color: #e6f0ff; /* bleu très doux */
    border-radius: 12px;
    border: 1px solid rgba(11, 61, 145, 0.3);
    white-space: nowrap;
}
/* Définition Domaine*/
.jeutest-definition {
    font-family: 'Segoe UI', sans-serif; /*cursive,sans-serif;*/
    font-size: 1.05rem;
   /* margin-bottom: 2rem;*/
    background-color: #C8AD7F; /*#0097ff;*/
    /*border: 1px solid rgba(0, 160, 0, 0.2);*/
    border-radius: 12px;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}
.jeutest-definition-text {
    font-family: 'Segoe UI', sans-serif; /*Arial,sans-serif;*/
    font-size: 1.05rem;
    margin-bottom: 0.2rem;
    text-indent: 20px;
    /*border: 2px solid #4CAF50;*/
   /* border-radius: 12px;*/
    font-weight: bold;
}
/* Les propriétés de la démonstration : → mis en valeur */
.jeutest-retainer-title {
    font-weight: 700;
    background: rgba(30, 79, 163, 0.12);
    padding: 2px 6px;
    border-radius: 6px;
}

.jeutest-retainer-content {
    font-weight: 500;
    color: #000;
}

/* Conteneur */
.jeutest-fragment-selector {    
    text-align: center;
    margin-bottom: 1.5rem;
}
/**//* Label */
.jeutest-fragment-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    font-size: 1.1em;
    color: #272727;
}

/* Select tactile */
.jeutest-fragment-select {
    min-width: 220px;
    padding: 12px 18px; /* 👈 zone doigt */
    font-size: 1.1em;
    font-weight: bold;
    border-radius: 30px;
    background-color: #00a000; /* vert principal */
    color: #000;
    border: 2px solid #008000; /*  2px solid #4a5a70;*/
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;

    /* flèche personnalisée */
     background-image: url("data:image/svg+xml;utf8,<svg fill='black' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
    
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 18px;

    transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

    /* Survol souris */
    .jeutest-fragment-select:hover {
        background-color: #00c000; /* vert plus clair */
        border-color: #0078ef;
    }

    /* Focus / tactile */
    .jeutest-fragment-select:focus {
        outline: none;
        /*box-shadow: 0 0 0 3px rgba(120, 170, 255, 0.4);*/
        box-shadow: 0 0 0 3px rgba(120, 170, 255, 0.4); /*bleu clair*/
    }

    /* Option */
    .jeutest-fragment-select option {
        font-weight: bold;
        color: #000;
    }

.jeutest-result-box {
    font-family: 'Segoe UI', sans-serif;
    font-size: 1.2rem;
    padding: 1rem 1.5rem;
    margin: 1.2rem 0;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
    color: black;
}

    .jeutest-result-box.success {
        background-color: #e6f4ea;
        color: black;
    }

    .jeutest-result-box.error {
        background-color: #fdecea;
        color: #842029;
    }







@media (max-width: 768px) {
    .jeutest-clickable-card {
        font-size: 1.2rem;
        padding: 10px;
        text-shadow: 1px 1px 0px #fff;
    }

    .jeutest-perso {
        font-size: 1rem;
    }

    .retour-btn {
        top: 10px;
        right: 10px;
    }

    h1 {
        font-size: 1.6rem;
    }

    h2 {
        font-size: 1.2rem;
    }

    h3 {
        font-size: 1rem;
    }
}