/* ═══ Le cahier des charges parlé (20/11/2026) — le rectangle en bas à gauche, très transparent ═══ */
.dictee { position: fixed; left: 16px; bottom: 16px; z-index: 120; width: min(400px, calc(100vw - 32px)); padding: 10px 14px 12px; border-radius: 16px;
  background: rgba(10, 10, 12, .22); border: 1px solid rgba(255, 255, 255, .12); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  color: #fff; text-shadow: 0 1px 3px rgba(0, 0, 0, .75); pointer-events: none; font-size: 14px; line-height: 1.45; }
.dictee .dictee-bouton { pointer-events: auto; }
.dictee-tete { display: flex; align-items: center; gap: 10px; font-size: 10.5px; letter-spacing: .04em; opacity: .85; margin-bottom: 4px; }
.dictee-rec { font-variant-numeric: tabular-nums; font-weight: 600; }
.dictee.en-cours .dictee-rec { color: #ff5a5f; animation: dictee-clign 1.4s ease-in-out infinite; }
@keyframes dictee-clign { 50% { opacity: .35; } }
.dictee-aide { margin-left: auto; opacity: .8; }
/* le texte reste en bas ; ce qui monte s'efface peu à peu */
.dictee-texte { max-height: 12em; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, rgba(0, 0, 0, .35) 2.2em, #000 5em); mask-image: linear-gradient(to bottom, transparent 0, rgba(0, 0, 0, .35) 2.2em, #000 5em); }
.dictee-flux { margin: 0; }
.dictee-provisoire { opacity: .7; font-style: italic; }
.dictee-bouton { border: 0; border-radius: 999px; background: #e5484d; color: #fff; font: inherit; font-weight: 600; padding: 8px 14px; cursor: pointer; text-shadow: none; }
/* « Vos modifications ont été apportées » : la notification en haut à droite */
.notif-cahier { position: fixed; top: 72px; right: 16px; z-index: 130; width: min(360px, calc(100vw - 32px)); background: #f2f2f2; color: #000; border-radius: 18px; padding: 14px 16px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .45); display: flex; flex-direction: column; gap: 6px; animation: notif-entre .35s ease-out; }
.notif-cahier.echec { background: #fff1f1; }
.notif-cahier b { font-size: 14.5px; }
.notif-cahier p { margin: 0; font-size: 13px; line-height: 1.45; color: #333; }
.notif-n { font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: #666; }
.notif-actions { display: flex; gap: 8px; margin-top: 4px; }
.notif-cahier .bouton { color: #000; border-color: rgba(0, 0, 0, .2); background: transparent; }
@keyframes notif-entre { from { transform: translateY(-12px); opacity: 0; } }
.notif-cahier .pilule-blanche { background: #000; color: #fff; padding: 9px 18px; font-size: 13px; }

/* 20/11/2026 (jules) : la zone de texte monte plus haut (12 lignes), un bouton « Fond » / « Sans fond », et le mode écrit */
.dictee { width: min(460px, calc(100vw - 32px)); }
.dictee-fond { pointer-events: auto; border: 1px solid rgba(255, 255, 255, .3); border-radius: 999px; background: rgba(0, 0, 0, .25); color: #fff;
  font: inherit; font-size: 10.5px; padding: 2px 9px; cursor: pointer; text-shadow: none; }
.dictee-fond:hover { background: rgba(255, 255, 255, .15); }
.dictee.avec-fond { background: rgba(8, 8, 10, .9); border-color: rgba(255, 255, 255, .18); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.dictee.avec-fond .dictee-texte { -webkit-mask-image: none; mask-image: none; overflow-y: auto; }
.dictee.ecrit { pointer-events: auto; }
.dictee-saisie { display: block; width: 100%; margin-top: 8px; min-height: 2.4em; max-height: 120px; resize: none; box-sizing: border-box;
  border: 1px solid rgba(255, 255, 255, .28); border-radius: 12px; background: rgba(0, 0, 0, .35); color: #fff; font: inherit; font-size: 14px;
  line-height: 1.45; padding: 8px 10px; outline: none; text-shadow: none; }
.dictee-saisie:focus { border-color: rgba(255, 255, 255, .6); }
.dictee-saisie::placeholder { color: rgba(255, 255, 255, .55); }
.dictee.avec-fond .dictee-saisie { background: rgba(255, 255, 255, .06); }
.dictee-fond { white-space: nowrap; flex: none; }
.dictee-aide { min-width: 0; font-size: 10px; }
