:root{
  --bg:#f5f4ed;
  --card:#fffdf8;
  --text:#141413;
  --muted:#73726c;
  --line:#e8e6dc;
  --dark:#c96442;
  --soft:#f0eee6;
  --danger:#a41c1c;
  --accent:#c96442;
  --accent-hover:#b0573a;
  --serif:"Tiempos Headline","Iowan Old Style","Palatino Linotype",Palatino,"Book Antiqua",Georgia,ui-serif,serif
}
*{box-sizing:border-box}
body{
  margin:0;
  font-family:Inter,system-ui,-apple-system,"Segoe UI",sans-serif;
  background:var(--bg);
  color:var(--text)
}
.page{
  width:min(900px,calc(100% - 32px));
  margin:auto;
  padding:34px 0 70px
}
.topbar{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:18px;
  margin-bottom:22px
}
.brand{
  font-size:24px;
  font-weight:900;
  letter-spacing:.05em
}
.subtitle,.hint,.segments{color:var(--muted)}
.pill{
  border:1px solid var(--line);
  background:#fff;
  padding:9px 13px;
  border-radius:999px;
  font-size:13px;
  font-weight:700
}
.card{
  background:var(--card);
  border:1px solid var(--line);
  border-radius:20px;
  padding:26px;
  box-shadow:0 8px 30px rgba(0,0,0,.04);
  margin-bottom:18px
}
h1,h2{margin:0 0 10px}
h1{font-size:clamp(28px,5vw,42px)}
h2{font-size:22px}
.hint{
  margin:0 0 22px;
  line-height:1.6
}
.dropzone{
  display:flex;
  min-height:160px;
  border:2px dashed #dad8d1;
  border-radius:16px;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:7px;
  cursor:pointer;
  text-align:center;
  padding:20px;
  background:#fcfbfa
}
.dropzone input{display:none}
.dropzone span{
  color:var(--muted);
  font-size:14px
}
.grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px;
  margin:18px 0
}
label>span{
  display:block;
  margin-bottom:7px;
  font-size:13px;
  font-weight:800
}
select{
  width:100%;
  border:1px solid var(--line);
  background:#fff;
  border-radius:12px;
  padding:12px 13px;
  font-size:15px
}
button,.linkbtn{
  border:0;
  border-radius:12px;
  padding:13px 18px;
  font-size:15px;
  font-weight:800;
  cursor:pointer;
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  justify-content:center
}
.primary{
  background:var(--dark);
  color:#fff
}
.secondary{
  background:var(--soft);
  color:var(--text)
}
.progressHeader{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:20px
}
.progressHeader p{
  margin:0;
  color:var(--muted)
}
.percent{
  font-size:38px;
  font-weight:900;
  min-width:100px;
  text-align:right
}
.progressTrack{
  height:14px;
  background:#efeeea;
  border-radius:999px;
  overflow:hidden;
  margin:22px 0 12px
}
.progressBar{
  height:100%;
  width:1%;
  background:var(--dark);
  transition:width .1s linear
}
.segments{
  min-height:22px;
  margin-bottom:16px
}
.actions{
  display:flex;
  flex-wrap:wrap;
  gap:10px
}
.errorCard{
  border-color:#efc2c2
}
.errorCard pre{
  white-space:pre-wrap;
  color:var(--danger);
  margin:0;
  font-family:inherit
}
.hidden{display:none!important}

@media(max-width:650px){
  .grid{grid-template-columns:1fr}
  .topbar{
    align-items:flex-start;
    flex-direction:column
  }
  .card{padding:20px}
}

/* ===== MAMOUSSO SUITE V3 ===== */
body{background:#f7f6f4}
a{color:inherit}
.suitePage,.toolPage{width:min(1180px,calc(100% - 34px));margin:0 auto;padding:28px 0 64px}
.suiteTopbar,.toolTopbar{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:26px}
.suiteBrand,.brandLink{font-weight:950;letter-spacing:.06em;font-size:23px;text-decoration:none}
.suiteSub{color:#7d7b74;font-size:13px;margin-top:3px}
.headerAction,.backLink{border:1px solid #e7e6e2;background:#fff;border-radius:999px;padding:10px 15px;text-decoration:none;font-weight:800;font-size:13px}
.hero{background:linear-gradient(180deg,#fff,#fcfbfa);border:1px solid #eae9e4;border-radius:28px;padding:48px;box-shadow:0 16px 48px rgba(16,24,40,.055);margin-bottom:34px}
.eyebrow{font-size:12px;letter-spacing:.16em;font-weight:900;color:#88857a;margin-bottom:12px}
.hero h1,.toolHero h1{font-size:clamp(36px,6vw,64px);line-height:1.02;letter-spacing:-.045em;margin:0 0 16px;max-width:850px}
.hero p,.toolHero p{color:#7b7870;font-size:17px;line-height:1.65;max-width:760px;margin:0}
.searchWrap{display:flex;align-items:center;gap:10px;background:#fff;border:1px solid #e7e5e0;border-radius:16px;padding:0 16px;margin-top:28px;max-width:690px;box-shadow:0 8px 22px rgba(0,0,0,.035)}
.searchWrap span{font-size:25px;color:#7b7972}
.searchWrap input{border:0;outline:0;background:transparent;width:100%;padding:16px 4px;font-size:15px}
.toolSection{margin:34px 0}
.sectionHeading{display:flex;justify-content:space-between;align-items:end;gap:12px;margin-bottom:14px}
.sectionHeading h2{font-size:20px;margin:0}.sectionHeading span{font-size:12px;color:#939188}
.toolGrid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px}
.toolCard{display:grid;grid-template-columns:48px 1fr auto;align-items:center;gap:13px;text-decoration:none;background:#fff;border:1px solid #e9e8e3;border-radius:18px;padding:16px;min-height:112px;transition:.16s ease;box-shadow:0 5px 18px rgba(18,25,38,.025)}
.toolCard:hover{transform:translateY(-2px);border-color:#cccac1;box-shadow:0 12px 30px rgba(18,25,38,.07)}
.toolIcon,.largeToolIcon{display:flex;align-items:center;justify-content:center;background:#161513;color:#fff;border-radius:13px;font-weight:950;letter-spacing:-.02em}
.toolIcon{width:48px;height:48px;font-size:13px}.largeToolIcon{width:72px;height:72px;font-size:18px;border-radius:20px;flex:none}
.toolText h3{font-size:15px;margin:0 0 6px}.toolText p{font-size:12px;line-height:1.4;color:#828079;margin:0}.toolArrow{color:#a09e95;font-weight:900}
.suiteFooter{display:flex;justify-content:space-between;gap:24px;border-top:1px solid #e2e1de;padding-top:22px;margin-top:46px;color:#817f78;font-size:12px}.suiteFooter strong{color:#1d1c1a}
.toolPage{max-width:920px}.toolHero{display:flex;gap:22px;align-items:center;margin:30px 0 26px}.toolHero h1{font-size:clamp(34px,6vw,56px);margin-bottom:10px}.toolHero p{font-size:15px}
.workspaceCard{background:#fff;border:1px solid #e7e6e1;border-radius:24px;padding:26px;box-shadow:0 14px 42px rgba(17,24,39,.055)}
.uploadZone{border:2px dashed #dbd9d1;border-radius:18px;background:#fcfbfa;min-height:180px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;text-align:center;padding:25px;cursor:pointer}
.uploadZone:hover{border-color:#a3a094}.uploadZone input{display:none}.uploadZone span{display:block;color:#828079;font-size:13px;font-weight:500}.uploadGlyph{font-size:27px;width:48px;height:48px;border-radius:14px;background:#161513;color:#fff;display:flex;align-items:center;justify-content:center}
.fieldsGrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:18px}.field{display:block}.field.wide{grid-column:1/-1}.field span{font-size:12px;font-weight:850;margin-bottom:7px}.field input,.field textarea{width:100%;border:1px solid #e6e5e0;border-radius:12px;padding:12px 13px;font:inherit;background:#fff;outline:none}.field textarea{min-height:150px;resize:vertical}.field input:focus,.field textarea:focus{border-color:#9d9b91}
.runButton{width:100%;margin-top:18px;background:#191816;color:#fff;border:0;border-radius:13px;padding:14px 18px;font-size:15px;font-weight:900;cursor:pointer}.runButton:disabled{opacity:.55;cursor:wait}
.processing{margin-top:20px;border:1px solid #e8e7e3;border-radius:15px;padding:16px;background:#fcfbfa}.processHeader{display:flex;justify-content:space-between;gap:15px;align-items:center}.processHeader div:first-child{display:flex;flex-direction:column;gap:4px}.processHeader span{font-size:12px;color:#828078}.processHeader>div:last-child{font-size:26px;font-weight:950}.processTrack{height:10px;background:#eeede9;border-radius:999px;margin-top:13px;overflow:hidden}.processTrack>div{height:100%;width:1%;background:#191816;transition:width .1s linear}
.resultBox{margin-top:20px;border-radius:16px;padding:16px;display:flex;justify-content:space-between;align-items:center;gap:18px}.resultBox>div{display:flex;flex-direction:column;gap:5px}.resultBox span{font-size:12px}.resultBox.success{background:#f1f8f3;border:1px solid #cae7d0}.resultBox.error{background:#fff4f3;border:1px solid #f0cbc7}.downloadButton{background:#191816;color:#fff;border-radius:11px;padding:10px 14px;text-decoration:none;font-weight:850;font-size:13px}
.privacyNote{margin-top:18px;border:1px solid #e7e6e2;border-radius:16px;padding:16px;background:#fff}.privacyNote strong{font-size:13px}.privacyNote p{font-size:12px;color:#7f7d75;margin:5px 0 0;line-height:1.55}
.hidden{display:none!important}
@media(max-width:950px){.toolGrid{grid-template-columns:repeat(2,minmax(0,1fr))}.hero{padding:34px}}
@media(max-width:620px){.suitePage,.toolPage{width:min(100% - 22px,1180px);padding-top:18px}.hero{padding:26px 20px;border-radius:22px}.toolGrid{grid-template-columns:1fr}.suiteTopbar,.toolTopbar,.suiteFooter{align-items:flex-start;flex-direction:column}.toolHero{align-items:flex-start;flex-direction:column}.fieldsGrid{grid-template-columns:1fr}.field.wide{grid-column:auto}.workspaceCard{padding:18px}}


/* ===== MAMOUSSO V5 : éditeur de transcription synchronisé ===== */
.transcribePage{width:min(1120px,calc(100% - 32px))}
.compactHint{margin-bottom:0!important}
.editorTitleRow{display:flex;align-items:center;justify-content:space-between;gap:18px;flex-wrap:wrap}
.editorShell{margin-bottom:50px}
.playerPanel{position:sticky;top:12px;z-index:20;background:rgba(255,255,255,.96);backdrop-filter:blur(14px);border:1px solid #e7e5e0;border-radius:20px;padding:18px;box-shadow:0 14px 38px rgba(18,25,38,.09);margin-bottom:16px}
.playerTop{display:flex;justify-content:space-between;align-items:center;gap:18px;margin-bottom:12px}
.playerClock{font-size:12px;color:var(--muted);margin-top:4px;font-variant-numeric:tabular-nums}
.playerControlsRight{display:flex;align-items:center;gap:14px;flex-wrap:wrap}
.inlineField{display:flex;align-items:center;gap:7px;font-size:12px;font-weight:800}
.inlineField select{width:auto;padding:7px 10px}
.followLabel{font-size:12px;font-weight:750;color:#605e57;display:flex;align-items:center;gap:6px}
#audioPlayer{width:100%;height:44px;display:block}
.editorToolbar{display:grid;grid-template-columns:1fr auto auto;gap:10px;align-items:center;margin-top:12px}
.editorToolbar input{width:100%;border:1px solid #e6e5e0;border-radius:11px;padding:10px 12px;font:inherit;outline:none}
.editorToolbar input:focus{border-color:#9f9d94}
.smallButton{padding:10px 14px}
.saveStatus{font-size:12px;color:#4b7a58;white-space:nowrap}.saveStatus.dirty{color:#a15d16}
.editorHelp{font-size:12px;line-height:1.5;color:#828079;margin-top:10px}
.transcriptSegments{display:flex;flex-direction:column;gap:10px}
.transcriptSegment{background:#fff;border:1px solid #e8e7e2;border-radius:18px;padding:15px;transition:border-color .15s,box-shadow .15s,background .15s}
.transcriptSegment.active{border-color:#191816;background:#fcfcfb;box-shadow:0 7px 24px rgba(17,24,39,.07)}
.segmentHeader{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px}
.timecodeButton,.segmentPlayButton{border:0;cursor:pointer;font:inherit;font-weight:850;border-radius:10px;padding:7px 10px}
.timecodeButton{background:#f4f4f1;color:#2f2e2a;font-variant-numeric:tabular-nums;font-size:12px}
.segmentPlayButton{background:#191816;color:#fff;font-size:12px}
.segmentEditor{width:100%;border:1px solid transparent;border-radius:11px;padding:10px 11px;resize:vertical;min-height:62px;font:inherit;font-size:16px;line-height:1.62;background:#fcfbfa;outline:none}
.segmentEditor:hover{border-color:#e7e6e1}.segmentEditor:focus{background:#fff;border-color:#aaa89f;box-shadow:0 0 0 3px rgba(20,23,27,.05)}
.wordTimeline{display:flex;flex-wrap:wrap;gap:5px;margin-top:10px;padding-top:10px;border-top:1px solid #f1f1ef}
.wordToken{border:0;background:#f4f4f1;color:#3c3b36;border-radius:7px;padding:4px 6px;cursor:pointer;font:inherit;font-size:12px;line-height:1.25;transition:.1s}
.wordToken:hover{background:#e7e5e0}.wordToken.playing{background:#191816;color:#fff;transform:translateY(-1px)}
.noWordTiming{font-size:11px;color:#98968d;font-style:italic}
@media(max-width:700px){.playerPanel{top:4px}.playerTop{align-items:flex-start;flex-direction:column}.editorToolbar{grid-template-columns:1fr 1fr}.editorToolbar input{grid-column:1/-1}.segmentHeader{align-items:flex-start;flex-direction:column}.segmentPlayButton,.timecodeButton{width:100%}}

/* ============================================================
   MAMOUSSO V6 — Éditeur document après transcription
   ============================================================ */
body.workspaceOpen{overflow:hidden;background:#f5f4ef}
.transcriptionWorkspace{position:fixed;inset:0;background:#f5f4ef;display:grid;grid-template-columns:236px minmax(520px,1fr) 250px;grid-template-rows:1fr 76px;z-index:1000}
.workspaceLeft{grid-column:1;grid-row:1 / span 2;background:#fbfbf9;border-right:1px solid #e8e6dd;padding:18px 14px 94px;overflow-y:auto}
.workspaceCenter{grid-column:2;grid-row:1;background:#f5f4ef;overflow-y:auto;padding:32px 24px 120px}
.workspaceRight{grid-column:3;grid-row:1;background:#fbfbf9;border-left:1px solid #e8e6dd;padding:18px 12px 100px;overflow-y:auto}
.workspaceBrandRow{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px}
.workspaceBrand{font-weight:900;font-size:20px;color:#201f18;text-decoration:none;letter-spacing:.05em}
.iconButton{width:32px;height:32px;border:0;background:#f4f3ee;border-radius:9px;font-size:22px;cursor:pointer;display:grid;place-items:center;color:#4f4d44}
.newTranscriptBtn{width:100%;border:0;border-radius:11px;background:#201f18;color:white;padding:12px 13px;font-weight:800;cursor:pointer;margin-bottom:14px}
.usageCard{background:#3c392d;color:white;border-radius:12px;padding:14px;margin-bottom:18px;display:flex;flex-direction:column;gap:3px;font-size:12px}.usageCard strong{font-size:14px}.usageCard span{color:#dedbce}.usageBar{height:6px;background:rgba(255,255,255,.22);border-radius:999px;margin-top:8px;overflow:hidden}.usageBar i{display:block;width:38%;height:100%;background:#b2ac92;border-radius:999px}
.leftSectionTitle{font-size:12px;font-weight:800;color:#5c5a50;margin:17px 8px 7px}
.leftNavItem{width:100%;border:0;background:transparent;border-radius:8px;padding:9px 10px;text-align:left;display:flex;gap:10px;align-items:center;color:#4b483e;cursor:pointer;font:inherit}.leftNavItem:hover,.leftNavItem.active{background:#f4f3ef}
.historyList{display:flex;flex-direction:column;gap:3px}.historyItem{width:100%;border:0;background:transparent;border-radius:9px;padding:8px;text-align:left;display:grid;grid-template-columns:25px 1fr;gap:7px;color:#47453b;cursor:pointer}.historyItem:hover,.historyItem.current{background:#f2f1eb}.historyItem b{display:block;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.historyItem small{display:block;color:#9c998b;font-size:10px;margin-top:2px}.historyFileIcon{font-size:16px;color:#7e7a6d}
.documentPage{width:min(860px,100%);min-height:calc(100vh - 120px);margin:0 auto;background:white;border:1px solid #e8e6dd;border-radius:8px;box-shadow:0 10px 28px rgba(25,40,60,.07);padding:30px 34px 70px}
.documentHeader{display:flex;align-items:flex-start;justify-content:space-between;gap:22px;border-bottom:1px solid #f2f1ee;padding-bottom:18px;margin-bottom:22px}.documentHeader h1{font-size:31px;line-height:1.15;margin:0 0 8px;color:#312f27}.documentMeta{font-size:13px;color:#7a786d}.documentHeaderActions{display:flex;align-items:center;gap:9px;flex-wrap:wrap;justify-content:flex-end}.documentSearch{width:180px;border:1px solid #e6e4dd;border-radius:10px;padding:9px 11px;font:inherit;font-size:13px;outline:none}.documentSearch:focus{border-color:#868275}.saveStatus{font-size:11px;color:#7b7970;white-space:nowrap}.saveStatus.dirty{color:#a16207}
.transcriptDocument{font-size:15px;line-height:1.72;color:#312f25}.transcriptFlow{display:block}.inlineSegment{display:inline;border-radius:4px;transition:background .15s}.inlineSegment.active{background:#fff2a8}.inlineSegment.searchMatch{box-shadow:inset 0 -2px 0 #ffb000}.inlineTimecode{display:inline;border:0;background:transparent;color:#918e81;padding:0 3px 0 0;font:inherit;font-size:12px;cursor:pointer;vertical-align:baseline}.inlineTimecode:hover{color:#c96442;text-decoration:underline}.inlineWord{display:inline;border:0;background:transparent;padding:0;margin:0;color:inherit;font:inherit;cursor:pointer;border-radius:3px;vertical-align:baseline}.inlineWord:hover{background:#faf0ec;color:#a8502f}.inlineWord.playing{background:#c96442;color:#fff}.inlinePlainText{white-space:pre-wrap}.inlineEditable{display:inline;outline:1px dashed #c8c2ab;border-radius:3px;padding:1px 2px;background:#fefbf9;white-space:pre-wrap}.inlineEditable:focus{outline:2px solid #c96442;background:white}.transcriptDocument.hideTimestamps .inlineTimecode{display:none}
.rightPanelInner h3{font-size:13px;margin:4px 10px 9px;color:#2e2c25}.sideAction{width:100%;display:grid;grid-template-columns:38px 1fr;gap:7px;align-items:center;padding:9px 9px;border-radius:9px;text-decoration:none;color:#38352d;border:0;background:transparent;text-align:left;font:inherit;cursor:pointer}.sideAction:hover{background:#f4f3ef}.sideAction small{display:block;color:#8d897b;font-size:10px;line-height:1.3;margin-top:2px}.sideAction b{font-weight:700}.sideIcon{width:30px;height:28px;border:1px solid #e5e3db;border-radius:7px;display:grid;place-items:center;font-size:9px;font-weight:900;background:white;color:#5c584b}.aiIcon{background:#10a37f;color:white;border-color:#10a37f}.rightDivider{height:1px;background:#e9e8e2;margin:11px 7px}.sideToggle{display:flex;align-items:center;gap:8px;padding:9px 10px;font-size:13px;color:#38352d;cursor:pointer}.sideToggle input{width:17px;height:17px}.saveWideBtn{width:calc(100% - 8px);margin:12px 4px 0;border:0;border-radius:10px;background:#201f18;color:white;padding:11px;font-weight:800;cursor:pointer}
.bottomPlayer{grid-column:1 / span 3;grid-row:2;position:relative;background:white;border-top:1px solid #e6e3da;box-shadow:0 -4px 20px rgba(15,23,42,.06);display:grid;grid-template-columns:235px 1fr;align-items:center;padding:8px 20px;z-index:20}.playerTitle{font-size:12px;font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding-right:15px}.playerMainControls{display:flex;align-items:center;justify-content:center;gap:9px}.playerIconButton,.playPauseButton{border:0;background:transparent;cursor:pointer;color:#1c1a14;font-weight:800}.playPauseButton{width:38px;height:38px;border-radius:50%;background:#201f18;color:#fff;font-size:16px}.playerIconButton{font-size:13px}.playerTime{font-size:11px;color:#59574c;font-variant-numeric:tabular-nums}.seekSlider{min-width:180px;max-width:620px;flex:1}.volumeSlider{width:90px}.rateSelect{border:1px solid #e3e1d8;border-radius:7px;padding:5px 6px;background:white}.followCompact{font-size:11px;color:#6d6b60;display:flex;align-items:center;gap:4px;white-space:nowrap}.volumeGlyph{font-size:14px}
.aiDialog{border:0;border-radius:16px;padding:0;box-shadow:0 24px 80px rgba(0,0,0,.22);width:min(760px,calc(100% - 28px))}.aiDialog::backdrop{background:rgba(15,23,42,.45)}.aiDialogBox{padding:18px}.aiDialogHeader{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}.aiDialogHeader h3{margin:0}.aiDialog textarea{width:100%;min-height:360px;border:1px solid #e6e5de;border-radius:10px;padding:12px;font:inherit;line-height:1.5;resize:vertical}.aiDialogActions{display:flex;justify-content:flex-end;gap:8px;margin-top:12px}
@media(max-width:1050px){.transcriptionWorkspace{grid-template-columns:190px minmax(420px,1fr) 215px}.documentPage{padding:25px 25px 60px}.bottomPlayer{grid-template-columns:180px 1fr}.followCompact{display:none}}
@media(max-width:820px){body.workspaceOpen{overflow:auto}.transcriptionWorkspace{position:relative;min-height:100vh;display:block}.workspaceLeft,.workspaceRight{position:relative;border:0;padding:14px}.workspaceLeft{display:none}.workspaceRight{background:#fff;border-top:1px solid #e7e5de}.workspaceCenter{padding:12px 12px 105px}.documentPage{min-height:70vh;border-radius:10px;padding:20px 18px}.documentHeader{flex-direction:column}.documentHeaderActions{width:100%;justify-content:flex-start}.documentSearch{width:100%}.bottomPlayer{position:fixed;left:0;right:0;bottom:0;display:block;padding:7px 10px}.playerTitle{text-align:center;padding:0 0 5px}.playerMainControls{gap:6px}.volumeSlider,.volumeGlyph,.followCompact{display:none}.workspaceRight{padding-bottom:110px}}

/* ============================================================
   MAMOUSSO V7 — Multilingue / traduction
   ============================================================ */
.headerRight,.topbarActions{display:flex;align-items:center;gap:10px}
.languageControl{display:flex;align-items:center;gap:6px;border:1px solid #e6e4dd;background:#fff;border-radius:10px;padding:6px 8px;color:#5d5b51}
.languageControl select{width:auto;min-width:150px;max-width:220px;border:0;background:transparent;padding:4px 24px 4px 4px;font:inherit;font-size:12px;outline:none}
.rtlUi .suiteTopbar,.rtlUi .topbar,.rtlUi .toolTopbar{direction:rtl}
.rtlUi .workspaceLeft,.rtlUi .workspaceRight{direction:rtl}
.rtlUi .transcriptDocument{direction:auto;text-align:start}
.rtlUi .historyItem,.rtlUi .sideAction,.rtlUi .leftNavItem{text-align:start}

.translationDialog{border:0;border-radius:18px;padding:0;box-shadow:0 24px 80px rgba(0,0,0,.25);width:min(1100px,calc(100% - 26px));max-height:90vh}
.translationDialog::backdrop{background:rgba(15,23,42,.5)}
.translationDialogBox{padding:20px;max-height:90vh;overflow:auto}
.translationDialogHeader{display:flex;align-items:flex-start;justify-content:space-between;gap:15px;margin-bottom:16px}
.translationDialogHeader h3{margin:0 0 5px;font-size:21px}.translationSourceLabel{font-size:12px;color:#8d8978}
.translationControls{display:grid;grid-template-columns:1fr 1.25fr 1.25fr auto;gap:10px;align-items:end;background:#fafaf8;border:1px solid #e9e8e2;padding:12px;border-radius:12px}
.translationControls label>span{display:block;font-size:11px;font-weight:800;color:#6d6a5f;margin-bottom:5px}
.translationControls input,.translationControls select{width:100%;border:1px solid #e5e3da;border-radius:9px;background:white;padding:9px 10px;font:inherit;font-size:13px;min-height:39px}
.translationTargetLabel select{max-width:100%}.translationStatus{min-height:24px;margin:10px 2px;color:#6a685d;font-size:13px}
.translationTabs{display:flex;gap:6px;margin:8px 0 12px}.translationViewBtn{border:1px solid #e5e3db;background:#fff;border-radius:9px;padding:8px 11px;font-weight:700;cursor:pointer}.translationViewBtn.active{background:#201f18;color:#fff;border-color:#201f18}
.translationRows{display:flex;flex-direction:column;gap:8px;max-height:52vh;overflow:auto;padding-right:4px}
.translationRow{display:grid;grid-template-columns:70px 1fr;gap:10px;border:1px solid #e9e8e2;border-radius:11px;padding:10px;background:#fff}
.translationTime{border:0;background:#f5f4ef;border-radius:8px;padding:7px;font:inherit;font-size:11px;font-weight:800;cursor:pointer;height:max-content}
.translationColumns{display:grid;grid-template-columns:1fr 1fr;gap:12px}.translationOriginal,.translationTranslated{white-space:pre-wrap;line-height:1.55;font-size:14px;padding:7px;border-radius:8px}.translationOriginal{background:#fbfbf9;color:#59564c}.translationTranslated{background:#fdf9f7;color:#2b281f}
.translationRow.view-original .translationTranslated{display:none}.translationRow.view-original .translationColumns{grid-template-columns:1fr}.translationRow.view-translated .translationOriginal{display:none}.translationRow.view-translated .translationColumns{grid-template-columns:1fr}
.translationExports{display:flex;gap:8px;flex-wrap:wrap;margin-top:14px;padding-top:12px;border-top:1px solid #edebe6}

@media(max-width:760px){.headerRight,.topbarActions{align-items:flex-end;flex-direction:column}.languageControl select{min-width:130px}.translationControls{grid-template-columns:1fr}.translationColumns{grid-template-columns:1fr}.translationRow{grid-template-columns:1fr}.translationTime{width:max-content}.translationDialogBox{padding:14px}}




/* ===== V18 : comptes locaux + administration ===== */
.userBadge{display:flex;align-items:center;gap:9px;padding:5px 7px 5px 5px;border:1px solid #e9e8e2;border-radius:999px;background:#fff;max-width:330px}.userInitial{width:30px;height:30px;border-radius:50%;flex:0 0 30px;display:grid;place-items:center;background:#2a2823;color:#fff;font-weight:900}.userIdentity{display:flex;flex-direction:column;min-width:0;line-height:1.12}.userIdentity strong{font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:145px}.userIdentity small{font-size:10px;color:#828079;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:145px}.logoutLink{font-size:11px;font-weight:800;color:#67655b;text-decoration:none;padding:7px 8px;border-radius:999px}.logoutLink:hover{background:#f4f4f1;color:#111}
.loginBody{margin:0;min-height:100vh;background:radial-gradient(circle at 15% 10%,#fbf1ed 0,transparent 35%),#f9f8f6;font-family:Inter,system-ui,-apple-system,"Segoe UI",sans-serif;color:#1d1c19}.loginShell{min-height:100vh;display:grid;place-items:center;padding:24px}.loginCard{width:min(480px,100%);background:#fff;border:1px solid #e8e7e2;border-radius:24px;padding:38px;box-shadow:0 24px 80px rgba(21,34,50,.11);text-align:center;box-sizing:border-box}.accountCard{width:min(520px,100%)}.loginBrand{display:inline-block;font-weight:950;letter-spacing:.08em;font-size:24px;color:#111;text-decoration:none}.loginBadge{display:inline-block;margin-top:24px;padding:6px 10px;border-radius:999px;background:#fcf4f1;color:#c96442;font-size:11px;font-weight:900;letter-spacing:.08em}.loginCard h1{font-size:30px;margin:14px 0 10px}.loginCard p{color:#727067;line-height:1.6;margin:0 auto 25px}.loginSetup,.loginError{padding:14px 15px;border-radius:12px;text-align:left;font-size:13px;line-height:1.45;margin-bottom:14px}.loginSetup{background:#fff8df;border:1px solid #f0df9f;color:#65500b}.loginSetup span{display:block;margin-top:4px}.loginError{background:#fff0f0;border:1px solid #efc2c2;color:#8a1f1f}.loginPrivacy{margin-top:20px;color:#99968a;font-size:11px;line-height:1.5}
.accountForm{display:grid;gap:14px;text-align:left}.accountForm label{display:grid;gap:7px;font-size:13px;font-weight:800;color:#413f38}.accountForm input:not([type="checkbox"]){width:100%;box-sizing:border-box;border:1px solid #e2e0d9;border-radius:12px;background:#fff;padding:13px 14px;font:inherit;outline:none}.accountForm input:not([type="checkbox"]):focus{border-color:#c96442;box-shadow:0 0 0 3px rgba(217,119,87,.12)}.consentRow{grid-template-columns:20px 1fr!important;align-items:start;gap:10px!important;font-weight:500!important;line-height:1.45!important;color:#6d6b62!important}.consentRow input{margin-top:3px;width:16px;height:16px}.optionalConsent{background:#fbfbf9;border:1px solid #eeede9;padding:11px;border-radius:11px}.accountPrimaryBtn{border:0;border-radius:12px;background:#c96442;color:#fff;padding:14px 18px;font:inherit;font-weight:900;cursor:pointer;box-shadow:0 6px 18px rgba(201,100,66,.2)}.accountPrimaryBtn:hover{background:#a8502f}.accountSwitch{margin-top:18px;font-size:13px;color:#7b786e}.accountSwitch a{font-weight:850;color:#c96442;text-decoration:none}

.accountFinishDialog{border:0;border-radius:22px;padding:0;width:min(500px,calc(100% - 28px));box-shadow:0 28px 90px rgba(15,23,42,.28);background:#fff}.accountFinishDialog::backdrop{background:rgba(15,23,42,.58);backdrop-filter:blur(3px)}.accountFinishBox{padding:34px;text-align:center;color:#26241c}.accountFinishIcon{width:62px;height:62px;border-radius:50%;display:grid;place-items:center;margin:0 auto 16px;background:#eaf8f0;color:#15803d;font-weight:950;font-size:28px}.accountFinishBox h2{margin:0 0 10px;font-size:28px;letter-spacing:-.02em}.accountFinishBox p{margin:0 auto 23px;color:#79766c;line-height:1.6;max-width:410px}.accountFinishBtn{display:flex;align-items:center;justify-content:center;gap:11px;width:100%;box-sizing:border-box;padding:14px 18px;border:0;border-radius:13px;background:#c96442;color:#fff;text-decoration:none;font-weight:900;box-shadow:0 7px 18px rgba(201,100,66,.18)}.accountFinishBtn:hover{background:#a8502f}.accountFinishUser{display:grid;place-items:center;width:25px;height:25px}.accountLoginBtn{display:block;margin-top:10px;width:100%;box-sizing:border-box;padding:12px 18px;border:1px solid #e1dfd7;border-radius:13px;background:#fff;color:#312f25;text-decoration:none;font-weight:850}.accountLoginBtn:hover{background:#fbfbf9}.accountLaterBtn{margin-top:10px;border:0;background:transparent;color:#7b7970;padding:9px 14px;font:inherit;font-weight:750;cursor:pointer}.accountLaterBtn:hover{color:#201f18}.accountFinishBox small{display:block;margin-top:7px;color:#a29f95;font-size:11px;line-height:1.45}

.adminBody{margin:0;background:#f8f8f5;color:#26241c;font-family:Inter,system-ui,-apple-system,"Segoe UI",sans-serif}.adminShell{max-width:1400px;margin:0 auto;padding:30px}.adminHeader{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:18px}.adminHeader h1{margin:8px 0 0;font-size:30px}.adminActions{display:flex;gap:10px;flex-wrap:wrap}.adminActions a{padding:10px 14px;border-radius:10px;background:#fff;border:1px solid #e8e7e1;text-decoration:none;color:#38362c;font-weight:800;font-size:13px}.adminNotice{padding:13px 15px;background:#fcf4f1;border:1px solid #f4dcd2;border-radius:12px;color:#5f5a47;font-size:13px;line-height:1.5;margin-bottom:18px}.adminTableWrap{overflow:auto;background:#fff;border:1px solid #e9e8e2;border-radius:16px;box-shadow:0 8px 30px rgba(30,45,60,.06)}.adminTable{width:100%;border-collapse:collapse;min-width:1100px}.adminTable th,.adminTable td{padding:12px 14px;border-bottom:1px solid #f2f1ee;text-align:left;font-size:12px;white-space:nowrap}.adminTable th{background:#fbfbf9;font-size:11px;text-transform:uppercase;letter-spacing:.04em;color:#79766c}.adminTable tr:last-child td{border-bottom:0}.emptyCell{text-align:center!important;color:#99968a;padding:28px!important}

@media(max-width:720px){.userIdentity{display:none}.logoutLink{padding:7px}.loginCard{padding:28px 22px}.loginCard h1{font-size:25px}.adminShell{padding:16px}.adminHeader{align-items:flex-start;flex-direction:column}}
@media(max-width:560px){.accountFinishBox{padding:27px 20px}.accountFinishBox h2{font-size:24px}}

/* ===== V18.3 Passkeys / WebAuthn ===== */
.passkeyManageLink{display:grid;place-items:center;width:30px;height:30px;border-radius:50%;text-decoration:none;color:#4a483e;background:#f7f7f4;border:1px solid #eceae5;font-size:14px}.passkeyManageLink:hover{background:#f9ece6}
.accountDivider{display:flex;align-items:center;gap:12px;margin:16px 0;color:#aaa79d;font-size:12px}.accountDivider::before,.accountDivider::after{content:"";height:1px;background:#eae9e6;flex:1}.accountDivider span{padding:0 4px}
.passkeyPrimaryBtn{width:100%;display:flex;align-items:center;justify-content:center;gap:10px;border:1px solid #dddad1;border-radius:12px;background:#201f18;color:#fff;padding:13px 16px;font:inherit;font-weight:900;cursor:pointer;box-sizing:border-box}.passkeyPrimaryBtn:hover{background:#0d0d0a}.passkeyPrimaryBtn:disabled{opacity:.55;cursor:not-allowed}.passkeyIcon{font-size:18px;line-height:1}.passkeyStatus{min-height:20px;margin-top:8px;font-size:12px;line-height:1.45;color:#79766c;text-align:left}.passkeyStatus.ok{color:#137a3d}.passkeyStatus.error{color:#a12626}.passkeyStatus.busy{color:#c96442}
.securityShell{min-height:100vh;padding:34px;box-sizing:border-box;display:grid;place-items:start center}.securityCard{width:min(760px,100%);background:#fff;border:1px solid #e8e7e2;border-radius:24px;padding:34px;box-shadow:0 24px 80px rgba(21,34,50,.11)}.securityTop{display:flex;align-items:flex-start;justify-content:space-between;gap:18px}.securityCard h1{font-size:32px;margin:24px 0 8px}.securityIntro{margin:0 0 22px;color:#727067;line-height:1.65}.passkeyAddBox{display:grid;grid-template-columns:1fr auto;gap:12px;align-items:end;padding:18px;border:1px solid #eae8e1;background:#fbfbf9;border-radius:16px}.passkeyAddBox label{display:grid;gap:7px;font-size:13px;font-weight:800;color:#413f38}.passkeyAddBox label small{font-weight:500;color:#8d8a7e}.passkeyAddBox input{width:100%;box-sizing:border-box;border:1px solid #e2e0d9;border-radius:12px;background:#fff;padding:12px 13px;font:inherit;outline:none}.passkeyAddBox .passkeyPrimaryBtn{width:auto;min-width:220px}.passkeyAddBox .passkeyStatus{grid-column:1/-1;margin:0}.securityMeta{display:flex;flex-wrap:wrap;gap:8px 20px;margin:14px 0 4px;color:#8d8a7d;font-size:11px}.passkeyList{margin-top:24px}.passkeyList h2{font-size:18px;margin:0 0 12px}.passkeyItem{display:flex;align-items:center;gap:12px;border:1px solid #eae9e3;border-radius:14px;padding:14px 15px;margin-bottom:10px}.passkeyItemIcon{width:42px;height:42px;display:grid;place-items:center;border-radius:12px;background:#f6f5f2;font-size:20px}.passkeyItemText{display:flex;flex-direction:column;gap:4px;min-width:0;flex:1}.passkeyItemText strong{font-size:14px}.passkeyItemText small{color:#8d8a7d;font-size:11px;line-height:1.4}.passkeyDeleteBtn{border:1px solid #e3c7c7;background:#fff6f6;color:#9f2222;border-radius:10px;padding:9px 11px;font:inherit;font-size:12px;font-weight:800;cursor:pointer}.passkeyDeleteBtn:hover{background:#ffeaea}.passkeyEmpty{border:1px dashed #e3e1d9;border-radius:14px;padding:20px;color:#8d8a7f;text-align:center;font-size:13px}.securityPrivacy{margin-top:20px;background:#f9f9f7;border:1px solid #edece6;padding:13px 14px;border-radius:12px;color:#76746b;font-size:12px;line-height:1.55}.securityBack{display:inline-block;margin-top:18px;color:#c96442;text-decoration:none;font-weight:850;font-size:13px}
@media(max-width:720px){.securityShell{padding:14px}.securityCard{padding:24px 18px}.securityTop{flex-direction:column}.passkeyAddBox{grid-template-columns:1fr}.passkeyAddBox .passkeyPrimaryBtn{width:100%;min-width:0}.passkeyAddBox .passkeyStatus{grid-column:auto}.passkeyItem{align-items:flex-start}.passkeyDeleteBtn{margin-left:auto}.securityMeta{display:grid}}


/* ===== V18.5 Mot de passe oublié ===== */
.loginSuccess{padding:14px 15px;border-radius:12px;text-align:left;font-size:13px;line-height:1.45;margin-bottom:14px;background:#edf9f1;border:1px solid #bfe5ca;color:#176837}.forgotLinkRow{text-align:right;margin-top:-5px}.forgotLinkRow a{color:#c96442;text-decoration:none;font-size:12px;font-weight:850}.forgotLinkRow a:hover{text-decoration:underline}.devResetCode{margin:12px 0 16px;padding:16px;border:2px dashed #d58a00;border-radius:13px;background:#fff7df;color:#6f4a00;font-size:21px;letter-spacing:.08em}.devResetCode strong{display:block;font-size:11px;letter-spacing:.04em;margin-bottom:7px}.devResetCode small{display:block;font-size:10px;letter-spacing:0;margin-top:8px;color:#8a6a28}.passwordChangeBox{margin-top:28px;padding:20px;border:1px solid #ebe9e2;border-radius:16px;background:#fdfcfb}.passwordChangeBox h2{margin:0 0 7px;font-size:20px}.passwordChangeBox>p{margin:0 0 16px;color:#79766c;font-size:13px;line-height:1.55}.passwordChangeBox .accountPrimaryBtn{margin-top:2px}

/* V18.6 — Connexion avec Google */
.googleSignInBtn{display:flex;align-items:center;justify-content:center;gap:11px;width:100%;box-sizing:border-box;padding:13px 18px;border:1px solid #dadce0;border-radius:13px;background:#fff;color:#1f1f1f;text-decoration:none;font-weight:800;font-family:inherit;cursor:pointer;box-shadow:0 1px 2px rgba(60,64,67,.12)}
.googleSignInBtn:hover{background:#fdf9f8;border-color:#cfcdc8}
.googleSignInBtn:focus-visible{outline:3px solid #a8c7fa;outline-offset:2px}
.googleG{width:20px;height:20px;flex:0 0 20px}
.googleConsentNote{margin:8px 0 0;color:#99968a;font-size:11px;line-height:1.5;text-align:left}
.accountFinishBox .accountDivider{margin:14px 0}
.googleLinkBtn{width:auto;display:inline-flex;margin-top:4px}
.googleLinkBox{margin-bottom:0}

/* V18.7 — Historique des transcriptions sans nouvelle transcription */
.historyCard{margin-top:18px}
.historyCardHeader{display:flex;align-items:flex-end;justify-content:space-between;gap:14px;flex-wrap:wrap;margin-bottom:14px}
.historyCard h2{margin:0 0 4px}
.historyCard .hint{margin:0}
.historyPageSearch{width:240px;max-width:100%;box-sizing:border-box;border:1px solid #e6e4dd;border-radius:10px;padding:10px 12px;font:inherit;font-size:14px;outline:none}
.historyPageSearch:focus{border-color:#868275}
.historyPageList{display:flex;flex-direction:column;gap:6px;max-height:560px;overflow-y:auto}
.historyRow{display:grid;grid-template-columns:34px 1fr auto auto;align-items:center;gap:12px;width:100%;box-sizing:border-box;padding:12px 14px;border:1px solid #ecebe5;border-radius:12px;background:#fff;text-align:left;font:inherit;color:#312f25;cursor:pointer}
.historyRow:hover{background:#fcf7f5;border-color:#e1ded1}
.historyRow.current{border-color:#c96442;background:#fcf6f3}
.historyRow.disabled{cursor:default;opacity:.8}
.historyRow.disabled:hover{background:#fff;border-color:#ecebe5}
.historyRowIcon{width:34px;height:34px;display:grid;place-items:center;border-radius:9px;background:#f6f5f0;color:#757163;font-size:17px}
.historyRowText{min-width:0}
.historyRowText b{display:block;font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.historyRowText small{display:block;margin-top:3px;color:#908d7f;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.historyBadge{padding:4px 9px;border-radius:999px;font-size:11px;font-weight:800;white-space:nowrap}
.historyBadge.done{background:#e8f7ee;color:#157a3c}
.historyBadge.running{background:#faf0ec;color:#c96442}
.historyBadge.paused{background:#fff5dc;color:#8a5a00}
.historyBadge.failed{background:#fdecec;color:#a12626}
.historyRowAction{color:#c96442;font-weight:800;font-size:13px;white-space:nowrap}
.historyEmpty{padding:18px;border:1px dashed #e3e1d9;border-radius:12px;color:#8d8a7f;text-align:center;font-size:13px}
.historyGuestLogin{display:inline-block;margin-top:10px;padding:10px 16px;border-radius:10px;background:#c96442;color:#fff;text-decoration:none;font-weight:800}
.backToHistoryBtn{border:1px solid #e6e4dd;background:#fff;border-radius:10px;padding:9px 12px;font:inherit;font-size:13px;font-weight:700;color:#4c493c;cursor:pointer;white-space:nowrap}
.backToHistoryBtn:hover{background:#f8f7f4}
.seeAllHistoryBtn{float:right;border:0;background:transparent;color:#c96442;font:inherit;font-size:11px;font-weight:800;cursor:pointer;padding:0;text-transform:none;letter-spacing:0}
.historyList{max-height:none}
.headerActionLight{background:#fff!important;color:#312f25!important;border:1px solid #e1dfd7}
@media(max-width:560px){.historyRow{grid-template-columns:30px 1fr auto;gap:9px;padding:11px}.historyRowAction{display:none}.historyPageSearch{width:100%}}

/* V18.8 — état « chargement » du bouton Google */
.googleSignInBtn.loading{pointer-events:none;opacity:.75}
.googleSignInBtn.loading .googleG{animation:googleSpin 1s linear infinite}
@keyframes googleSpin{to{transform:rotate(360deg)}}


/* ============================================================
   Palette « Claude » : fond crème chaud, texte brun foncé,
   accent terracotta, titres en serif sobre, coins arrondis.
   ============================================================ */
body,.loginBody,.adminBody{background:var(--bg);color:var(--text)}
.loginBody{background:radial-gradient(circle at 15% 10%,#f6e3d6 0,transparent 38%),var(--bg)}
.card,.loginCard,.hero{background:var(--card);border-color:var(--line)}
h1,h2,.loginCard h1,.accountFinishBox h2,.documentHeader h1,.hero h1,.toolHero h1{font-family:var(--serif);font-weight:500;letter-spacing:-.01em}
.brand,.suiteBrand,.brandLink,.loginBrand,.workspaceBrand{font-family:var(--serif);font-weight:600;letter-spacing:.02em}
.primary:hover,.accountPrimaryBtn:hover,.accountFinishBtn:hover{background:var(--accent-hover)}
.historyGuestLogin:hover{filter:brightness(.95)}
