/* =====================================================================
   BREVET.CSS — page « On révise pour le brevet ! » (site de 3e)
   Ton orangé, proche de l'ambre des Utilitaires.
   ===================================================================== */

.bv-regles {
    background: linear-gradient(180deg, #fff7ed, #ffffff);
    border: 1px solid #fed7aa;
    border-top: 5px solid #f97316;
    border-radius: 12px;
    padding: 16px 20px;
    margin: 10px 0 18px;
}
.bv-regles h3 { margin: 0 0 8px; color: #c2410c; }
.bv-regles ul { margin: 6px 0; padding-left: 1.2em; }
.bv-regles li { margin: 4px 0; }

.bv-temps {
    display: flex;
    align-items: stretch;
    gap: 0;
    margin: 14px auto 6px;
    max-width: 520px;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid #f97316;
    font-weight: 700;
    text-align: center;
}
.bv-temps div { flex: 1; padding: 10px 6px; line-height: 1.3; }
.bv-temps div:first-child { background: #ffedd5; color: #9a3412; border-right: 2px dashed #f97316; }
.bv-temps div:last-child { background: #f1f5f9; color: #334155; }
.bv-temps small { display: block; font-weight: 500; font-size: 0.8em; }

/* choix de la partie */
.bv-parties {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
    margin: 14px 0;
}
.bv-partie {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    text-align: left;
    font: inherit;
    padding: 12px 14px;
    background: #fff7ed;
    border: 2px solid #fed7aa;
    border-radius: 12px;
    cursor: pointer;
    color: #431407;
    transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}
.bv-partie:hover { transform: translateY(-2px); box-shadow: 0 6px 14px rgba(0, 0, 0, 0.1); background: #ffedd5; }
.bv-partie.actif { background: #ffedd5; border-color: #f97316; box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.2); }
.bv-icone { font-size: 1.6em; line-height: 1; }
.bv-nom { font-weight: 700; font-size: 0.95em; line-height: 1.3; }
.bv-barre { margin-top: auto; display: block; width: 100%; height: 6px; background: #fde2c8; border-radius: 3px; overflow: hidden; }
.bv-barre span { display: block; height: 100%; width: 0; background: #f97316; transition: width 0.4s; }
.bv-score { font-size: 0.8em; color: #9a3412; }

/* carte de question */
.bv-carte {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-left: 6px solid #f97316;
    border-radius: 12px;
    padding: 16px 18px;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
    scroll-margin-top: 80px;
}
.bv-message { background: #ecfdf5; color: #065f46; border-radius: 8px; padding: 8px 12px; font-weight: 600; }
.bv-entete { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 10px; font-size: 0.85em; }
.bv-type { padding: 2px 10px; border-radius: 10px; font-weight: 700; color: #fff; background: #f97316; }
.bv-type.bv-vf { background: #0ea5e9; }
.bv-type.bv-qcm { background: #8b5cf6; }
.bv-type.bv-calcul { background: #10b981; }
.bv-deja { color: #15803d; font-weight: 600; }
.bv-cours { margin-left: auto; }
.bv-question { font-size: 1.05em; font-weight: 600; line-height: 1.5; margin: 6px 0 10px; color: #0f172a; }

.bv-choix { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.bv-qcm { flex-direction: column; }
.bv-choix button, .bv-calcul button, .bv-pied button {
    font: inherit;
    padding: 8px 16px;
    border-radius: 8px;
    border: 2px solid #cbd5e1;
    background: #f8fafc;
    cursor: pointer;
    text-align: left;
    color: #0f172a;
}
.bv-choix button:hover:not(:disabled) { border-color: #f97316; background: #fff7ed; }
.bv-choix button.juste, .bv-calcul input.juste { border-color: #16a34a; background: #f0fdf4; }
.bv-choix button.faux, .bv-calcul input.faux { border-color: #dc2626; background: #fef2f2; }
.bv-choix button:disabled { cursor: default; opacity: 1; }

.bv-calcul { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 10px 0; }
.bv-calcul input {
    font: inherit; width: 9em; padding: 7px 10px; border: 2px solid #cbd5e1; border-radius: 8px; text-align: center;
}
.bv-unite { font-weight: 600; color: #334155; }
.bv-calcul .bv-verif { background: #f97316; border-color: #f97316; color: #fff; font-weight: 700; }

.bv-verdict { font-weight: 700; margin: 8px 0 4px; }
.bv-verdict.ok { color: #15803d; }
.bv-verdict.ko { color: #b91c1c; }
.bv-corr { background: #f8fafc; border-radius: 8px; padding: 8px 12px; margin: 8px 0; }
.bv-auto { font-weight: 600; margin: 8px 0 0; }
.bv-oui { border-color: #16a34a !important; }
.bv-non { border-color: #dc2626 !important; }

.bv-pied { display: flex; justify-content: flex-end; margin-top: 12px; }
.bv-pied button { font-weight: 600; color: #64748b; }
.bv-pied button.bv-pret { background: #f97316; border-color: #f97316; color: #fff; }

.bv-outils { text-align: center; margin-top: 14px; }
.bv-outils button { font: inherit; font-size: 0.85em; background: none; border: none; color: #64748b; text-decoration: underline; cursor: pointer; }

/* compteur de la série */
.bv-compteur { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; font-size: 0.95em; color: #9a3412; }
.bv-compteur > span:first-child { white-space: nowrap; }
.bv-compteur .bv-barre { flex: 1; margin-top: 0; }

/* bilan */
.bv-bilan-titre { margin: 0 0 12px; color: #c2410c; }
.bv-bilan-chiffres { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; text-align: center; }
.bv-bilan-chiffres div { border-radius: 10px; padding: 8px 4px; font-size: 0.85em; line-height: 1.2; }
.bv-bilan-chiffres b { display: block; font-size: 1.8em; }
.bv-bilan-chiffres .ok { background: #f0fdf4; color: #15803d; }
.bv-bilan-chiffres .ko { background: #fef2f2; color: #b91c1c; }
.bv-bilan-chiffres .passe { background: #f1f5f9; color: #475569; }
.bv-bilan-chiffres .note { background: #ffedd5; color: #9a3412; }
.bv-bilan-mot { font-weight: 700; font-size: 1.05em; margin: 14px 0 8px; }
.bv-bilan-liste li { margin: 6px 0; }
.bv-bilan-liste details { display: inline-block; margin-left: 6px; font-size: 0.9em; }
.bv-bilan-liste details summary { cursor: pointer; color: #64748b; }
.bv-bilan-liste details ul { margin: 4px 0; padding-left: 1.1em; color: #334155; }
.bv-bilan-boutons { flex-direction: column; }
.bv-bilan-boutons button { font-weight: 600; }
.bv-bilan-boutons .bv-refaire { background: #f97316; border-color: #f97316; color: #fff; }
@media (max-width: 480px) { .bv-bilan-chiffres { grid-template-columns: repeat(2, 1fr); } }

/* matériel */
.bv-materiel { display: flex; align-items: center; gap: 12px; background: #f8fafc; border: 2px dashed #94a3b8;
    border-radius: 10px; padding: 10px 14px; margin: 12px 0; }
.bv-materiel span:first-child { font-size: 1.8em; line-height: 1; }
.bv-bilan-boutons .bv-refaire:hover:not(:disabled) { background: #ea580c; border-color: #ea580c; color: #fff; }
.bv-bilan-liste { list-style: none; padding-left: 0; }
.bv-bilan-liste > li { padding: 6px 10px; background: #f8fafc; border-radius: 8px; }

/* consignes, textes à trous */
.bv-consigne { font-size: 0.92em; color: #475569; background: #f8fafc; border-left: 3px solid #94a3b8; padding: 6px 10px; border-radius: 4px; margin: 8px 0; }
.bv-type.bv-trous { background: #ec4899; }
.bv-texte { line-height: 2.2; margin: 6px 0; }
.bv-trou { font: inherit; font-size: 0.95em; padding: 3px 6px; border: 2px solid #cbd5e1; border-radius: 6px; background: #fff; max-width: 100%; }
.bv-trou.juste { border-color: #16a34a; background: #f0fdf4; }
.bv-trou.faux { border-color: #dc2626; background: #fef2f2; }
.bv-trou:disabled { color: #0f172a; opacity: 1; }
.bv-type.bv-graphe { background: #0d9488; }
.bv-figure { background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; padding: 6px; margin: 8px 0; }
