﻿/* ══════════════════════════════════════════
     SHARED TOKENS
  ══════════════════════════════════════════ */
:root {
  --bg-main: url("./../asset/background.png") no-repeat center center fixed;
  --bg-main-center: url("./../asset/background-center.jpg") no-repeat center center;
  --bg-panel: #1a1a1a;
  --bg-card: #242424;
  --bg-card-h: #2c2c2c;
  --bg-input: #2e2e2e;
  --accent: #c00989;
  --accent2: #c00989dd;
  --accent-dim: rgba(212, 79, 160, 0.14);
  --text: #f0f0f0;
  --muted: #777;
  --border: rgba(255, 255, 255, 0.07);
  --border-h: rgba(255, 255, 255, 0.17);
  --r: 25px;
  --rsm: 8px;
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html,
body {
  height: 100%;
  overflow: hidden;
}
body {
  font-family: "DM Sans", sans-serif;
  background: var(--bg-main);
  color: var(--text);
  user-select: none;
}

/* ── TOOLTIP ── */
.tip {
  position: fixed;
  background: #111;
  color: #fff;
  font-size: 11px;
  white-space: nowrap;
  padding: 4px 8px;
  border-radius: 6px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.12s;
  z-index: 9999;
  border: 1px solid rgba(255, 255, 255, 0.12);
  transform: translate(-50%, -100%);
}

/* ── CTX MENU ── */
#ctx {
  position: fixed;
  background: #1d1d1d;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 5px;
  z-index: 10000;
  min-width: 155px;
  display: none;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.55);
}
.ci {
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.1s;
  display: flex;
  align-items: center;
  gap: 8px;
}
.ci:hover {
  background: rgba(255, 255, 255, 0.08);
}
.ci.del {
  color: #e05555;
}
.ci.del:hover {
  background: rgba(224, 85, 85, 0.1);
}
.csep {
  height: 1px;
  background: var(--border);
  margin: 4px 0;
}

/* ── MODAL ── */
#moverlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  z-index: 8000;
  display: none;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(3px);
}
#moverlay.open {
  display: flex;
}
.modal {
  background: #1c1c1c;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  padding: 26px;
  min-width: 320px;
  max-width: 440px;
  width: 90vw;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
}
.modal h2 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 18px;
}
.fg {
  margin-bottom: 13px;
}
.fg label {
  display: block;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 5px;
}
.fg input,
.fg select,
.fg textarea {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--rsm);
  padding: 9px 11px;
  color: var(--text);
  font-family: "DM Sans", sans-serif;
  font-size: 13px;
  outline: none;
  transition: border-color 0.15s;
}
.fg input:focus,
.fg select:focus,
.fg textarea:focus {
  border-color: var(--accent);
}
.fg select option {
  background: #1c1c1c;
}
.mactions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 18px;
}

/* ── BUTTONS ── */
.btn-row {
  display: flex;
  gap: 6px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.bpill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 10px 13px;
  font-size: 12px;
  font-family: "DM Sans", sans-serif;
  cursor: pointer;
  transition: background 0.15s;
  white-space: nowrap;
}
.bpill:hover,
.bpill:active {
  background: var(--accent2);
}
.bpill.sec {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  border: 1px solid var(--border);
}
.bpill.sec:hover {
  background: rgba(255, 255, 255, 0.13);
}

/* ── CONFIRM DELETE ── */
.confirm-msg {
  font-size: 14px;
  color: var(--text);
  line-height: 1.6;
  margin-bottom: 4px;
}
.confirm-sub {
  font-size: 12px;
  color: var(--muted);
}

/* ── FOLDER POPUP ── */
#fpoverlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  z-index: 8500;
  display: none;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(3px);
}
#fpoverlay.open {
  display: flex;
}
.fpopup {
  background: #1c1c1c;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  padding: 22px;
  min-width: 300px;
  max-width: 560px;
  width: 90vw;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
}
.fpopup h2 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.closebtn {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  transition: all 0.15s;
}
.closebtn:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
}

/* ── FAV GRID ── */
.fgrid {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  overflow: hidden;
}

/* ── ADD BTN ── */
.addsq {
  width: 44px;
  height: 44px;
  border-radius: var(--rsm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px dashed rgba(255, 255, 255, 0.16);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--muted);
  transition: all 0.15s;
  flex-shrink: 0;
}
.addsq:hover,
.addsq:active {
  background: var(--accent-dim);
  border-color: var(--accent);
  color: var(--accent);
}
.addsq.sm {
  width: 34px;
  height: 34px;
  border-radius: 50%;
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar {
  width: 3px;
  height: 3px;
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
}

/* ── FALLBACK ICON ── */
.fallback {
  width: 22px;
  height: 22px;
  border-radius: 4px;
  background: var(--accent-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
}

/* ══════════════════════════════════════════
     DESKTOP LAYOUT (≥ 768px)
  ══════════════════════════════════════════ */
#desktop-view {
  display: flex;
  width: 100%;
  height: 100%;
  padding: 35px 15px 50px;
  gap: 0;
}

.col-left,
.col-right {
  width: 18%;
  min-width: 130px;
  max-width: 420px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
  overflow: hidden;
}
.col-center {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 200px;
  overflow: hidden;
}

/* Resize handles */
.rh {
  width: 20px;
  flex-shrink: 0;
  cursor: col-resize;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 10;
}
.rh::after {
  content: "";
  width: 2px;
  height: 36px;
  background: rgba(255, 255, 255, 0.09);
  border-radius: 2px;
  transition:
    background 0.2s,
    height 0.2s;
}
.rh:hover::after,
.rh.drag::after {
  background: var(--accent);
  height: 56px;
}

/* Panel */
.panel {
  background: var(--bg-panel);
  border-radius: var(--r);
  border: 1px solid var(--border);
  padding: 13px;
  position: relative;
  overflow: hidden;
}
.scrollable {
  overflow-y: auto;
}
.scrollable::-webkit-scrollbar {
  width: 3px;
}
.scrollable::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
}

/* Panel titles */
.panel-head {
  text-align: center;
  margin-bottom: 9px;
}
.etitle {
  border: 1px solid transparent;
  border-radius: 4px;
  padding: 2px 6px;
  outline: none;
  background: transparent;
  font-family: "Space Grotesk", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  width: 100%;
  text-align: center;
  cursor: pointer;
  transition: all 0.15s;
}
.etitle:focus {
  border-color: var(--accent);
  background: var(--accent-dim);
  color: var(--text);
  cursor: text;
}
.esub {
  font-size: 9px;
  letter-spacing: 0.14em;
  color: var(--muted);
  text-align: center;
  text-transform: uppercase;
  opacity: 0.6;
  cursor: pointer;
  font-family: "Space Grotesk", sans-serif;
  padding: 2px 6px;
  border-radius: 4px;
  display: inline-block;
  transition: all 0.15s;
}
.esub:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.05);
}
.edesc {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.5;
  text-align: center;
  margin: 5px 0 8px;
  cursor: pointer;
  transition: color 0.15s;
}
.edesc:hover {
  color: var(--text);
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  margin-bottom: 12px;
}
.logo-icon {
  width: 34px;
  height: 34px;
  background: var(--accent);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.logo-t1 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.15em;
}
.logo-t2 {
  font-size: 9px;
  letter-spacing: 0.18em;
  color: var(--muted);
  text-transform: uppercase;
  font-family: "Space Grotesk", sans-serif;
}

/* Search (desktop — dropdown style) */
.search-wrap {
  position: relative;
  background: var(--bg-panel);
  border-radius: 50px;
  border: 1px solid var(--border);
  padding: 12px 15px;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: border-color 0.2s;
}
.search-wrap:focus-within {
  border-color: var(--accent);
}
.search-wrap input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--text);
  font-family: "DM Sans", sans-serif;
  font-size: 14px;
}
.search-wrap input::placeholder {
  color: var(--muted);
}
.sibtn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--muted);
  display: flex;
  padding: 2px;
  transition: color 0.15s;
}
.sibtn:hover {
  color: var(--accent);
}

/* Search dropdown */
#sr-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: rgba(20, 20, 20, 0.97);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  backdrop-filter: blur(12px);
  display: none;
  flex-direction: column;
  max-height: 320px;
  overflow-y: auto;
  z-index: 9999;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
  opacity: 0;
  transform: translateY(-6px);
  transition:
    opacity 0.18s,
    transform 0.18s;
}
#sr-dropdown.open {
  opacity: 1;
  transform: translateY(0);
}
.sr-section-label {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 10px 14px 4px;
  font-family: "Space Grotesk", sans-serif;
}
.sr-item {
  padding: 9px 14px;
  cursor: pointer;
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 13px;
  transition: background 0.1s;
  border-radius: 6px;
  margin: 1px 4px;
}
.sr-item:hover,
.sr-item.active {
  background: rgba(255, 255, 255, 0.08);
}
.sr-item-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sr-item-icon img {
  width: 16px;
  height: 16px;
  border-radius: 3px;
}

/* Email pills */
.epill {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 10px 15px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 5px;
  max-width: 160px;
  position: relative;
}
.epill:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--border-h);
}
.epill span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Fav item */
.fi {
  width: 44px;
  height: 44px;
  border-radius: var(--rsm);
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition:
    background 0.15s,
    border-color 0.15s,
    box-shadow 0.15s;
  flex-shrink: 0;
}
.fi:hover {
  background: var(--bg-card-h);
  border-color: var(--border-h);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}
.fi img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  border-radius: 3px;
}

/* Me dot */
.mdot {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  transition:
    transform 0.15s,
    background 0.15s;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.mdot:hover {
  transform: scale(1.12);
  background: var(--accent2);
}
.mdot img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  border-radius: 3px;
}
.mdot .fallback {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

/* Section label */
.slabel {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 5px;
  font-family: "Space Grotesk", sans-serif;
  cursor: pointer;
  display: inline-block;
  padding: 2px 4px;
  border-radius: 3px;
  transition: all 0.15s;
}
.slabel:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}
.sep {
  height: 1px;
  background: var(--border);
  margin: 8px 0;
}

/* Center main */
.cmain {
  flex: 1;
  background: var(--bg-main-center);
  background-size: cover;
  border-radius: var(--r);
  border: 1px solid var(--border);
  padding: 14px;
  display: flex;
  flex-direction: column;
  min-height: 0;
  position: relative;
  overflow: hidden;
}
.cfavs {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-content: flex-start;
  overflow-y: auto;
  overflow-x: hidden;
}
.cfavs::-webkit-scrollbar {
  width: 3px;
}
.cfavs::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
}
.cfolders {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: flex-end;
  padding-top: 10px;
  margin-top: 6px;
  border-top: 1px solid var(--border);
}
.cfolders.hidden {
  display: none;
}

/* Folder card */
.fcard {
  width: 120px;
  height: 100px;
  border-radius: var(--rsm);
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 8px;
  padding: 8px;
  cursor: pointer;
  position: relative;
  transition: all 0.15s;
}
.fcard:hover {
  border-color: var(--border-h);
  background: var(--bg-card-h);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}
.fthumb {
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.fthumb img {
  width: 20px;
  height: 20px;
}
.fmore {
  border-radius: 4px;
  background: var(--accent-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  color: var(--accent);
  font-weight: 700;
  cursor: pointer;
}

/* ══════════════════════════════════════════
     MOBILE LAYOUT (< 768px)
  ══════════════════════════════════════════ */
#mobile-view {
  display: none;
  flex-direction: column;
  width: 100%;
  height: 100%;
  padding: 16px 12px 24px;
  gap: 12px;
  overflow: hidden;
}

/* Mobile search */
.m-search {
  background: var(--bg-panel);
  border-radius: 50px;
  border: 1px solid var(--border);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: border-color 0.2s;
  flex-shrink: 0;
  position: relative;
}
.m-search:focus-within {
  border-color: var(--accent);
}
.m-search input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--text);
  font-family: "DM Sans", sans-serif;
  font-size: 15px;
}
.m-search input::placeholder {
  color: var(--muted);
}

/* Mobile search dropdown (same style as desktop) */
#m-sr-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: rgba(20, 20, 20, 0.97);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  backdrop-filter: blur(12px);
  display: none;
  flex-direction: column;
  max-height: 55vh;
  overflow-y: auto;
  z-index: 9999;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.7);
}
#m-sr-dropdown.open {
  display: flex;
}

/* Mobile header */
.m-header {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.m-logo {
  width: 38px;
  height: 38px;
  background: var(--bg-card);
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.m-header-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex: 1;
}

/* Email pills row */
.m-emails {
  display: flex;
  gap: 8px;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding-bottom: 2px;
  flex-shrink: 0;
}
.m-emails::-webkit-scrollbar {
  display: none;
}
.m-epill {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 8px 14px;
  font-size: 13px;
  white-space: nowrap;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.m-epill:active {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--border-h);
}
.m-epill-add {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px dashed rgba(255, 255, 255, 0.16);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--muted);
  flex-shrink: 0;
  transition: all 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.m-epill-add:active {
  background: var(--accent-dim);
  border-color: var(--accent);
  color: var(--accent);
}

/* Fav list panel */
.m-panel {
  background: var(--bg-panel);
  border-radius: var(--r);
  border: 1px solid var(--border);
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 0;
}
.m-panel-head {
  padding: 14px 16px 10px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  flex-shrink: 0;
  border-bottom: 1px solid var(--border);
}

/* Fav list */
.m-list {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 10px 12px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  align-content: start;
}
.m-list::-webkit-scrollbar {
  width: 3px;
}
.m-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
}

/* Fav item mobile */
.m-fav {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
  cursor: pointer;
  transition:
    background 0.15s,
    border-color 0.15s;
  min-width: 0;
  -webkit-tap-highlight-color: transparent;
}
.m-fav:active {
  background: var(--bg-card-h);
  border-color: var(--border-h);
}
.m-fav-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}
.m-fav-icon img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  border-radius: 4px;
}
.m-fav-icon .fallback {
  width: 20px;
  height: 20px;
  font-size: 10px;
}
.m-fav-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  min-width: 0;
}

/* Add fav button mobile */
.m-fav-add {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  padding: 10px 12px;
  cursor: pointer;
  color: var(--muted);
  transition: all 0.15s;
  min-width: 0;
  -webkit-tap-highlight-color: transparent;
}
.m-fav-add:active {
  background: var(--accent-dim);
  border-color: var(--accent);
  color: var(--accent);
}
.m-fav-add span {
  font-size: 13px;
}

/* Back button */
.m-back {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px 8px;
  cursor: pointer;
  color: var(--muted);
  font-size: 13px;
  transition: color 0.15s;
  flex-shrink: 0;
}
.m-back:active {
  color: var(--text);
}
.m-back svg {
  flex-shrink: 0;
}

/* Bouton home */
/* ── Isolation totale : tout préfixé .mc- pour ne pas polluer le site hôte ── */
#mc-home-btn,
#mc-home-btn * {
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Helvetica Neue', sans-serif;
}

/* Conteneur positionné fixe */
#mc-home-btn {
  position: fixed;
  bottom: 28px;
  left: 28px;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* ── Bouton rond ── */
.mc-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #080808;
  border: 1px solid rgba(200, 16, 46, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color .25s, transform .2s;
  position: relative;
  z-index: 2;
  overflow: hidden;
}

.mc-btn:hover {
  border-color: rgba(200, 16, 46, 0.8);
  transform: scale(1.06);
}

#mc-logo-svg {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  display: block;
}

/* ── Carte preview ── */
.mc-preview {
  position: absolute;
  bottom: 60px;
  left: 0;
  width: 240px;
  background: #0f0f0f;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-bottom: 2px solid #c8102e;
  padding: 18px 20px 16px;

  /* État caché */
  opacity: 0;
  transform: translateY(8px) scale(0.97);
  pointer-events: none;
  transition: opacity .22s ease, transform .22s ease;
  transform-origin: bottom left;
}

/* État visible */
.mc-preview.mc-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

/* Header : logo + texte + flèche */
.mc-preview-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.mc-preview-logo {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.mc-preview-logo svg {
  width: 28px;
  height: 28px;
  display: block;
}

.mc-preview-meta {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mc-preview-name {
  font-size: 12px;
  font-weight: 500;
  color: #f5f5f7;
  letter-spacing: .2px;
  line-height: 1;
}

.mc-preview-tag {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #c8102e;
}

.mc-preview-arrow {
  font-size: 14px;
  color: rgba(245, 245, 247, 0.25);
  transition: color .2s;
}

.mc-preview:hover .mc-preview-arrow {
  color: #c8102e;
}

/* Séparateur */
.mc-preview-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.06);
  margin: 12px 0;
}

/* Description */
.mc-preview-desc {
  font-size: 11px;
  font-weight: 300;
  color: rgba(245, 245, 247, 0.35);
  letter-spacing: .5px;
  margin: 0 0 12px;
  line-height: 1.5;
}

/* Lien CTA */
.mc-preview-cta {
  display: block;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 1px;
  color: rgba(245, 245, 247, 0.45);
  text-decoration: none;
  text-transform: lowercase;
  transition: color .2s;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 10px;
}

.mc-preview-cta:hover {
  color: #f5f5f7;
}

/* ── Responsive : réduit la position sur très petit écran ─ pour le bouton home ─ */
@media (max-width: 480px) {
  #mc-home-btn {
    bottom: 16px;
    left: 16px;
  }
  .mc-btn {
    width: 42px;
    height: 42px;
  }
  #mc-logo-svg {
    width: 42px;
    height: 42px;
  }
}

/* ── Responsive switch ── */
@media (max-width: 767px) {
  #desktop-view {
    display: none !important;
  }
  #mobile-view {
    display: flex !important;
  }
}
@media (min-width: 768px) {
  #desktop-view {
    display: flex !important;
  }
  #mobile-view {
    display: none !important;
  }
}

