/* Rebondir — académie. Styles légers et autonomes ; le thème Rebondir les affinera. */
:root { --rb-vert: #0f2a24; --rb-or: #e8a33d; --rb-texte: #1d1d1d; --rb-doux: #5d6b66; --rb-bord: #d9d4ca; --rb-fond: #f7f4ee; --rb-ok: #1e6b46; --rb-erreur: #b3261e; }
.rb-fil { font-size: .9rem; color: var(--rb-doux); margin: 0 0 16px; }
.rb-fil a { color: inherit; }
.rb-carte { padding: 18px; border: 1px solid var(--rb-bord); border-radius: 12px; background: #fff; margin: 0 0 20px; }
.rb-alerte { padding: 12px 14px; border-radius: 8px; margin: 0 0 16px; }
.rb-alerte-ok { background: #e7f4ec; color: var(--rb-ok); }
.rb-alerte-info { background: #fdf4e3; color: #7a4f06; }
.rb-alerte-erreur { background: #fdecea; color: var(--rb-erreur); }
.rb-bouton { display: inline-block; min-height: 48px; padding: 12px 22px; border: 0; border-radius: 999px; background: var(--rb-or); color: #1d1d1d !important; font-weight: 700; text-decoration: none !important; cursor: pointer; font-size: 1rem; }
.rb-bouton-second { background: var(--rb-vert); color: #fff !important; }
.rb-bouton-leger { background: transparent; border: 2px solid var(--rb-vert); color: var(--rb-vert) !important; min-height: 44px; padding: 8px 18px; }
.rb-discret { color: var(--rb-doux); font-size: .92rem; }
.rb-bas { margin-top: 10px; font-size: .95rem; }
.rb-barre { display: block; height: 10px; background: #ece7dd; border-radius: 999px; overflow: hidden; }
.rb-barre > span { display: block; height: 100%; background: var(--rb-or); }
.rb-etapes { list-style: none; padding: 0; margin: 0; counter-reset: none; }
.rb-etape { border: 1px solid var(--rb-bord); border-radius: 12px; padding: 14px 16px; margin: 0 0 12px; background: #fff; }
.rb-etape-tete { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-weight: 700; }
.rb-etape-tete a { color: var(--rb-texte); text-decoration: none; flex: 1 1 auto; }
.rb-pastille { font-size: .78rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: #ece7dd; color: var(--rb-texte); white-space: nowrap; }
.rb-pastille.rb-fait { background: #e7f4ec; color: var(--rb-ok); }
.rb-pastille.rb-payant, .rb-pastille.rb-verrou { background: #fdf4e3; color: #7a4f06; }
.rb-lecons { list-style: none; margin: 10px 0 0; padding: 0; }
.rb-lecons li { padding: 6px 0; border-top: 1px solid #f0ece4; }
.rb-lecons a { color: var(--rb-texte); }
.rb-lecons .rb-fait a { color: var(--rb-doux); }
.rb-icone { display: inline-block; width: 1.4em; }
.rb-activite { border-left: 4px solid var(--rb-bord); padding: 4px 0 4px 16px; margin: 28px 0; }
.rb-activite.rb-act-faite { border-left-color: var(--rb-ok); }
.rb-act-titre { font-size: 1.15rem; margin: 0 0 10px; display: flex; gap: 10px; align-items: center; }
.rb-act-num { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: var(--rb-vert); color: #fff; font-size: .85rem; flex: 0 0 auto; }
.rb-coche { color: var(--rb-ok); }
.rb-video { position: relative; padding-top: 56.25%; border-radius: 10px; overflow: hidden; background: #000; }
.rb-video iframe, .rb-video video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.rb-audio, .rb-video-fichier { width: 100%; }
.rb-act-fin { margin-top: 12px; }
.rb-question { border: 1px solid var(--rb-bord); border-radius: 10px; padding: 12px 14px; margin: 0 0 12px; }
.rb-question legend { font-weight: 700; padding: 0 6px; }
.rb-option { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; min-height: 32px; }
.rb-option input { width: 20px; height: 20px; margin-top: 2px; flex: 0 0 auto; }
.rb-score { font-size: 1.05rem; }
.rb-corrige li { margin: 6px 0; }
.rb-juste { color: var(--rb-ok); }
.rb-faux { color: var(--rb-erreur); }
.rb-resultat { display: grid; grid-template-columns: minmax(0, 1fr) 40% 3.5em; gap: 8px; align-items: center; margin: 6px 0; font-size: .95rem; }
.rb-resultat-pc { text-align: right; }
.rb-zone { width: 100%; box-sizing: border-box; padding: 10px 12px; font-size: 16px; border: 1px solid var(--rb-bord); border-radius: 8px; margin: 0 0 10px; font-family: inherit; }
.rb-consigne { background: var(--rb-fond); border-radius: 8px; padding: 10px 14px; margin: 0 0 12px; }
.rb-correction { background: #fff; border-left: 4px solid var(--rb-or, #FF5A0A); border-radius: 8px; padding: 10px 14px; }
.rb-fin { margin-top: 32px; padding-top: 16px; border-top: 1px solid var(--rb-bord); }
.rb-termine { color: var(--rb-ok); font-weight: 700; }
.rb-nav-lecons { display: flex; justify-content: space-between; gap: 12px; margin-top: 18px; flex-wrap: wrap; }
.rb-nav-lecons a { color: var(--rb-vert); font-weight: 600; }
.rb-suivante { margin-left: auto; text-align: right; }
.rb-verrou { background: var(--rb-fond); }
.rb-bientot { font-weight: 600; color: #7a4f06; }
.rb-mes-parcours { margin: 0 0 16px; }
/* Livre numérique */
.rb-ebook { position: relative; border: 1px solid var(--rb-bord); border-radius: 12px; background: #fffdf8; padding: 18px 18px 12px; outline: none; line-height: 1.7; }
.rb-ebook:fullscreen { overflow: auto; padding: 32px max(24px, 8vw); }
.rb-ebook-barre { display: flex; gap: 6px; justify-content: flex-end; margin: 0 0 8px; }
.rb-ebook-barre button { min-width: 40px; min-height: 36px; border: 1px solid var(--rb-bord); border-radius: 8px; background: #fff; cursor: pointer; font-size: .9rem; }
.rb-ebook-page { min-height: 50vh; }
.rb-ebook-page img { max-width: 100%; height: auto; border-radius: 6px; }
.rb-ebook-page figure { margin: 1em 0; }
.rb-ebook-nav { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; }
.rb-ebook-nav button { min-height: 44px; padding: 8px 16px; border: 2px solid var(--rb-vert); border-radius: 999px; background: #fff; color: var(--rb-vert); font-weight: 700; cursor: pointer; }
.rb-ebook-nav button:disabled { opacity: .35; cursor: default; }
.rb-ebook-num { color: var(--rb-doux); font-size: .95rem; }
.rb-ebook-avance { margin-top: 10px; height: 6px; }
/* Note vocale */
.rb-enregistreur [hidden] { display: none !important; }
.rb-enregistreur { margin: 8px 0 0; }
.rb-enr-commandes { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.rb-enr-temps { font-variant-numeric: tabular-nums; font-weight: 700; }
.rb-enr-arreter { background: var(--rb-erreur, #b42318); border-color: var(--rb-erreur, #b42318); }
.rb-enr-ecoute audio, .rb-note-envoyee audio, .rb-correction + details audio { width: 100%; margin: 8px 0; }
.rb-enr-fichier input[type=file] { display: block; margin: 8px 0; max-width: 100%; }
.rb-enr-erreur { color: var(--rb-erreur, #b42318); }
/* Discussion */
.rb-forum-ecrire { margin: 0 0 16px; }
.rb-forum, .rb-forum-reponses { list-style: none; margin: 0; padding: 0; }
.rb-forum-fil { border-top: 1px solid var(--rb-bord); padding: 12px 0; }
.rb-forum-reponses { margin: 8px 0 0 18px; padding-left: 12px; border-left: 3px solid var(--rb-bord); }
.rb-forum-reponses li { padding: 6px 0; }
.rb-forum-entete { margin: 0 0 4px; font-size: .95rem; }
.rb-forum-texte p { margin: 0 0 .5em; overflow-wrap: anywhere; }
.rb-forum-masque { opacity: .5; }
.rb-forum-equipe { border-left: 3px solid var(--rb-or, #FF5A0A); padding-left: 10px; }
.rb-badge-equipe { display: inline-block; padding: 1px 8px; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; background: var(--rb-or, #FF5A0A); color: #111; }
.rb-forum-actions { display: flex; gap: 14px; }
.rb-forum-actions form { margin: 0; }
.rb-lien { background: none; border: 0; padding: 0; color: var(--rb-doux); font-size: .85rem; text-decoration: underline; cursor: pointer; }
.rb-forum-repondre summary { cursor: pointer; color: var(--rb-vert); font-weight: 600; font-size: .92rem; margin-top: 6px; }
.rb-forum-repondre form { margin-top: 8px; }
.rb-forum-pages { display: flex; justify-content: space-between; margin-top: 12px; }
