/* Jarvis Card, maquette : voix (écouter, messages vocaux, micro) et mode simple. */
.btn-ecouter { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: var(--r-pill); border: 2px solid var(--ecole-lite); background: var(--surface); color: var(--ecole-lite); font-weight: 700; font-size: 15px; }
.btn-ecouter .ic { width: 22px; height: 22px; }
.btn-ecouter.ecoute-on { background: var(--ecole); border-color: var(--ecole); color: var(--on-ecole); animation: pulse-ecoute 1.2s ease-in-out infinite; }
@keyframes pulse-ecoute { 50% { box-shadow: 0 0 0 8px color-mix(in srgb, var(--ecole) 22%, transparent); } }
.btn-ecouter.rond { width: 56px; height: 56px; padding: 0; justify-content: center; }
.btn-ecouter.rond span { display: none; }
.btn-ecouter.rond .ic { width: 28px; height: 28px; }

.vocal { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 16px; background: var(--surface-2); max-width: 340px; }
.vocal.moi { background: var(--ecole); color: var(--on-ecole); margin-left: auto; }
.vocal-btn { width: 48px; height: 48px; flex: none; border-radius: 50%; border: 0; display: grid; place-items: center; background: var(--ecole); color: var(--on-ecole); }
.vocal.moi .vocal-btn { background: var(--on-ecole); color: var(--ecole); }
.vocal-btn .ic { width: 24px; height: 24px; }
.vocal-corps { flex: 1; min-width: 0; display: grid; gap: 4px; }
.vocal-corps strong { font-size: 14px; }
.vocal-onde { position: relative; height: 26px; display: flex; align-items: center; gap: 2px; }
.vocal-onde i { flex: 1; border-radius: 2px; background: currentColor; opacity: .35; }
.vocal-prog { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: color-mix(in srgb, currentColor 18%, transparent); border-radius: 4px; pointer-events: none; }
.vocal-duree { font-size: 12.5px; opacity: .75; font-variant-numeric: tabular-nums; }

.enreg { display: grid; justify-items: center; text-align: center; }
.enreg-barres { display: flex; align-items: center; gap: 4px; height: 70px; margin: 18px 0 6px; }
.enreg-barres i { width: 6px; height: 60px; border-radius: 3px; background: var(--ecole-lite); transform: scaleY(.15); transition: transform 80ms linear; }
.enreg-temps { font-size: 26px; font-weight: 500; margin-bottom: 14px; }
.enreg-micro { width: 96px; height: 96px; border-radius: 50%; border: 0; display: grid; place-items: center; background: var(--ecole); color: var(--on-ecole); box-shadow: 0 10px 30px color-mix(in srgb, var(--ecole) 40%, transparent); }
.enreg-micro.on { background: var(--danger); color: #fff; animation: pulse-ecoute 1s ease-in-out infinite; }
.enreg-apres { width: 100%; margin-top: 6px; }
.enreg-apres .vocal { max-width: none; }

/* Boutons de l'en-tête */
.mapp-head .btn-mode[aria-pressed="true"] { background: rgb(255 255 255 / .22); }

/* Mode simple */
.simple { display: grid; gap: 14px; }
.simple-tete { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.simple-tete h1 { font-size: 28px; }
.simple-langues { display: flex; gap: 8px; }
.simple-langues button { flex: 1; min-height: 52px; border-radius: 16px; border: 2px solid var(--line-2); background: var(--surface); font-weight: 800; font-size: 17px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.simple-langues button[aria-pressed="true"] { border-color: var(--ecole); background: var(--ecole-soft); color: var(--ecole-lite); }
.simple-enfants { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.simple-enfants button { display: grid; justify-items: center; gap: 6px; padding: 12px 8px; border-radius: 20px; border: 3px solid transparent; background: var(--surface); font-weight: 800; font-size: 19px; }
.simple-enfants button img { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; }
.simple-enfants button[aria-pressed="true"] { border-color: var(--ecole); background: var(--ecole-soft); }
.tuiles-simples { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.tuile-simple { position: relative; display: grid; gap: 6px; justify-items: center; text-align: center; padding: 18px 10px 14px; border-radius: 24px; background: var(--surface); border: 3px solid var(--line); min-height: 196px; align-content: start; }
.tuile-simple .grande-ic { width: 66px; height: 66px; border-radius: 22px; display: grid; place-items: center; }
.tuile-simple .grande-ic .ic { width: 40px; height: 40px; }
.tuile-simple .gros { font-size: 36px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.tuile-simple .etiq { font-size: 16px; font-weight: 700; color: var(--ink-2); }
.tuile-simple.large { grid-column: 1 / -1; }
.tuile-simple.vert { border-color: var(--ok); } .tuile-simple.vert .grande-ic { background: var(--ok-soft); color: var(--ok); } .tuile-simple.vert .gros { color: var(--ok); }
.tuile-simple.orange { border-color: var(--warn); } .tuile-simple.orange .grande-ic { background: var(--warn-soft); color: var(--warn); } .tuile-simple.orange .gros { color: var(--warn); }
.tuile-simple.rouge { border-color: var(--danger); } .tuile-simple.rouge .grande-ic { background: var(--danger-soft); color: var(--danger); } .tuile-simple.rouge .gros { color: var(--danger); }
.tuile-simple.bleu .grande-ic { background: var(--ecole-soft); color: var(--ecole-lite); }
.tuile-simple .btn-ecouter { margin-top: 4px; }
.btn-geant { min-height: 64px; border-radius: 20px; font-size: 21px; font-weight: 800; gap: 12px; }
.btn-geant .ic { width: 30px; height: 30px; }
.btn-geant img { height: 30px; width: auto; border-radius: 6px; background: #fff; }
.micro-geant { display: flex; align-items: center; justify-content: center; gap: 14px; width: 100%; min-height: 76px; border-radius: 24px; border: 0; background: var(--ecole); color: var(--on-ecole); font-size: 21px; font-weight: 800; }
.micro-geant .ic { width: 36px; height: 36px; }
.vocaux { display: grid; gap: 10px; }
.vocaux .vocal { max-width: none; background: var(--surface); border: 1px solid var(--line); }
/* « Écouter cette page » : en haut de l'écran, dans le contenu (il défile avec la page) */
.btn-ecouter.ecouter-page { display: flex; width: fit-content; justify-self: end; margin: 0 0 12px auto; }
.btn-ecouter[hidden], .btn-ecouter.ecouter-page[hidden] { display: none; }

/* Bulles vocales dans une conversation */
.bulle-vocale { justify-self: start; display: grid; gap: 4px; max-width: 86%; }
.bulle-vocale.moi { justify-self: end; }
.bulle-vocale .vocal { max-width: 300px; }
.bulle-vocale .h { font-size: 11.5px; color: var(--muted); }
.bulle-vocale.moi .h { text-align: right; }


/* Nouveau message : écrire ou parler */
.ou-vocal { display: flex; align-items: center; gap: 12px; margin: 16px 0 12px; color: var(--muted); font-size: 14px; }
.ou-vocal::before, .ou-vocal::after { content: ""; flex: 1; height: 1px; background: var(--line); }
