﻿/* DevisVox — Vocal — Mobile */
@keyframes ripple{0%{transform:scale(.82);opacity:.85}100%{transform:scale(1.12);opacity:0}}
@keyframes pulseGlow{0%,100%{box-shadow:0 0 0 0 rgba(220,38,38,.4),0 12px 38px rgba(220,38,38,.5)}50%{box-shadow:0 0 0 16px rgba(220,38,38,0),0 12px 38px rgba(220,38,38,.5)}}
@keyframes waveBar{0%,100%{transform:scaleY(.35)}50%{transform:scaleY(1)}}
@keyframes blink{0%,100%{opacity:1}50%{opacity:.25}}
/* ── brand = alias HTML pour .v-hdr (vocal page header) ── */
.brand,.v-hdr{display:flex;align-items:center;justify-content:space-between;padding:12px 20px 8px;flex-shrink:0;background:var(--card)}
.v-logo span:first-child{font-size:22px;font-weight:900;color:var(--text);letter-spacing:-.5px}
.v-logo span:last-child{font-size:22px;font-weight:900;color:var(--accent);letter-spacing:-.5px}
.v-bell,.bell-btn{width:38px;height:38px;border-radius:10px;background:transparent;border:none;display:flex;align-items:center;justify-content:center;position:relative;color:var(--text2);cursor:pointer;min-height:unset;min-width:unset}
.v-bell svg{width:20px;height:20px;stroke:currentColor;stroke-width:1.8;fill:none}
.v-bell-dot{position:absolute;top:8px;right:8px;width:7px;height:7px;border-radius:50%;background:var(--er);border:2px solid var(--bg)}
.v-mic-zone{display:flex;flex-direction:column;align-items:center;justify-content:center;width:100%;padding:4px 0 0;flex-shrink:0;align-self:stretch}
.v-hint{font-size:17px;font-weight:600;color:var(--text);text-align:center;line-height:1.45;margin-bottom:16px}
.v-pulse-wrap{position:relative;width:220px;height:220px;display:flex;align-items:center;justify-content:center;margin-bottom:10px}
.v-glow{position:absolute;width:180px;height:180px;border-radius:50%;background:radial-gradient(circle,rgba(255,107,0,.18) 0%,transparent 70%)}
.v-ring{position:absolute;border-radius:50%;border:1.5px solid rgba(255,107,0,.22);animation:ripple 3.2s ease-out infinite}
.v-ring:nth-child(2){width:136px;height:136px;animation-delay:0s}
.v-ring:nth-child(3){width:166px;height:166px;animation-delay:.85s}
.v-ring:nth-child(4){width:196px;height:196px;animation-delay:1.7s}
.v-ring:nth-child(5){width:218px;height:218px;animation-delay:2.55s}
.v-ring.fast{animation-duration:.9s;border-color:rgba(255,107,0,.42)}
#vocal-mic-btn{width:118px;height:118px;border-radius:50%;border:5px solid rgba(255,255,255,.85);background:radial-gradient(circle at 36% 28%,#FF9944 0%,var(--accent) 50%,var(--accent-d) 100%);display:flex;align-items:center;justify-content:center;box-shadow:0 0 0 5px rgba(255,107,0,.14),0 12px 40px rgba(255,107,0,.52),inset 0 3px 8px rgba(255,255,255,.28);z-index:2;cursor:pointer;transition:transform var(--tr),box-shadow var(--tr)}
#vocal-mic-btn:active{transform:scale(.95)}
#vocal-mic-btn.rec{background:radial-gradient(circle at 36% 28%,#F87171,var(--er) 50%,#B91C1C 100%);animation:pulseGlow 1.5s ease-in-out infinite}
#vocal-mic-btn svg{width:46px;height:46px}
.v-ico-mic{display:block}
.v-ico-pause{display:none}
#vocal-mic-btn.rec .v-ico-mic{display:none}
#vocal-mic-btn.rec .v-ico-pause{display:block}
.v-tr{flex:1;display:flex;flex-direction:column;padding:0 16px;min-height:0;overflow:visible}
.v-tr::-webkit-scrollbar{display:none}
.v-tr-hdr{display:flex;align-items:center;justify-content:space-between;margin-bottom:7px;flex-shrink:0}
.v-tr-lbl{font-size:12px;font-weight:600;color:var(--text3);letter-spacing:.01em}
#vocal-edit-btn{width:30px;height:30px;border-radius:8px;background:rgba(16,185,129,.08);border:1.5px solid rgba(16,185,129,.25);color:var(--ok);cursor:pointer;display:flex;align-items:center;justify-content:center;transition:var(--tr)}
#vocal-edit-btn:active{background:rgba(16,185,129,.2)}
#vocal-tr-box{background:var(--b2);border-radius:var(--r);padding:14px;font-size:14px;color:var(--text3);font-style:italic;line-height:1.65;flex:1;overflow-y:auto;transition:all var(--tr);min-height:80px}
#vocal-tr-box::-webkit-scrollbar{display:none}
#vocal-tr-box.live{color:var(--text);font-style:normal;background:var(--b)}
#vocal-tr-box.editing{background:var(--card);border:1.5px solid var(--ok);box-shadow:0 0 0 3px rgba(16,185,129,.1);cursor:text;font-style:normal;color:var(--text)}
#vocal-mobile-page #vocal-tr-box.error-state{display:flex;align-items:center;justify-content:flex-start;overflow-y:hidden;min-height:auto;padding:8px 0}
#vocal-mobile-page #vocal-tr-box.error-state ~ .tr-actions{margin-top:8px}
.v-wave{display:flex;align-items:center;gap:3px;height:24px}
.v-wave span{display:block;width:3px;border-radius:2px;background:var(--accent);animation:waveBar .7s ease-in-out infinite}
.v-wave span:nth-child(1){height:6px;animation-delay:0s}
.v-wave span:nth-child(2){height:14px;animation-delay:.12s}
.v-wave span:nth-child(3){height:9px;animation-delay:.24s}
.v-wave span:nth-child(4){height:16px;animation-delay:.18s}
.v-wave span:nth-child(5){height:7px;animation-delay:.06s}
.v-wave span:nth-child(6){height:12px;animation-delay:.3s}
.v-wave span:nth-child(7){height:5px;animation-delay:.12s}
.v-acts{display:flex;flex-direction:column;gap:8px;padding:8px 16px 14px;flex-shrink:0}
#vocal-finish-btn,#vocal-cancel-btn,#vocal-next-btn,#vocal-newrec-btn{display:none}
#vocal-manual-btn{display:flex;align-items:center;justify-content:center;gap:6px;height:44px;border-radius:var(--r);background:transparent;color:var(--text3);font-size:14px;font-weight:600;cursor:pointer;font-family:inherit;border:none}
#vocal-manual-btn:active{color:var(--text)}
.dvas-lbl{font-size:10px;font-weight:700;color:var(--text3);text-transform:uppercase;letter-spacing:.06em;margin-bottom:8px}
.dvas-steps{display:flex;align-items:center;overflow-x:auto;scrollbar-width:none}
.dvas-steps::-webkit-scrollbar{display:none}
.dvas-step{display:flex;flex-direction:column;align-items:center;gap:3px;flex:1;min-width:48px}
.dvas-ico{width:28px;height:28px;border-radius:50%;background:var(--b);display:flex;align-items:center;justify-content:center;font-size:13px;position:relative;z-index:1;transition:var(--tr)}
.dvas-step.done .dvas-ico{background:var(--ok-bg)}
.dvas-step.active .dvas-ico{background:var(--accent-tint);animation:blink 1.2s ease-in-out infinite}
.dvas-lbl2{font-size:9px;font-weight:600;color:var(--text3);text-align:center;line-height:1.2}
.dvas-step.done .dvas-lbl2{color:var(--ok)}
.dvas-step.active .dvas-lbl2{color:var(--accent)}
.dvas-conn{height:2px;flex:1;background:var(--b);margin-top:-14px;min-width:8px;max-width:18px}
.dvas-conn.done{background:var(--ok)}
#vocal-mobile-page{position:fixed;inset:0;z-index:500;overflow-y:auto;display:flex;flex-direction:column;background:var(--bg)}
#p-home{height:calc(100dvh - 56px);max-height:calc(100dvh - 56px);overflow:hidden;display:none;flex-direction:column}
#p-home.active{display:flex}

/* ═══════════════════════════════════════════════════════
   VOCAL V2 — composants scopés sous #vocal-mobile-page
   (anciennement css/vocal-mobile.css)
   ═══════════════════════════════════════════════════════ */

#vocal-mobile-page {
    --v-accent:  #FF6B00;
    --v-success: #10B981;
    --v-warning: #F59E0B;
    --v-text:    #0F172A;
    --v-text2:   #475569;
    --v-text3:   #94A3B8;
    --v-border:  #E2E8F0;
    --v-border2: #CBD5E1;
    --v-bg:      #F9FAFB;
    --v-r-sm:    14px;
    --v-r-md:    18px;
    --v-tr:      .18s ease;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--v-text);
}
#vocal-mobile-page *,
#vocal-mobile-page *::before,
#vocal-mobile-page *::after { box-sizing: border-box; margin: 0; padding: 0; }

#vocal-mobile-page .page { display: flex; flex-direction: column; height: 100%; overflow: hidden; }

#vocal-mobile-page .brand { padding: 12px 24px 2px; display: flex; align-items: center; justify-content: space-between; flex-shrink: 0; background: var(--bg); }
#vocal-mobile-page .brand-info { margin-left: 0; }
#vocal-mobile-page .brand-logo-img { height: 70px; width: auto; display: block; }
#vocal-mobile-page .brand-name { font-family: 'Helvetica Neue', Arial, sans-serif; font-size: 28px; font-weight: 900; letter-spacing: -3px; line-height: 1; }
#vocal-mobile-page .brand-devis { color: var(--text); }
#vocal-mobile-page .brand-vox   { color: var(--accent); }
#vocal-mobile-page .brand-vox,
#vocal-mobile-page .vc-brand-vox,
.vc-brand-vox { color: var(--accent) !important; }
.vc-brand-devis { color: #000000; }
#vocal-mobile-page .brand-tag   { font-family: 'Helvetica Neue', Arial, sans-serif; font-size: 10px; font-weight: 500; color: var(--v-text3); margin-top: 4px; letter-spacing: .31em; text-transform: uppercase; }
#vocal-mobile-page .brand-tagline { font-size: 12px; font-weight: 500; color: var(--v-text3); margin: 2px 0 0 10px; letter-spacing: .01em; }

#vocal-mobile-page .bell-btn { position: relative; background: none; border: none; cursor: pointer; padding: 6px; border-radius: 50%; color: var(--v-text2); flex-shrink: 0; min-height: unset; min-width: unset; }
#vocal-mobile-page .bell-dot { position: absolute; top: 6px; right: 6px; width: 7px; height: 7px; border-radius: 50%; background: var(--v-accent); border: 1.5px solid var(--bg); }

#vocal-mobile-page .mic-zone { display: flex; flex-direction: column; align-items: center; padding: 6px 24px 12px; flex: 1; min-height: 0; overflow: visible; }
#vocal-mobile-page .mic-hint { font-size: 17px; font-weight: 600; color: var(--v-text); text-align: center; line-height: 1.45; margin-top: 16px; margin-bottom: 6px; flex-shrink: 0; }

#vocal-mobile-page .pulse-wrap { position: relative; width: min(170px, 44vw); height: min(170px, 44vw); display: flex; align-items: center; justify-content: center; margin-bottom: 6px; flex-shrink: 0; border-radius: 50%; overflow: hidden; }
#vocal-mobile-page .p-glow { position: absolute; width: 176px; height: 176px; border-radius: 50%; background: radial-gradient(circle, rgba(255,107,0,.16) 0%, transparent 68%); }
#vocal-mobile-page .vocal-ring { position: absolute; border-radius: 50%; border: 1.5px solid rgba(255,107,0,.22); animation: vcmRipple 3s ease-out infinite; }
#vocal-mobile-page .vocal-ring:nth-child(2) { width: 136px; height: 136px; animation-delay: 0s; }
#vocal-mobile-page .vocal-ring:nth-child(3) { width: 166px; height: 166px; animation-delay: .7s; }
#vocal-mobile-page .vocal-ring:nth-child(4) { width: 196px; height: 196px; animation-delay: 1.4s; }
#vocal-mobile-page .vocal-ring:nth-child(5) { width: 220px; height: 220px; animation-delay: 2.1s; }
@keyframes vcmRipple { 0% { transform: scale(.88); opacity: .75; } 100% { transform: scale(1.08); opacity: 0; } }
#vocal-mobile-page .vocal-ring.fast { animation-duration: .9s; border-color: rgba(255,107,0,.35); }

#vocal-mobile-page .mic-main { width: 96px; height: 96px; border-radius: 50%; border: 5px solid rgba(255,255,255,.85); background: radial-gradient(circle at 36% 28%, #FF9944 0%, var(--v-accent) 50%, #D85500 100%); display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 5px rgba(255,107,0,.13), 0 10px 38px rgba(255,107,0,.52), inset 0 3px 8px rgba(255,255,255,.28); z-index: 2; cursor: pointer; transition: transform var(--v-tr), box-shadow var(--v-tr); min-height: unset; min-width: unset; }
#vocal-mobile-page .mic-main:active { transform: scale(.95); }
#vocal-mobile-page .mic-main svg    { width: 38px; height: 38px; }
#vocal-mobile-page .mic-main.rec { box-shadow: 0 0 0 5px rgba(255,107,0,.22), 0 10px 52px rgba(255,107,0,.72), inset 0 3px 8px rgba(255,255,255,.28); }
#vocal-mobile-page .mic-main.paused { opacity: .72; box-shadow: 0 0 0 5px rgba(255,107,0,.10), 0 6px 22px rgba(255,107,0,.30), inset 0 3px 8px rgba(255,255,255,.28); outline: 2.5px dashed rgba(255,255,255,.60); outline-offset: -14px; }

#vocal-mobile-page .btn-ico-pause,
#vocal-mobile-page .btn-ico-play                     { display: none; }
#vocal-mobile-page .mic-main.rec   .btn-ico-mic      { display: none; }
#vocal-mobile-page .mic-main.rec   .btn-ico-pause    { display: block; }
#vocal-mobile-page .mic-main.paused .btn-ico-pause,
#vocal-mobile-page .mic-main.paused .btn-ico-mic     { display: none; }
#vocal-mobile-page .mic-main.paused .btn-ico-play    { display: block; }

#vocal-mobile-page .vocal-rec-wave { display: flex; align-items: center; gap: 3px; height: 28px; }
#vocal-mobile-page .vocal-rec-wave span { display: inline-block; width: 3px; border-radius: 2px; background: var(--v-accent); animation: vcmWave .8s ease-in-out infinite alternate; }
#vocal-mobile-page .vocal-rec-wave span:nth-child(1){height:8px;  animation-delay:.00s}
#vocal-mobile-page .vocal-rec-wave span:nth-child(2){height:18px; animation-delay:.10s}
#vocal-mobile-page .vocal-rec-wave span:nth-child(3){height:26px; animation-delay:.20s}
#vocal-mobile-page .vocal-rec-wave span:nth-child(4){height:20px; animation-delay:.15s}
#vocal-mobile-page .vocal-rec-wave span:nth-child(5){height:14px; animation-delay:.05s}
#vocal-mobile-page .vocal-rec-wave span:nth-child(6){height:12px; animation-delay:.25s}
#vocal-mobile-page .vocal-rec-wave span:nth-child(7){height:5px;  animation-delay:.10s}
#vocal-mobile-page .vocal-rec-wave.paused span { background: var(--v-text3); animation: none; height: 10px !important; }
@keyframes vcmWave { from { transform: scaleY(.4); } to { transform: scaleY(1); } }

#vocal-mobile-page .ia-dots { display: flex; gap: 7px; justify-content: center; padding: 12px 0; }
#vocal-mobile-page .ia-dots span { width: 10px; height: 10px; border-radius: 50%; background: var(--v-accent); animation: vcmDot 1s ease-in-out infinite; }
#vocal-mobile-page .ia-dots span:nth-child(2) { animation-delay: .15s; }
#vocal-mobile-page .ia-dots span:nth-child(3) { animation-delay: .30s; }
@keyframes vcmDot { 0%, 100% { opacity: .3; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-5px); } }

#vocal-mobile-page .tr-area { width: 100%; margin-top: 14px; flex: 1; min-height: 0; display: flex; flex-direction: column; overflow: visible; }
#vocal-mobile-page .tr-section-lbl { font-size: 11px; font-weight: 700; color: var(--v-text3); text-transform: uppercase; letter-spacing: .07em; margin: 0 0 8px; flex-shrink: 0; }
#vocal-mobile-page .tr-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; flex-shrink: 0; }
#vocal-mobile-page .tr-lbl { font-size: 13px; font-weight: 500; color: var(--v-text3); letter-spacing: .01em; line-height: 1; margin-top: -1px; }
#vocal-mobile-page .tr-actions { flex-shrink: 0; display: flex; flex-direction: column; margin-top: 14px; padding-bottom: max(env(safe-area-inset-bottom, 0px), 14px); }

#vocal-mobile-page .tr-box { background: var(--b2); border: none; border-radius: var(--v-r-md); padding: 14px; height: auto; min-height: 60px; max-height: 22vh; overflow-y: auto; font-size: 14px; color: var(--v-text3); font-style: italic; line-height: 1.65; transition: border-color var(--v-tr), box-shadow var(--v-tr), color var(--v-tr); }
#vocal-mobile-page .tr-box::-webkit-scrollbar { display: none; }
#vocal-mobile-page .tr-box.compact { height: 52px; min-height: 52px; max-height: 52px; display: flex; align-items: center; gap: 8px; overflow: hidden; margin-top: -1px; }
#vocal-mobile-page .tr-box.live    { color: var(--v-text); font-style: normal; }
#vocal-mobile-page .tr-box.done    { min-height: 140px; overflow-y: auto; }
#vocal-mobile-page .tr-box.editing { border: 1.5px solid var(--v-accent); box-shadow: 0 0 0 3px rgba(255,107,0,.08); cursor: text; font-style: normal; color: var(--v-text); outline: none; }

#vocal-mobile-page .btn-primary { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; border: none; border-radius: var(--v-r-sm); color: #fff; cursor: pointer; font-family: inherit; transition: transform var(--v-tr), opacity var(--v-tr); min-height: unset; min-width: unset; }
#vocal-mobile-page .btn-primary:active { transform: scale(.98); opacity: .9; }
#vocal-mobile-page .btn-generate { height: 46px; margin-top: 12px; background: var(--v-success); font-size: 14px; font-weight: 700; }
#vocal-mobile-page .btn-validate { height: 52px; margin-top: 12px; background: var(--v-success); font-size: 15px; font-weight: 900; letter-spacing: .01em; box-shadow: 0 4px 16px rgba(16,185,129,.38); }
#vocal-mobile-page .btn-ghost { display: flex; align-items: center; justify-content: center; width: 100%; height: 44px; margin-top: 10px; background: transparent; border: 1.5px solid var(--v-border2); border-radius: var(--v-r-sm); color: var(--v-text2); font-size: 15px; font-weight: 600; cursor: pointer; font-family: inherit; transition: background var(--v-tr); min-height: unset; min-width: unset; }
#vocal-mobile-page .btn-ghost:active { opacity: .7; }
#vocal-mobile-page .btn-manual { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; height: 38px; margin-top: 15px; background: transparent; border: none; color: var(--v-text3); font-size: 13px; font-weight: 500; cursor: pointer; font-family: inherit; letter-spacing: .01em; transition: color var(--v-tr); min-height: unset; min-width: unset; }
#vocal-mobile-page .btn-manual:active { color: var(--v-text2); }
#vocal-mobile-page .btn-manual svg { flex-shrink: 0; opacity: .55; }
#vocal-mobile-page #vocal-newrec-btn { gap: 8px; margin-top: 14px; }
#vocal-mobile-page #vocal-newrec-btn svg { opacity: .65; }
#vocal-mobile-page #vocal-finish-btn { margin-top: 11px; }
#vocal-mobile-page #vocal-cancel-btn { margin-top: 9px; }
#vocal-mobile-page #vocal-next-btn   { margin-top: 18px; }
#vocal-mobile-page .btn-edit { flex-shrink: 0; width: 36px; height: 36px; border-radius: 10px; background: transparent; border: 1.5px solid #0F172A; color: #0F172A; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background var(--v-tr); min-height: unset; min-width: unset; }
#vocal-mobile-page .btn-edit:active { background: rgba(15,23,42,.08); }

#vocal-mobile-page.done-screen #p-home,
#vocal-mobile-page #p-home.done-screen { height: calc(100dvh - var(--bottom-nav-height, 70px)); display: flex; flex-direction: column; overflow: hidden; }
#vocal-mobile-page #p-home.done-screen .brand      { flex-shrink: 0; padding-top: 12px; }
#vocal-mobile-page #p-home.done-screen .mic-zone   { flex: 1; display: flex; flex-direction: column; align-items: center; overflow: visible; }
#vocal-mobile-page #p-home.done-screen .mic-hint   { display: none; }
#vocal-mobile-page #p-home.done-screen .pulse-wrap { flex-shrink: 0; width: 88px !important; height: 88px !important; margin-bottom: 6px; }
#vocal-mobile-page #p-home.done-screen .vocal-ring { display: none; }
#vocal-mobile-page #p-home.done-screen .p-glow     { display: none; }
#vocal-mobile-page #p-home.done-screen .mic-main   { width: 78px !important; height: 78px !important; }
#vocal-mobile-page #p-home.done-screen .mic-main svg { width: 30px; height: 30px; }
#vocal-mobile-page #p-home.done-screen .tr-area    { flex: 1; min-height: 0; width: 100%; display: flex; flex-direction: column; overflow: visible; margin-top: 6px; }
#vocal-mobile-page #p-home.done-screen .tr-header  { flex-shrink: 0; margin-bottom: 8px; }
#vocal-mobile-page #p-home.done-screen .tr-box.done { flex: 1 1 0%; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; }
#vocal-mobile-page #p-home.done-screen .tr-actions  { flex-shrink: 0; margin-top: 0; padding-top: 12px; padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 20px); }
#vocal-mobile-page #p-home.done-screen .btn-validate { margin-top: 0; height: 48px; }
#vocal-mobile-page #p-home.done-screen .btn-ghost    { margin-top: 8px; height: 42px; margin-bottom: 0; }

/* ── ÉTAT TERMINÉ : éléments ajoutés ───────────────── */
#vocal-manual-btn { display: flex !important; }
#vocal-edit-btn   { display: none !important; }

/* Masquer btn-manual si rec ou transcript terminé (btn frère visible) */
#vocal-finish-btn:not([style*="none"]) ~ #vocal-manual-btn,
#vocal-next-btn:not([style*="none"]) ~ #vocal-manual-btn { display: none !important; }

#vocal-done-hint { display: none; font-size: 16px; font-weight: 700; color: var(--v-text); text-align: center; margin: 10px 0 4px; flex-shrink: 0; }
#vocal-mobile-page #p-home.done-screen #vocal-done-hint { display: block; }

#vocal-done-lbl { display: none; font-size: 13px; font-weight: 600; color: #16a34a; align-items: center; gap: 5px; line-height: 1; }
#vocal-mobile-page #p-home.done-screen #vocal-done-lbl { display: flex; }
#vocal-mobile-page #p-home.done-screen .tr-lbl { display: none; }

#vocal-tr-box.done { cursor: pointer; }
#vocal-tr-box.done:hover { opacity: .92; }

/* ── Dark mode overrides for scoped --v-* tokens ── */
body.dark-mode #vocal-mobile-page {
  --v-text:   var(--text);
  --v-text2:  var(--text2);
  --v-text3:  var(--text3);
  --v-border: var(--b2);
  --v-border2:var(--b2);
  --v-bg:     var(--bg);
}
body.dark-mode #vocal-tr-box { color: var(--text2); }
body.dark-mode #vocal-mobile-page .tr-box.live { color: var(--text); }

/* ── Fixe la hauteur de #p-home pour tous les états sauf done-screen ──
   Spécificité (2,0,0) > #vocal-mobile-page .page (1,1,0) — garantit que
   le contenu s'arrête au-dessus de la barre de navigation (56 px).
   done-screen garde son override (2,1,0) avec overflow:hidden. */
#vocal-mobile-page #p-home {
    height: calc(100dvh - var(--bottom-nav-height, 56px));
    max-height: calc(100dvh - var(--bottom-nav-height, 56px));
    overflow-y: auto;
}

/* ── r162: limiter la zone transcript pour que "Saisie manuelle" et
   "Annuler" restent visibles sans scroll en état 1 et 2 ── */
#vocal-mobile-page .tr-box { max-height: 14vh; }
#vocal-mobile-page .tr-box.done { max-height: none; }

/* ── r165: en done-screen, plafonner le tr-box pour que "Valider → Devis"
   et "Annuler" restent toujours visibles au-dessus du footer ── */
#vocal-mobile-page #p-home.done-screen .tr-box.done { max-height: 26vh; }

/* ── Modal vocal — règles restaurées (supprimées de style.css le 11 juin) ── */
.vc-brand-devis { color: #000000; }
.vc-brand-vox { color: #FF3300; }
body.dark-mode .vc-brand-vox { color: #FF6B00; }
body.dark-mode .vc-brand-devis { color: #FFFFFF; }

.vocal-modal { position: fixed; top:0; left:0; width:100%; height:100%; z-index:9999; display:flex; justify-content:center; align-items:center; }
.vocal-modal.hidden { display: none; }
.vocal-modal-overlay { position:absolute; top:0; left:0; width:100%; height:100%; background:rgba(0,0,0,0.7); backdrop-filter:blur(4px); }
.vocal-modal-content { position:relative; background:var(--bg-secondary); border-radius:var(--border-radius-lg); width:90vw; max-width:90vw; height:90vh; max-height:90vh; overflow:hidden; z-index:10000; display:flex; flex-direction:column; }
.vocal-modal-header { flex-shrink:0; display:flex; justify-content:space-between; align-items:center; padding:var(--spacing-xl) var(--spacing-xl) var(--spacing-md); }
.vocal-modal-body { flex:1; overflow-y:auto; min-height:0; padding:0 var(--spacing-xl) var(--spacing-lg); }
.vocal-modal-header.vc-brand { display:flex; align-items:flex-start; justify-content:space-between; padding:14px 20px 6px; border-bottom:1px solid var(--border-color); flex-shrink:0; }
.vc-brand-name { font-family:'Helvetica Neue',Arial,sans-serif; font-size:22px; font-weight:900; letter-spacing:-3px; line-height:1; }
.vc-brand-tag { font-family:'Helvetica Neue',Arial,sans-serif; font-size:10px; font-weight:500; color:var(--text-tertiary); margin-top:3px; letter-spacing:.31em; text-transform:uppercase; }
.vc-brand-block { display:flex; flex-direction:column; justify-content:center; }
body.dark-mode #vocal-mobile-page .brand-logo-img { content: url('../../assets/logo-devisvox-dark.svg?v=9'); }
