/* ======================================================================
   FreeCall Premium 4.2 « Démo connectée » — design « bleu nuit, or, vert »
   Coquille applicative, panneaux animés, chat, fichiers, vocaux (waveform),
   présence, saisie en cours, accusés, réponses, appels, lightbox,
   recherche globale avec filtres, liaison Telegram,
   page « Connecter » : chaque application se connecte (Telegram réel, les
   autres en démonstration avec contenu simulé) + badges de source
   ====================================================================== */

/* ---------- 1. Jetons de design & coquille ---------- */
.fc-app{
  --fc-gold:#d8ac44;
  --fc-gold-soft:rgba(216,172,68,.18);
  --fc-green:#08db57;
  --fc-green-deep:#06b94a;
  --fc-ink:#f1f4ff;
  --fc-dim:#9da6d2;
  --fc-line:rgba(148,163,230,.13);
  --fc-card:#131b40;
  --fc-radius:18px;
  position:relative;
  box-sizing:border-box;
  max-width:620px;
  margin:26px auto;
  min-height:720px;
  display:flex;
  flex-direction:column;
  color:var(--fc-ink);
  border:1px solid rgba(196,156,62,.45);
  border-radius:28px;
  overflow:hidden;
  font-family:Inter,system-ui,-apple-system,"Segoe UI",sans-serif;
  background:
    radial-gradient(120% 90% at 85% -10%, #1c2f73 0%, rgba(28,47,115,0) 55%),
    radial-gradient(90% 70% at -10% 110%, #101a45 0%, rgba(16,26,69,0) 50%),
    linear-gradient(180deg,#0c1332 0%,#060a1c 100%);
  box-shadow:0 30px 80px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.06);
}
.fc-app *,.fc-app *::before,.fc-app *::after{box-sizing:border-box}
.fc-app button{font-family:inherit}
.fc-app :focus-visible{outline:2px solid var(--fc-gold);outline-offset:2px}
.fc-version{margin-left:auto;font-size:10px;font-weight:800;letter-spacing:.4px;color:#181206;background:linear-gradient(120deg,#e8c464,#c99a2e);border-radius:99px;padding:5px 10px}
.fc-net{margin-left:8px;font-size:11px;font-weight:800;color:#1b0f00;background:#ff9b57;border-radius:99px;padding:5px 10px;box-shadow:0 4px 14px rgba(255,155,87,.25)}
.fc-net[hidden]{display:none}

/* ---------- 2. Barre supérieure ---------- */
.fc-top{display:flex;align-items:center;gap:11px;padding:20px 24px;border-bottom:1px solid var(--fc-line);background:rgba(6,10,28,.55);backdrop-filter:blur(6px)}
.fc-mark{display:grid;place-items:center;width:42px;height:42px;flex:0 0 42px;color:#fff;background:linear-gradient(140deg,#058a37,#08c951);border:2px solid var(--fc-gold);border-radius:50%;box-shadow:0 6px 18px rgba(8,219,87,.28)}
.fc-mark .fc-svg{width:22px;height:22px}
.fc-brand{font-size:27px;font-weight:800;letter-spacing:-1.1px;background:linear-gradient(180deg,#fff,#ccd4f0);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent}
.fc-brand span{color:var(--fc-gold);-webkit-text-fill-color:var(--fc-gold)}

/* ---------- 3. Panneaux & animation d'entrée ---------- */
.fc-panel{min-height:555px;padding:26px 24px;flex:1}
.fc-panel[hidden]{display:none!important}
.fc-panel:not([hidden]){animation:fcIn .32s cubic-bezier(.2,.7,.3,1)}
@keyframes fcIn{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
.fc-panel h2{font-size:22px;line-height:1.3;margin:0 0 10px;color:#fff;letter-spacing:-.3px}
.fc-muted{color:var(--fc-dim);font-size:14px;margin:0 0 22px;line-height:1.55}
.fc-small{font-size:12px}.fc-c{text-align:center}

/* ---------- 4. Accueil ---------- */
.fc-welcome{display:flex;align-items:center;gap:13px;margin-bottom:28px}
.fc-avatar{height:54px;width:54px;flex:0 0 54px;display:grid;place-items:center;background:linear-gradient(140deg,#008c34,#06e35a);border-radius:50%;font-size:25px;font-weight:800;color:#fff;border:2px solid rgba(216,172,68,.55);background-size:cover;background-position:center}
.fc-avatar.has-image{color:transparent}
.fc-avatar.sm{width:44px;height:44px;flex:0 0 44px;font-size:18px;border-width:2px}
.fc-avatar.lg{width:110px;height:110px;flex:0 0 110px;font-size:42px;border-width:3px;margin:0 auto;box-shadow:0 14px 40px rgba(0,0,0,.5)}
.fc-welcome strong{display:block;font-size:17px;letter-spacing:-.2px}
.fc-welcome small{display:block;margin-top:4px;font-size:13px;color:var(--fc-dim)}
.fc-dot{width:10px;height:10px;margin-left:auto;border-radius:50%;background:var(--fc-green);box-shadow:0 0 0 4px rgba(8,219,87,.15),0 0 12px rgba(8,219,87,.6);animation:fcBreathe 2.6s ease-in-out infinite}
@keyframes fcBreathe{50%{box-shadow:0 0 0 7px rgba(8,219,87,.08),0 0 6px rgba(8,219,87,.4)}}
.fc-tiles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.fc-tiles button{position:relative;appearance:none;border:1px solid rgba(255,255,255,.1);background:linear-gradient(150deg,#182150 0%,#0e1434 100%);border-radius:var(--fc-radius);color:var(--fc-ink);min-height:118px;padding:14px 7px;font:600 12px/1.4 inherit;cursor:pointer;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:11px;text-align:center;transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease}
.fc-tiles button:hover,.fc-tiles button:focus-visible{transform:translateY(-3px);border-color:var(--fc-gold);box-shadow:0 14px 30px rgba(0,0,0,.45),0 0 0 1px var(--fc-gold-soft)}
.fc-tiles button:active{transform:translateY(-1px) scale(.98)}
.fc-tiles button span{display:grid;place-items:center;width:54px;height:54px;border-radius:16px;background:linear-gradient(145deg,#101e55,#0b1233);border:1px solid rgba(216,172,68,.35);color:var(--fc-gold);font-size:28px;transition:box-shadow .18s ease}
.fc-tiles button:hover span{box-shadow:0 0 18px rgba(216,172,68,.22)}
.fc-tiles button:nth-child(4) span{color:#25d366}
.fc-tiles button span .fc-svg{width:28px;height:28px}
.fc-highlight{margin-top:24px;display:flex;gap:15px;align-items:center;background:linear-gradient(115deg,#2a2410,#0e1638);border:1px solid rgba(216,172,68,.65);border-radius:var(--fc-radius);padding:19px;box-shadow:inset 0 1px 0 rgba(255,255,255,.07)}
.fc-highlight>span{display:grid;place-items:center;font-size:34px;color:var(--fc-gold)}
.fc-highlight>span .fc-svg{width:34px;height:34px}
.fc-highlight strong{font-size:17px}
.fc-highlight p{font-size:13px;color:#e3ddc4;margin:7px 0 0;line-height:1.55}
.fc-highlight .fc-submit{margin-top:12px}
.fc-empty{border:1px dashed rgba(150,124,58,.75);border-radius:var(--fc-radius);padding:28px 20px;color:#e7dfc7;background:rgba(255,255,255,.03);font-size:14px;line-height:1.7}
.fc-empty .fc-submit{margin-top:14px}

/* ---------- 5. Navigation basse ---------- */
.fc-nav{display:flex;justify-content:space-between;gap:4px;border-top:1px solid var(--fc-line);padding:10px 12px calc(12px + env(safe-area-inset-bottom,0px));background:#080d22}
.fc-nav button{position:relative;background:none;border:0;color:#8b95c4;cursor:pointer;display:flex;flex-direction:column;align-items:center;gap:3px;font-size:11px;font-weight:600;flex:1 1 0;min-width:0;padding:5px 2px;transition:color .18s ease}
.fc-nav button::after{content:'';width:16px;height:3px;border-radius:2px;background:transparent;transition:background .18s ease}
.fc-nav button.is-active,.fc-nav button:hover{color:var(--fc-green)}
.fc-nav button.is-active::after{background:linear-gradient(90deg,#06b94a,#08db57)}
.fc-nav button span{font-size:22px;display:grid;place-items:center}
.fc-nav button span .fc-svg{width:22px;height:22px}
.fc-nav .fc-badge{top:-4px;right:14%}

/* ---------- 6. Formulaires & boutons ---------- */
.fc-form{display:grid;gap:13px;margin-top:4px}
.fc-form[hidden]{display:none!important}
.fc-form label{display:grid;gap:7px;color:#e8e2cf;font-size:13px;font-weight:650}
.fc-form input,.fc-form textarea{width:100%;border:1px solid #39457e;border-radius:12px;background:#0d1433;color:#fff;padding:13px 14px;font:inherit;font-size:14.5px;outline:none;transition:border-color .18s ease,box-shadow .18s ease}
.fc-form input:focus,.fc-form textarea:focus{border-color:var(--fc-gold);box-shadow:0 0 0 3px var(--fc-gold-soft)}
.fc-submit{width:100%;border:1px solid rgba(216,172,68,.75);border-radius:13px;background:linear-gradient(110deg,#00bd4a,#08dc59);color:#031008;font-weight:800;font-size:14.5px;padding:14px 16px;cursor:pointer;margin-top:6px;transition:filter .18s ease,transform .12s ease,box-shadow .18s ease;box-shadow:0 10px 24px rgba(8,219,87,.18)}
.fc-submit:hover{filter:brightness(1.07)}
.fc-submit:active{transform:scale(.985)}
.fc-submit:disabled{opacity:.6;cursor:wait}
.fc-submit.fc-secondary{background:#151c42;color:#f4f4f4;border-color:#47528a;box-shadow:none}
.fc-inline{grid-template-columns:1fr auto;align-items:center}
.fc-inline .fc-submit{width:auto;margin:0;white-space:nowrap}
.fc-check{display:flex!important;grid-template-columns:none;align-items:flex-start;gap:10px!important;font-weight:500!important;font-size:12.5px!important;color:#c6ccec!important}
.fc-check input{width:auto!important;margin-top:2px;accent-color:#08db57}
.fc-link{color:var(--fc-gold);font-size:13px;text-align:center;text-decoration:none}
.fc-link:hover{text-decoration:underline}
.fc-feedback{min-height:20px;margin-top:12px;font-size:13px;line-height:1.5}
.fc-feedback.is-error{color:#ff8080}
.fc-feedback.is-success{color:#79eca3}
.fc-auth-tabs{display:flex;gap:8px;margin:16px 0 18px;padding:5px;border:1px solid var(--fc-line);border-radius:14px;background:rgba(0,0,0,.35)}
.fc-auth-tabs button{flex:1;border:0;background:transparent;color:#c3c9e8;border-radius:10px;padding:12px 8px;font-weight:700;font-size:13px;cursor:pointer;transition:background .18s ease,color .18s ease}
.fc-auth-tabs button.is-active{background:linear-gradient(110deg,#00b947,#08dc59);color:#031008;box-shadow:0 4px 18px rgba(0,214,91,.25)}

/* ---------- 7. Profil ---------- */
.fc-profile-card{display:flex;align-items:center;gap:14px;padding:16px;border:1px solid rgba(216,172,68,.35);background:rgba(255,255,255,.03);border-radius:16px;margin:16px 0}
.fc-profile-avatar{width:58px;height:58px;flex:0 0 58px;border-radius:50%;display:grid;place-items:center;background:linear-gradient(135deg,#007c35,#08dc59);background-position:center;background-size:cover;border:2px solid var(--fc-gold);font-size:24px;font-weight:800;color:#fff}
.fc-profile-avatar.has-image{color:transparent}
.fc-profile-card strong,.fc-profile-card small{display:block;overflow-wrap:anywhere}
.fc-profile-card small{color:#a9b2d8;font-size:12px;margin-top:4px}

/* ---------- 8. Listes : contacts, conversations ---------- */
.fc-list{display:grid;gap:10px}
.fc-list[hidden],.fc-chips[hidden]{display:none!important}
.fc-row{display:flex;align-items:center;gap:12px;padding:12px 14px;border:1px solid rgba(148,163,230,.14);border-radius:16px;background:linear-gradient(150deg,#182150,#10163a);color:#f0f2fc;text-align:left;width:100%;font:inherit;transition:border-color .18s ease,transform .15s ease}
button.fc-row{cursor:pointer}
button.fc-row:hover{border-color:var(--fc-gold);transform:translateY(-1px)}
.fc-row-t{flex:1;min-width:0}
.fc-row-t strong,.fc-row-t small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.fc-row-t small{color:#98a2cc;font-size:12.5px;margin-top:3px}
.fc-time{display:flex;flex-direction:column;align-items:flex-end;gap:6px;font-size:11px;color:#98a2cc}
.fc-time .fc-badge{position:static}
.fc-badge{position:absolute;top:8px;right:10px;min-width:20px;height:20px;padding:0 6px;border-radius:99px;background:var(--fc-green);color:#031008;font:800 11px/20px system-ui;font-style:normal;text-align:center;box-shadow:0 4px 10px rgba(8,219,87,.35)}
.fc-badge[hidden]{display:none}
.fc-ic{flex:0 0 auto;width:40px;height:40px;border-radius:12px;border:1px solid #333e76;background:#121a3e;color:var(--fc-gold);cursor:pointer;display:grid;place-items:center;transition:border-color .18s ease,background .18s ease}
.fc-ic .fc-svg{width:19px;height:19px}
.fc-ic:hover{border-color:var(--fc-gold);background:#1a2450}
.fc-ic.del{color:#ff8b8b}
.fc-ic.del:hover{border-color:#ff8b8b}

/* ---------- 9. Conversation ---------- */
.fc-chat{display:flex;flex-direction:column;padding:0!important;height:620px}
.fc-chat[hidden]{display:none!important}
.fc-chat-head{display:flex;align-items:center;gap:10px;padding:13px 16px;border-bottom:1px solid var(--fc-line);background:rgba(6,10,28,.5)}
.fc-chat-head strong{flex:1;font-size:16px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.fc-back{background:none;border:0;color:var(--fc-gold);cursor:pointer;padding:2px 6px;display:grid;place-items:center}
.fc-back .fc-svg{width:24px;height:24px}
.fc-back-top{font-size:14px;font-weight:700;margin:-6px 0 12px -6px;padding:4px 6px}
.fc-msgs{flex:1;overflow-y:auto;padding:16px;display:flex;flex-direction:column;gap:8px;scrollbar-width:thin;scrollbar-color:#2a3468 transparent;overscroll-behavior:contain}
.fc-msgs::-webkit-scrollbar{width:8px}
.fc-msgs::-webkit-scrollbar-thumb{background:#2a3468;border-radius:8px}
.fc-msgs::-webkit-scrollbar-track{background:transparent}
.fc-bubble{max-width:80%;align-self:flex-start;background:#1a244e;border:1px solid rgba(148,163,230,.14);border-radius:18px 18px 18px 6px;padding:9px 13px;animation:fcPop .22s ease}
@keyframes fcPop{from{opacity:0;transform:translateY(6px) scale(.97)}to{opacity:1;transform:none}}
.fc-bubble.mine{align-self:flex-end;background:linear-gradient(120deg,#e8c464,#c9962e);border-color:rgba(255,219,140,.55);border-radius:18px 18px 6px 18px;box-shadow:0 6px 16px rgba(201,150,46,.25)}
.fc-bubble.mine p{color:#241b06}
.fc-bubble.mine small{color:rgba(36,27,6,.62)}
.fc-bubble.has-img.mine p,.fc-bubble.has-file.mine p{color:#f1e4bc}
.fc-bubble.has-img.mine small,.fc-bubble.has-file.mine small{color:rgba(241,228,188,.6)}
.fc-bubble.mine .fc-quote{background:rgba(0,0,0,.14);color:#4a3a10}
.fc-bubble.mine .fc-quote b{color:#6b4e0a}
.fc-bubble p{margin:0;font-size:14.5px;line-height:1.5;overflow-wrap:anywhere}
.fc-bubble small{display:block;text-align:right;font-size:10.5px;color:#cfdcf2;opacity:.72;margin-top:4px}
.fc-bubble.has-img,.fc-bubble.has-file{padding:5px 5px 7px;background:#141c44;border-color:rgba(148,163,230,.16)}
.fc-bubble.has-img.mine{background:#2a2210;border-color:rgba(216,172,68,.4)}
.fc-bubble.has-img p,.fc-bubble.has-file p{padding:5px 8px 2px}
.fc-bubble.has-img small,.fc-bubble.has-file small{padding-right:8px}
.fc-img{display:block;max-width:min(300px,72vw);width:100%;border-radius:13px;cursor:zoom-in;background:#0a0f26}
.fc-filecard{display:flex;align-items:center;gap:11px;min-width:215px;max-width:100%;padding:5px 4px}
.fc-fic{flex:0 0 42px;width:42px;height:42px;border-radius:12px;display:grid;place-items:center;font:800 10px/1 system-ui,sans-serif;letter-spacing:.4px;background:linear-gradient(145deg,#263061,#151c42);border:1px solid rgba(216,172,68,.4);color:var(--fc-gold)}
.fc-fic[data-ext="PDF"]{color:#ff8a80;border-color:rgba(255,138,128,.35);background:linear-gradient(145deg,#33201f,#1a1211)}
.fc-fic[data-ext="DOC"],.fc-fic[data-ext="DOCX"],.fc-fic[data-ext="ODT"],.fc-fic[data-ext="RTF"]{color:#82b4ff;border-color:rgba(130,180,255,.35);background:linear-gradient(145deg,#1c2637,#111722)}
.fc-fic[data-ext="XLS"],.fc-fic[data-ext="XLSX"],.fc-fic[data-ext="ODS"],.fc-fic[data-ext="CSV"]{color:#67d98e;border-color:rgba(103,217,142,.35);background:linear-gradient(145deg,#16281c,#101a13)}
.fc-fic[data-ext="PPT"],.fc-fic[data-ext="PPTX"]{color:#ffb56b;border-color:rgba(255,181,107,.35);background:linear-gradient(145deg,#332619,#1a130d)}
.fc-fic[data-ext="ZIP"]{color:#c39cff;border-color:rgba(195,156,255,.35);background:linear-gradient(145deg,#241d33,#14101d)}
.fc-fmeta{flex:1;min-width:0}
.fc-fmeta strong,.fc-fmeta small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.fc-fmeta strong{font-size:13.5px;font-weight:700}
.fc-fmeta small{font-size:11.5px;color:#98a2cc;margin-top:3px}
.fc-dl{flex:0 0 36px;width:36px;height:36px;border-radius:50%;display:grid;place-items:center;border:1px solid rgba(255,255,255,.18);color:var(--fc-gold);text-decoration:none;transition:border-color .18s ease,background .18s ease}
.fc-dl .fc-svg{width:18px;height:18px}
.fc-dl:hover,.fc-dl:focus-visible{border-color:var(--fc-gold);background:var(--fc-gold-soft)}
.fc-pending{opacity:.75}
.fc-pending p{font-style:italic}
.fc-compose{display:flex;gap:9px;align-items:flex-end;padding:12px 14px calc(12px + env(safe-area-inset-bottom,0px));border-top:1px solid var(--fc-line);background:#080d22}
.fc-compose textarea{flex:1;resize:none;border:1px solid #39457e;border-radius:16px;background:#10183c;color:#fff;padding:11px 14px;font:inherit;font-size:15px;line-height:1.45;max-height:140px;outline:none;transition:border-color .18s ease}
.fc-compose textarea:focus{border-color:var(--fc-gold)}
.fc-clip{width:44px;height:44px;flex:0 0 44px;border-radius:14px;border:1px solid rgba(148,163,230,.16);background:#131b40;color:var(--fc-gold);display:grid;place-items:center;cursor:pointer;transition:border-color .18s ease,background .18s ease}
.fc-clip .fc-svg{width:20px;height:20px}
.fc-clip:hover,.fc-clip:focus-visible{border-color:var(--fc-gold);background:#1a2450}
.fc-compose [type=submit]{width:44px;height:44px;flex:0 0 44px;border:0;border-radius:14px;background:linear-gradient(110deg,#00bd4a,#08dc59);color:#031008;cursor:pointer;display:grid;place-items:center;transition:filter .18s ease,transform .12s ease}
.fc-compose [type=submit] .fc-svg{width:21px;height:21px}
.fc-compose [type=submit]:hover{filter:brightness(1.08)}
.fc-compose [type=submit]:active{transform:scale(.94)}

/* ---------- 10. Écran d'appel ---------- */
.fc-call{position:absolute;inset:0;z-index:20;display:flex;flex-direction:column;align-items:center;justify-content:space-between;padding:64px 20px 44px;background:radial-gradient(ellipse at top,#14235e 0%,#04060f 72%)}
.fc-call[hidden]{display:none!important}
.fc-call video{display:none;background:#000}
.fc-call.video.live .fc-remote{display:block;position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.fc-call.video .fc-local{display:block;position:absolute;right:14px;top:14px;width:30%;max-width:150px;aspect-ratio:3/4;object-fit:cover;border-radius:14px;border:2px solid var(--fc-gold);z-index:2;transform:scaleX(-1);box-shadow:0 10px 26px rgba(0,0,0,.5)}
.fc-call.video.live .fc-call-info{position:relative;z-index:2;text-shadow:0 2px 8px #000}
.fc-call.video.live .fc-call-info .fc-avatar{display:none}
.fc-call-info{text-align:center;display:grid;gap:10px}
.fc-call-info strong{font-size:24px;letter-spacing:-.3px}
.fc-call-info small{color:#c4cdee;font-size:14px}
.fc-call:not(.live) .fc-avatar.lg{animation:fcRingPulse 1.9s ease-out infinite}
@keyframes fcRingPulse{0%{box-shadow:0 14px 40px rgba(0,0,0,.5),0 0 0 0 rgba(8,219,87,.35)}70%{box-shadow:0 14px 40px rgba(0,0,0,.5),0 0 0 22px rgba(8,219,87,0)}100%{box-shadow:0 14px 40px rgba(0,0,0,.5),0 0 0 0 rgba(8,219,87,0)}}
.fc-call-btns{position:relative;z-index:2;display:flex;gap:18px}
.fc-cbtn{width:64px;height:64px;border-radius:50%;border:0;background:rgba(255,255,255,.13);color:#fff;cursor:pointer;display:grid;place-items:center;backdrop-filter:blur(6px);transition:background .18s ease,transform .12s ease}
.fc-cbtn .fc-svg{width:27px;height:27px}
.fc-cbtn:hover{background:rgba(255,255,255,.2)}
.fc-cbtn:active{transform:scale(.94)}
.fc-cbtn[hidden]{display:none}
.fc-cbtn.accept{background:#08c454;animation:fcAcceptPulse 1.6s ease infinite}
@keyframes fcAcceptPulse{0%,100%{box-shadow:0 0 0 0 rgba(8,196,84,.45)}55%{box-shadow:0 0 0 16px rgba(8,196,84,0)}}
.fc-cbtn.hang{background:#e5383b;box-shadow:0 8px 22px rgba(229,56,59,.35)}
.fc-call.muted [data-fc-mute],.fc-call.camoff [data-fc-cam]{background:#fff;color:#111}

/* ---------- 11. Visionneuse (lightbox) ---------- */
.fc-lightbox{position:absolute;inset:0;z-index:40;display:grid;place-items:center;background:rgba(3,6,16,.93);backdrop-filter:blur(5px);animation:fcIn .2s ease}
.fc-lightbox[hidden]{display:none!important}
.fc-lightbox img{max-width:92%;max-height:86%;border-radius:14px;border:1px solid rgba(216,172,68,.3);box-shadow:0 24px 70px rgba(0,0,0,.8)}
.fc-lb-x{position:absolute;top:14px;right:14px;width:40px;height:40px;border-radius:50%;border:1px solid rgba(255,255,255,.22);background:rgba(255,255,255,.09);color:#fff;font-size:15px;cursor:pointer;display:grid;place-items:center}
.fc-lb-x:hover{background:rgba(255,255,255,.18)}

/* ---------- 12. WhatsApp, IA, composer d'appel ---------- */
.fc-wa{display:block;text-align:center;text-decoration:none;background:linear-gradient(110deg,#1ebe5d,#25d366)!important;color:#03140a!important;border-color:rgba(37,211,102,.7)!important}
.fc-ai-av{background:linear-gradient(135deg,#d8ac44,#8a6a1e)!important;color:#111!important;font-size:14px!important}
.fc-typing p{animation:fcBlink 1s infinite}
@keyframes fcBlink{50%{opacity:.3}}
.fc-dial{margin-bottom:14px}
.fc-dial-btns{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.fc-dial-btns .fc-submit{margin:0}

/* ---------- 13. Responsive & accessibilité ---------- */
@media(max-width:600px){
  .fc-app{margin:0;border-radius:0;border-left:0;border-right:0;min-height:100vh;min-height:100dvh}
  .fc-chat{height:calc(100vh - 168px);height:calc(100dvh - 168px)}
  .fc-panel{padding:22px 16px}
  .fc-top{padding:16px 16px}
  .fc-tiles{gap:9px}
  .fc-tiles button{min-height:104px}
}
@media(max-width:440px){
  .fc-brand{font-size:24px}
  .fc-form input,.fc-form textarea{font-size:16px}
  .fc-auth-tabs button{font-size:12px}
  .fc-bubble{max-width:86%}
  .fc-clip,.fc-compose [type=submit]{width:40px;height:40px;flex:0 0 40px}
  .fc-nav button{font-size:10px}
  .fc-nav button span{font-size:20px}
  .fc-nav button span .fc-svg{width:20px;height:20px}
}
@media(prefers-reduced-motion:reduce){
  .fc-app *,.fc-app *::before,.fc-app *::after{animation:none!important;transition:none!important}
}

/* ---------- 14. Signature 3.0 : présence, saisie, vocaux, réponses, émojis ---------- */
.fc-bubble{position:relative}
.fc-avwrap{position:relative;flex:0 0 44px;display:flex}
.fc-presence{position:absolute;right:-2px;bottom:-2px;width:13px;height:13px;border-radius:50%;background:var(--fc-green);border:2.5px solid #0f1638;box-shadow:0 0 8px rgba(8,219,87,.55)}
.fc-presence[hidden]{display:none}
.fc-presence.lg{width:20px;height:20px;right:4px;bottom:4px;border-width:3px}
.fc-chat-t{flex:1;min-width:0;display:flex;flex-direction:column;gap:1px}
.fc-chat-t strong{font-size:16px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.fc-chat-status{font-size:11.5px;color:var(--fc-dim);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;transition:color .18s ease}
.fc-chat-status.writing{color:var(--fc-green)}

/* Indicateur « en train d'écrire » */
.fc-tdots{display:flex;gap:5px;align-items:center;padding:14px 16px}
.fc-tdots i{width:7px;height:7px;border-radius:50%;background:var(--fc-dim);animation:fcBounce 1.2s infinite}
.fc-tdots i:nth-child(2){animation-delay:.15s}
.fc-tdots i:nth-child(3){animation-delay:.3s}
@keyframes fcBounce{0%,60%,100%{transform:none;opacity:.45}30%{transform:translateY(-5px);opacity:1}}

/* Bulle vocale avec waveform */
.fc-bubble.has-voice{background:#141c44;border-color:rgba(148,163,230,.16);padding:8px 10px}
.fc-bubble.has-voice.mine{background:#2a2210;border-color:rgba(216,172,68,.4)}
.fc-voice{display:flex;align-items:center;gap:10px;min-width:212px}
.fc-vplay{flex:0 0 38px;width:38px;height:38px;border-radius:50%;border:0;cursor:pointer;display:grid;place-items:center;background:linear-gradient(120deg,#e8c464,#b8892b);color:#181206;box-shadow:0 4px 12px rgba(216,172,68,.35);transition:transform .12s ease,filter .15s ease}
.fc-vplay:hover{filter:brightness(1.08)}
.fc-vplay:active{transform:scale(.92)}
.fc-vplay .ic-play{display:block}
.fc-vplay .ic-pause{display:none}
.fc-vplay .ic-play,.fc-vplay .ic-pause{line-height:0}
.fc-vplay .fc-svg{width:17px;height:17px}
.fc-voice.playing .fc-vplay{background:linear-gradient(120deg,#08dc59,#05b356);color:#031008;box-shadow:0 4px 12px rgba(8,219,87,.4)}
.fc-voice.playing .ic-play{display:none}
.fc-voice.playing .ic-pause{display:block}
.fc-wave{flex:1;display:flex;align-items:center;gap:2px;height:30px;cursor:pointer;min-width:0}
.fc-wave i{flex:1 1 0;min-width:2px;max-width:5px;background:rgba(255,255,255,.28);border-radius:2px;transition:background .15s ease}
.fc-wave i.on{background:var(--fc-gold)}
.fc-vdur{font-size:11px;color:#cfd8f2;font-variant-numeric:tabular-nums;flex:0 0 auto}

/* Bouton répondre + citation */
.fc-ract{position:absolute;top:-10px;right:8px;width:26px;height:26px;border-radius:50%;border:1px solid var(--fc-line);background:#17204a;color:var(--fc-gold);cursor:pointer;display:grid;place-items:center;opacity:0;transform:translateY(-3px);transition:opacity .15s ease,transform .15s ease;z-index:2}
.fc-bubble:hover .fc-ract,.fc-ract:focus-visible{opacity:1;transform:none}
.fc-ract .fc-svg{width:14px;height:14px}
@media(hover:none){.fc-ract{opacity:.8;top:-12px}}
.fc-quote{display:block;max-width:100%;border-left:3px solid var(--fc-gold);background:rgba(216,172,68,.1);border-radius:8px;padding:6px 9px;margin-bottom:7px;font-size:12.5px;color:#d9cdb2;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.fc-quote b{display:block;font-size:11.5px;color:var(--fc-gold);margin-bottom:2px}
.fc-replybar{display:flex;align-items:center;gap:10px;margin:0 14px 8px;padding:9px 12px;border:1px solid rgba(216,172,68,.45);border-left:3px solid var(--fc-gold);border-radius:12px;background:rgba(216,172,68,.08);animation:fcIn .18s ease}
.fc-replybar[hidden]{display:none!important}
.fc-quote-mini{flex:1;min-width:0;font-size:12.5px;color:#d9cdb2;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.fc-quote-mini b{color:var(--fc-gold);margin-right:6px}
.fc-rx{width:28px;height:28px;flex:0 0 28px;border-radius:50%;border:1px solid var(--fc-line);background:#17204a;color:#ffb3b3;cursor:pointer;font-size:12px;display:grid;place-items:center}
.fc-rx:hover{border-color:#ff8b8b}

/* Barre d'enregistrement */
.fc-recbar{display:flex;align-items:center;gap:11px;margin:10px 14px 0;padding:11px 14px;border-radius:14px;border:1px solid rgba(229,56,59,.5);background:linear-gradient(110deg,rgba(229,56,59,.16),rgba(8,219,87,.1));animation:fcIn .2s ease}
.fc-recbar[hidden]{display:none!important}
.fc-recdot{width:12px;height:12px;border-radius:50%;background:#ff5252;animation:fcRecPulse 1.1s ease infinite}
@keyframes fcRecPulse{50%{box-shadow:0 0 0 6px rgba(255,82,82,.18);opacity:.65}}
.fc-recbar strong{font-variant-numeric:tabular-nums;font-size:14px}
.fc-reclab{flex:1;font-size:12.5px;color:#ffd9d9}
.fc-recbar .fc-ic{width:34px;height:34px;flex:0 0 34px;border-radius:10px}
.fc-recbar .fc-ic.ok{color:var(--fc-green)}
.fc-recbar .fc-ic.ok:hover{border-color:var(--fc-green)}
.fc-chat.recording .fc-compose{opacity:.35;pointer-events:none}

/* Sélecteur d'émojis */
.fc-emo-wrap{position:relative;flex:0 0 auto}
.fc-emoji-pop{position:absolute;right:0;bottom:calc(100% + 10px);width:240px;padding:9px;display:grid;grid-template-columns:repeat(6,1fr);gap:2px;background:#10183c;border:1px solid var(--fc-line);border-radius:14px;box-shadow:0 18px 44px rgba(0,0,0,.6);z-index:14;animation:fcIn .16s ease}
.fc-emoji-pop[hidden]{display:none!important}
.fc-emoji-pop button{background:none;border:0;border-radius:9px;font-size:19px;line-height:1;padding:6px 0;cursor:pointer;transition:background .12s ease,transform .12s ease}
.fc-emoji-pop button:hover{background:rgba(216,172,68,.15);transform:scale(1.12)}

/* Accusés de lecture */
.fc-rcp{color:rgba(36,27,6,.55);letter-spacing:-1px}
.fc-rcp.read{color:#12439b}

/* ---------- 15. One 4.0 : recherche globale, Telegram ---------- */
.fc-search{position:relative;display:flex;align-items:center;margin:0 0 12px}
.fc-search .fc-sico{position:absolute;left:13px;color:var(--fc-dim);display:grid;place-items:center;width:18px;height:18px;pointer-events:none}
.fc-search .fc-sico .fc-svg{width:17px;height:17px}
.fc-search input{width:100%;border:1px solid var(--fc-line);border-radius:14px;background:rgba(255,255,255,.05);color:#fff;padding:13px 40px 13px 41px;font:inherit;font-size:14.5px;outline:none;transition:border-color .18s ease,box-shadow .18s ease;appearance:none;-webkit-appearance:none}
.fc-search input::placeholder{color:#7d87b5}
.fc-search input:focus{border-color:var(--fc-gold);box-shadow:0 0 0 3px var(--fc-gold-soft)}
.fc-search input::-webkit-search-cancel-button{display:none}
.fc-sclear{position:absolute;right:9px;width:26px;height:26px;border-radius:50%;border:0;background:rgba(255,255,255,.12);color:#fff;font-size:11px;cursor:pointer;display:grid;place-items:center}
.fc-sclear:hover{background:rgba(255,255,255,.2)}
.fc-sclear[hidden]{display:none}
.fc-chips{display:flex;gap:7px;margin:0 0 14px;overflow-x:auto;padding-bottom:2px;scrollbar-width:none}
.fc-chips::-webkit-scrollbar{display:none}
.fc-chips button{flex:0 0 auto;border:1px solid var(--fc-line);background:rgba(255,255,255,.05);color:var(--fc-dim);border-radius:99px;padding:8px 14px;font:700 12.5px/1 inherit;cursor:pointer;transition:color .15s ease,border-color .15s ease,background .15s ease}
.fc-chips button:hover{color:#fff;border-color:rgba(216,172,68,.5)}
.fc-chips button.is-active{background:linear-gradient(110deg,#e8c464,#c99a2e);border-color:transparent;color:#221a06}
.fc-ssec{margin:14px 2px 8px;font-size:11px;font-weight:800;letter-spacing:.8px;text-transform:uppercase;color:var(--fc-gold)}
.fc-srow{width:100%;text-align:left}
.fc-sthumb{flex:0 0 46px;width:46px;height:46px;border-radius:12px;object-fit:cover;background:#0a0f26;border:1px solid var(--fc-line)}
.fc-surl{display:block;color:#7fa0e8!important;font-size:11.5px;margin-top:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.fc-row mark{background:rgba(216,172,68,.3);color:#ffe9a8;border-radius:3px;padding:0 1px}
.fc-flash{animation:fcFlash 2.2s ease}
@keyframes fcFlash{0%,60%{box-shadow:0 0 0 2px var(--fc-gold),0 0 22px rgba(216,172,68,.45)}100%{box-shadow:none}}
.fc-tgcard{margin:16px 0;border:1px solid rgba(41,171,226,.35);background:linear-gradient(150deg,rgba(41,171,226,.1),rgba(255,255,255,.03));border-radius:16px;padding:16px}
.fc-wacard{margin:16px 0;border:1px solid rgba(37,211,102,.35);background:linear-gradient(150deg,rgba(37,211,102,.1),rgba(255,255,255,.03));border-radius:16px;padding:16px}
.fc-wa-logo{flex:0 0 42px;width:42px;height:42px;border-radius:12px;display:grid;place-items:center;background:linear-gradient(140deg,#25d366,#128c7e);color:#fff;box-shadow:0 6px 16px rgba(37,211,102,.3)}
.fc-wa-logo .fc-svg{width:22px;height:22px}
.fc-wa-open{background:linear-gradient(110deg,#25d366,#128c7e)!important;color:#fff!important;border-color:rgba(37,211,102,.7)!important;text-decoration:none}
.fc-wa-link{color:#4fd98a}
.fc-tg-head{display:flex;align-items:center;gap:12px;margin-bottom:12px}
.fc-tg-logo{flex:0 0 42px;width:42px;height:42px;border-radius:12px;display:grid;place-items:center;background:linear-gradient(140deg,#2aabee,#229ed9);color:#fff;box-shadow:0 6px 16px rgba(41,171,226,.3)}
.fc-tg-logo .fc-svg{width:22px;height:22px}
.fc-tg-head strong{display:block;font-size:15.5px}
.fc-tg-head small{display:block;color:var(--fc-dim);font-size:12.5px;margin-top:2px}
.fc-tg-steps{margin-top:12px}
.fc-tg-steps ol{margin:0 0 12px;padding-left:20px;color:#d8def6;font-size:13.5px;line-height:1.75}
.fc-tg-steps code{display:inline-block;background:rgba(216,172,68,.16);border:1px dashed rgba(216,172,68,.55);color:#ffe9a8;border-radius:8px;padding:2px 9px;font-size:14px;letter-spacing:2.5px;font-weight:800}
.fc-tg-btns{display:grid;grid-template-columns:1fr 1fr;gap:9px}
.fc-tg-btns .fc-submit{margin:0;text-align:center}
.fc-tg-open{background:linear-gradient(110deg,#2aabee,#229ed9)!important;color:#fff!important;border-color:rgba(42,171,238,.7)!important;text-decoration:none}
.fc-tg-ok{color:#9fe8bc;font-size:13.5px;line-height:1.6;margin:0 0 12px}
.fc-tg-bot{color:#5eb7e8}

/* ---------- 12. Page « Connecter » : plateformes, quota, recherche ---------- */
.fc-slots{display:inline-flex;align-items:center;gap:9px;margin:2px 0 16px;padding:7px 14px 7px 8px;border:1px solid rgba(216,172,68,.4);border-radius:99px;background:linear-gradient(120deg,rgba(216,172,68,.16),rgba(216,172,68,.05));}
.fc-slots em{font-style:normal;display:grid;place-items:center;min-width:26px;height:26px;padding:0 6px;border-radius:99px;background:linear-gradient(120deg,#e8c464,#c99a2e);color:#181206;font-weight:800;font-size:13px}
.fc-slots span{font-size:12.5px;color:#e9d9a8;font-weight:600}
.fc-conn-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:9px;margin:0 0 16px}
.fc-conn-card{position:relative;display:flex;flex-direction:column;align-items:center;gap:7px;padding:12px 4px 9px;border:1px solid rgba(148,163,230,.13);border-radius:15px;background:linear-gradient(150deg,#161e4a,#0e1434);color:var(--fc-ink);font:inherit;text-align:center;transition:transform .16s ease,border-color .16s ease,box-shadow .16s ease}
.fc-conn-card.is-live{cursor:pointer}
.fc-conn-card.is-live:hover,.fc-conn-card.is-live:focus-visible{transform:translateY(-3px);border-color:var(--fc-gold);box-shadow:0 12px 26px rgba(0,0,0,.45),0 0 0 1px var(--fc-gold-soft)}
.fc-conn-card.is-live:active{transform:translateY(-1px) scale(.98)}
.fc-conn-card.is-linked{border-color:rgba(8,219,87,.4)}
.fc-conn-ico{display:grid;place-items:center;width:46px;height:46px;border-radius:13px;box-shadow:0 5px 14px rgba(0,0,0,.35),inset 0 1px 0 rgba(255,255,255,.25)}
.fc-conn-ico .fc-svg{width:25px;height:25px}
.fc-conn-card strong{font-size:10.5px;font-weight:600;line-height:1.15;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#cdd4f2}
.fc-conn-badge{font-size:9px;font-weight:800;letter-spacing:.3px;border-radius:99px;padding:3px 7px;text-transform:uppercase;white-space:nowrap;max-width:100%;overflow:hidden;text-overflow:ellipsis}
.fc-conn-badge.ok{background:rgba(8,219,87,.16);color:#57e88b;border:1px solid rgba(8,219,87,.4)}
.fc-conn-badge.link{background:linear-gradient(110deg,#e8c464,#c99a2e);color:#221a06}
.fc-conn-badge.soon{background:rgba(148,163,230,.1);color:#8b95c4;border:1px solid rgba(148,163,230,.22)}
.fc-conn-none{margin:0 0 14px}
.fc-conn-search{margin:4px 0 2px}

/* ---------- 13. Badges de source (Telegram) ---------- */
.fc-src{display:inline-grid;place-items:center;width:14px;height:14px;margin:0 4px -2px 0;border-radius:99px;background:linear-gradient(140deg,#3fb0ea,#1c8ec2);color:#fff;vertical-align:middle}
.fc-src .fc-svg{width:9px;height:9px}
.fc-conv .fc-src{width:15px;height:15px;margin-left:6px}
.fc-conv .fc-src .fc-svg{width:9.5px;height:9.5px}

@media (max-width:560px){
  .fc-conn-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
  .fc-conn-ico{width:42px;height:42px}
}
@media (max-width:380px){
  .fc-conn-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media (max-width:440px){
  .fc-conn-badge{font-size:8px;padding:2px 4px;letter-spacing:.15px}
}

/* ---------- 14. v4.2 : applications connectables en démonstration ---------- */
/* Badge de source (application d'origine) sur les avatars des conversations simulées */
.fc-appbadge{position:absolute;top:-4px;right:-4px;display:inline-grid;place-items:center;width:15px;height:15px;border-radius:50%;border:2px solid #0f1638;box-shadow:0 2px 6px rgba(0,0,0,.4);color:#fff}
.fc-appbadge .fc-svg{width:8.5px;height:8.5px}
.fc-appbadge.lg{width:19px;height:19px;top:-3px;right:-3px;border-width:2.5px}
.fc-appbadge.lg .fc-svg{width:11px;height:11px}
.fc-appbadge[hidden]{display:none}
/* Dans une conversation de démonstration : micro, pièces jointes et appels masqués */
.fc-chat.is-sim [data-fc-mic],.fc-chat.is-sim [data-fc-attach],.fc-chat.is-sim [data-fc-call]{display:none!important}
/* Note « conversation de démonstration » sous l'en-tête du chat */
.fc-demonote{display:flex;align-items:flex-start;gap:8px;margin:10px 14px 0;padding:9px 12px;border:1px solid rgba(216,172,68,.35);border-radius:11px;background:linear-gradient(120deg,rgba(216,172,68,.14),rgba(216,172,68,.04));color:#e9d9a8;font-size:12px;line-height:1.5}
.fc-demonote[hidden]{display:none!important}
.fc-demonote b{color:#e8c464}
/* Carte d'application pendant la connexion/déconnexion */
.fc-conn-card.is-busy{opacity:.55;pointer-events:none}
/* Quota épuisé */
.fc-slots.is-empty{border-color:rgba(255,107,107,.4);background:linear-gradient(120deg,rgba(255,107,107,.14),rgba(255,107,107,.04))}
.fc-slots.is-empty em{background:linear-gradient(120deg,#ff8a80,#e53935);color:#2a0705}
.fc-slots.is-empty span{color:#f3c2c2}
@media (max-width:440px){
  .fc-demonote{margin:8px 10px 0;font-size:11.5px;padding:8px 10px}
}
