/* Espace société : onglets, équipe, factures */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 4px 0 16px; padding: 5px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255, 255, 255, .04); }
.tabs[hidden], #tabTeam[hidden], #tabInvoices[hidden] { display: none; }
.tabs button { flex: 1 1 auto; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 16px; border: 0; border-radius: 12px; background: transparent; color: inherit; font: inherit; font-weight: 600; cursor: pointer; }
.tabs button:hover { background: rgba(255, 255, 255, .06); }
.tabs button.on { background: var(--accent); color: var(--accent-ink); }
.tm-head { padding: 18px 20px; display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.tm-head h2 { margin: 0 0 4px; } .tm-head p { margin: 0; }
.tm-head input { flex: 1 1 220px; max-width: 320px; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, .06); color: inherit; font: inherit; }
.tm-list { list-style: none; margin: 14px 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.tm-item { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255, 255, 255, .04); }
.tm-av { flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; background: rgba(212, 175, 95, .18); color: var(--accent); }
.tm-main { flex: 1; min-width: 0; }
.tm-main b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tm-main small { display: block; opacity: .7; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tm-tier { flex: none; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); }
.tm-tier.pro { border-color: #aa6ee9; color: #c9a0f5; } .tm-tier.max { border-color: #ffd534; color: #ffd534; }
.tm-act { flex: none; display: flex; gap: 6px; }
.tm-act .btn { padding: 8px 12px; font-size: 13px; }
@media (max-width: 640px) { .tm-item { flex-wrap: wrap; } .tm-act { width: 100%; justify-content: flex-end; } }
.tm-trash { margin: 14px 0; } .tm-trash summary { cursor: pointer; opacity: .8; }
.tm-trash .tm-item { opacity: .75; }
.tm-modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 16px; background: rgba(0, 0, 0, .6); }
.tm-modal[hidden] { display: none; }
.tm-box { width: min(480px, 100%); max-height: 92vh; overflow: auto; padding: 22px; border-radius: 22px; border: 1px solid var(--line); background: #17102a; }
.tm-box h3 { margin: 0 0 14px; }
.tm-box .row.end { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }
.tm-box select { width: 100%; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, .06); color: inherit; font: inherit; }
.tm-box .btn.danger { background: #c0392b; border-color: #c0392b; color: #fff; }
.msg.ok { color: #7fd8a4; }
.of-prices { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin-top: 12px; }
.of-col { display: flex; flex-direction: column; gap: 3px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255, 255, 255, .03); font-size: 13px; }
.of-col b { margin-bottom: 4px; font-size: 14px; }
.of-bulk { margin: 14px 0 0; } .of-bulk select, .tm-item select { padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line); background: rgba(255, 255, 255, .06); color: inherit; font: inherit; }
.tm-item.chg { border-color: var(--accent); background: rgba(212, 175, 95, .08); }
.tm-item select:disabled { opacity: .5; }
.of-sum .row.end { display: flex; justify-content: flex-end; gap: 8px; margin-top: 10px; } .of-sum p { margin: 4px 0; }
#tabOffers[hidden] { display: none; }
.tm-item select, .of-bulk select { width: auto; flex: none; min-width: 110px; }
#tabStats[hidden], #tabStyle[hidden] { display: none; }
.st-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin: 14px 0; }
.st-kpi { padding: 14px 16px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255, 255, 255, .04); display: flex; flex-direction: column; gap: 2px; }
.st-kpi small { opacity: .7; } .st-kpi b { font-size: 28px; } .st-kpi span { font-size: 12px; opacity: .65; }
.st-h { margin: 0 0 10px; font-size: 15px; }
.st-chart svg { display: block; border-radius: 10px; }
.st-axis { display: flex; justify-content: space-between; font-size: 12px; opacity: .6; margin-top: 4px; }
.st-bar { height: 6px; border-radius: 4px; background: rgba(255, 255, 255, .08); margin: 6px 0 4px; overflow: hidden; } .st-bar i { display: block; height: 100%; background: var(--accent); border-radius: 4px; }
.st-n { flex: none; font-weight: 700; }
.st-src { display: flex; flex-wrap: wrap; gap: 8px; }
.st-prev { display: flex; align-items: center; gap: 14px; margin: 12px 0 16px; }
.st-sw { position: relative; flex: none; width: 96px; height: 60px; border-radius: 12px; border: 1px solid var(--line); } .st-sw i { position: absolute; right: 10px; bottom: 10px; width: 22px; height: 22px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .5); }
.st-prev small { display: block; opacity: .7; }
#tabStyle .row { display: flex; gap: 8px; flex-wrap: wrap; }
#tabStats .panel, #tabStyle .panel, #tabOffers .panel, #tabInvoices .panel { padding: 18px 20px; margin: 0 0 14px; }
#tabStyle .soc-switch { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
#tabStyle .soc-switch small { display: block; opacity: .7; font-weight: 400; }
#tabOrder[hidden] { display: none; } #tabOrder .panel { padding: 18px 20px; margin: 0 0 14px; }
.or-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; margin-top: 14px; }
.or-card { display: flex; flex-direction: column; gap: 8px; padding: 18px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255, 255, 255, .04); color: inherit; text-decoration: none; }
.or-card:hover { border-color: var(--accent); background: rgba(212, 175, 95, .08); }
.or-card > i { font-size: 26px; color: var(--accent); } .or-card span { font-size: 13px; opacity: .75; flex: 1; } .or-card em { font-style: normal; font-weight: 600; color: var(--accent); }
.tm-early { flex: none; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: rgba(127, 216, 164, .14); color: #7fd8a4; border: 1px solid rgba(127, 216, 164, .45); }
.sy-bar { display: flex; gap: 8px; margin: 10px 0; } .sy-bar .btn { padding: 6px 12px; font-size: 13px; }
.sy-list { list-style: none; margin: 0; padding: 0; max-height: 280px; overflow: auto; border: 1px solid var(--line); border-radius: 14px; }
.sy-list li + li { border-top: 1px solid var(--line); }
.sy-list label { display: flex; align-items: center; gap: 12px; padding: 10px 14px; cursor: pointer; }
.sy-list input { width: 20px; height: 20px; accent-color: var(--accent); flex: none; }
.sy-list small { display: block; opacity: .65; }
.sy-check { display: flex; align-items: center; gap: 10px; margin: 12px 0; cursor: pointer; } .sy-check input { width: 20px; height: 20px; accent-color: var(--accent); }
.tm-head .btn.primary { flex: none; }
.tm-cost { margin: 4px 0 12px; padding: 10px 14px; border-radius: 12px; background: rgba(212, 175, 95, .1); border: 1px solid rgba(212, 175, 95, .35); font-size: 13px; line-height: 1.45; }
.bill-alert { display: flex; align-items: center; gap: 14px; margin: 0 0 16px; padding: 14px 18px; border-radius: 16px; background: rgba(255, 154, 107, .12); border: 1px solid rgba(255, 154, 107, .55); }
.bill-alert[hidden] { display: none; } .bill-alert > i { font-size: 24px; color: #ff9a6b; } .bill-alert > div { flex: 1; } .bill-alert small { display: block; opacity: .75; margin-top: 3px; }
@media (max-width: 640px) { .bill-alert { flex-wrap: wrap; } }
.bp[hidden] { display: none; } .bp .row { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0 4px; }
.bp-row { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding: 12px 0; border-bottom: 1px solid var(--line); }
.bp-row small { display: block; opacity: .7; margin-top: 2px; } .bp-r { text-align: right; } .bp-r small.bp-warn { color: #ff9a6b; opacity: 1; }
@media (max-width: 640px) { .bp-r { text-align: left; } }
.bp-pm { margin: 4px 0 10px; } .bp-pm .bp-warn { color: #ff9a6b; }
.bp .sy-list { margin-top: 10px; }
#tabInvoices .panel.bp { padding: 18px 20px; margin: 0 0 14px; }
.of-ben { list-style: none; margin: 4px 0 10px; padding: 0 0 10px; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
.of-ben li { position: relative; padding-left: 20px; font-size: 13px; }
.of-ben li::before { content: "\2713"; position: absolute; left: 0; color: #7fd8a4; font-weight: 700; }
.of-col.pro { border-color: rgba(170, 110, 233, .6); } .of-col.max { border-color: rgba(255, 213, 52, .6); }
.of-price { font-size: 13px; }
.of-note { margin: 12px 2px 0; font-size: 13px; } .of-note i { color: var(--accent); margin-right: 4px; }
.bp-dev { margin-top: 4px; font-size: 13px; opacity: .85; } .bp-dev a { color: var(--accent); } .bp .btn:disabled { opacity: .4; cursor: not-allowed; }
.se-grid { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 24px; margin: 14px 0; align-items: start; }
@media (max-width: 860px) { .se-grid { grid-template-columns: 1fr; } }
.se-presets { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 12px; }
.se-presets .pre { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 8px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255, 255, 255, .05); color: inherit; font: inherit; font-size: 13.5px; cursor: pointer; }
.se-presets .pre i { width: 20px; height: 20px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .4); }
.se-presets .pre.on { border-color: var(--accent); background: rgba(212, 175, 95, .18); }
.se-custom { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px; margin: 10px 0 14px; }
.se-custom label { display: flex; flex-direction: column; gap: 5px; font-size: 13px; font-weight: 600; }
.se-custom input[type="color"] { width: 100%; height: 42px; border: 1px solid rgba(255, 255, 255, .2); border-radius: 12px; background: transparent; padding: 3px; }
.se-shapes { display: flex; gap: 8px; margin: 8px 0; } .se-shapes button { flex: 1; padding: 9px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, .05); color: inherit; font: inherit; cursor: pointer; }
.se-shapes button.on { border-color: var(--accent); background: rgba(212, 175, 95, .18); font-weight: 700; }
.se-prev { position: sticky; top: 16px; } .se-prev .hint { display: block; margin-top: 8px; }
.se-card { margin-top: 10px; padding: 22px 20px; border-radius: 22px; border: 2px solid; min-height: 330px; display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.se-name { font-size: 20px; font-weight: 700; } .se-fn { font-size: 13px; opacity: .8; margin-bottom: 14px; }
.se-qr { padding: 10px; border-radius: 16px; line-height: 0; } .se-qr canvas { width: 170px; height: 170px; display: block; }
#tabStyle .ok { color: #7fd8a4; margin-left: 10px; font-size: 13.5px; }
/* Aperçu fidèle de la carte (mêmes règles que l'application : fond du thème, verre dépoli, matière, logo, QR code) */
.se-grid { grid-template-columns: minmax(0, 1fr) 330px; }
.ph { position: relative; margin-top: 10px; border-radius: 28px; overflow: hidden; padding: 20px 14px; isolation: isolate; box-shadow: 0 0 0 1px rgba(255, 255, 255, .12), 0 18px 40px -20px #000; }
.ph-back { position: absolute; inset: 0; z-index: 0; }
.ph-card { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 9px; padding: 20px 18px 16px; overflow: hidden; color: var(--ct, #fff); text-align: center; border-radius: 26px; isolation: isolate;
  background: linear-gradient(160deg, rgba(var(--ct-rgb, 255, 255, 255), .14), rgba(var(--ct-rgb, 255, 255, 255), .04)); border: 1px solid rgba(var(--ct-rgb, 255, 255, 255), .18);
  backdrop-filter: blur(22px) saturate(140%); -webkit-backdrop-filter: blur(22px) saturate(140%); box-shadow: 0 30px 60px -25px rgba(0, 0, 0, .8), inset 0 1px 0 rgba(var(--ct-rgb, 255, 255, 255), .2); }
.ph-tex { position: absolute; inset: 0; z-index: -1; pointer-events: none; background-size: cover; background-position: center; transform: rotate(180deg); -webkit-mask-size: 300px 300px; mask-size: 300px 300px; filter: brightness(1.3) saturate(1.1); opacity: .42; display: none; }
.ph-top { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.ph-logo { max-width: 90%; max-height: 54px; object-fit: contain; } .ph-logo[hidden] { display: none; }
.ph-logo.fx-white { filter: brightness(0) invert(1); } .ph-logo.fx-black { filter: brightness(0); } .ph-logo.fx-plate { background: #fff; padding: 6px 10px; border-radius: 12px; }
.ph-pill { max-width: 90%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; background: rgba(var(--ct-rgb, 255, 255, 255), .12); color: rgba(var(--ct-rgb, 255, 255, 255), .82); }
.ph-pill[hidden] { display: none; }
.ph-avatar { width: 62px; height: 62px; border-radius: 50%; display: grid; place-items: center; font-size: 22px; font-weight: 700; color: var(--acc-ink, #000); background: linear-gradient(135deg, var(--acc, #d4af5f), rgba(255, 255, 255, .85)); box-shadow: 0 0 0 3px rgba(var(--ct-rgb, 255, 255, 255), .2); }
.ph-name { font-size: 21px; font-weight: 700; letter-spacing: -.01em; line-height: 1.12; overflow-wrap: anywhere; }
.ph-titre { margin-top: -4px; font-size: 13px; color: rgba(var(--ct-rgb, 255, 255, 255), .82); }
.ph-qr { padding: 3%; border-radius: 20px; box-shadow: 0 12px 30px -12px rgba(0, 0, 0, .6); line-height: 0; margin-top: 2px; }
.ph-qr canvas { width: 180px; height: 180px; display: block; border-radius: 12px; }
.ph-code { font-family: ui-monospace, Consolas, monospace; font-size: 11px; color: rgba(var(--ct-rgb, 255, 255, 255), .62); margin-top: -2px; }
.ph-contacts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; align-items: center; gap: 4px; max-width: 100%; }
.ph-contacts li { display: flex; align-items: center; gap: 8px; font-size: 13.5px; max-width: 100%; } .ph-contacts li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .ph-contacts i { color: var(--acc, #d4af5f); }
.ph-addr { font-size: 11.5px; color: rgba(var(--ct-rgb, 255, 255, 255), .7); }
.ph-addr[hidden] { display: none; }
.ph-top { width: 100%; } .ph-pill { flex: none; }
.lang-sel { padding: 4px 8px; border-radius: 8px; border: 1px solid var(--line); background: rgba(255, 255, 255, .06); color: inherit; font: inherit; font-size: 13px; }
header.top nav { align-items: center; }
.lang-sel { padding: 4px 8px; border-radius: 8px; border: 1px solid var(--line); background: rgba(255, 255, 255, .06); color: inherit; font: inherit; font-size: 13px; }
header.top nav { align-items: center; }
