/* CDG Live Cursors — styles front-end */

.cdglc-cursor {
  position: absolute; top: 0; left: 0; z-index: 2147483000;
  pointer-events: none; will-change: transform; opacity: 0;
  transition: opacity .3s cubic-bezier(.16,1,.3,1);
}
.cdglc-cursor svg, .cdglc-cursor .cdglc-cimg, .cdglc-cursor .cdglc-emoji { display: block; }
.cdglc-shadow svg, .cdglc-shadow .cdglc-cimg, .cdglc-shadow .cdglc-emoji,
.cdglc-shadow .cdglc-dot, .cdglc-shadow .cdglc-ring { filter: drop-shadow(0 2px 6px rgba(0,0,0,.35)); }
.cdglc-dot { display: block; border-radius: 50%; }
.cdglc-ring { display: block; border-radius: 50%; border-style: solid; border-width: 2px; box-sizing: border-box; }
.cdglc-emoji { line-height: 1; }
.cdglc-label {
  position: absolute; top: 26px; left: 22px;
  font: 600 11px/1 system-ui, sans-serif; color: #0a0a0a;
  padding: .25em .6em; border-radius: 999px; white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
}
.cdglc-cursor.is-followed::after {
  content: ""; position: absolute; left: 18px; top: 18px; width: 32px; height: 32px;
  border-radius: 50%; border: 2px solid rgba(255,255,255,.85); transform: translate(-50%,-50%);
  animation: cdglc-pulse 1.4s ease-out infinite;
}
@keyframes cdglc-pulse { 0% { transform: translate(-50%,-50%) scale(.5); opacity: .9; } 100% { transform: translate(-50%,-50%) scale(1.7); opacity: 0; } }

/* Masquer le curseur natif si demandé */
html.cdglc-nocursor, html.cdglc-nocursor * { cursor: none !important; }

/* Onde de clic */
.cdglc-ripple {
  position: absolute; width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid #fff; transform: translate(-50%,-50%) scale(.4);
  pointer-events: none; z-index: 2147483000; opacity: .9; animation: cdglc-ripple .7s cubic-bezier(.16,1,.3,1) forwards;
}
@keyframes cdglc-ripple { to { transform: translate(-50%,-50%) scale(3.4); opacity: 0; } }

/* Pastille présence */
.cdglc-presence {
  position: fixed; left: 18px; bottom: 18px; z-index: 2147483001;
  display: inline-flex; align-items: center; gap: .4em; cursor: pointer;
  padding: .5em .85em; border-radius: 999px; border: 1px solid rgba(0,0,0,.12);
  background: rgba(20,20,20,.82); color: #fff; backdrop-filter: blur(10px);
  font: 12px/1 system-ui, sans-serif; opacity: 0; transform: translateY(8px);
  transition: opacity .6s cubic-bezier(.16,1,.3,1), transform .6s cubic-bezier(.16,1,.3,1);
}
.cdglc-presence.is-ready { opacity: 1; transform: none; }
.cdglc-n { font-variant-numeric: tabular-nums; }

.cdglc-panel {
  position: fixed; left: 18px; bottom: 64px; z-index: 2147483002; width: 232px; max-width: calc(100vw - 36px);
  background: rgba(22,22,22,.97); backdrop-filter: blur(16px); border: 1px solid rgba(255,255,255,.14);
  border-radius: 14px; padding: 6px; opacity: 0; transform: translateY(8px) scale(.98); pointer-events: none;
  transition: opacity .25s, transform .25s; font: 13px/1.2 system-ui, sans-serif; color: #fff;
}
.cdglc-panel.is-open { opacity: 1; transform: none; pointer-events: auto; }
.cdglc-panel-title { margin: 0; padding: 8px 10px 4px; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.4); }
.cdglc-user { display: flex; align-items: center; gap: 9px; width: 100%; padding: 9px 10px; border: 0; background: none; color: #fff; border-radius: 9px; cursor: pointer; text-align: left; font: inherit; }
.cdglc-user:hover { background: rgba(255,255,255,.08); }
.cdglc-user.is-self { cursor: default; } .cdglc-user.is-self:hover { background: none; }
.cdglc-user.is-active { background: rgba(255,255,255,.06); }
.cdglc-udot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.cdglc-uname { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cdglc-uact { font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: rgba(255,255,255,.45); }
.cdglc-user:hover .cdglc-uact, .cdglc-user.is-active .cdglc-uact { color: #fff; }

/* Barre de suivi */
.cdglc-bar {
  position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%) translateY(12px); z-index: 2147483002;
  display: inline-flex; align-items: center; gap: 10px; padding: .55em .7em .55em 1em;
  background: rgba(22,22,22,.94); border: 1px solid rgba(255,255,255,.14); border-radius: 999px; color: #fff;
  font: 13px/1 system-ui, sans-serif; opacity: 0; pointer-events: none;
  transition: opacity .4s, transform .4s; backdrop-filter: blur(12px);
}
.cdglc-bar.is-on { opacity: 1; transform: translateX(-50%); pointer-events: auto; }
.cdglc-bar-dot { width: 10px; height: 10px; border-radius: 50%; }
.cdglc-stop { font: 11px/1 system-ui, sans-serif; letter-spacing: .06em; text-transform: uppercase; color: rgba(255,255,255,.7); border: 1px solid rgba(255,255,255,.2); border-radius: 999px; padding: .4em .85em; background: none; cursor: pointer; }
.cdglc-stop:hover { color: #fff; border-color: rgba(255,255,255,.5); }

/* Indice plein écran */
.cdglc-fshint {
  position: fixed; left: 50%; bottom: 64px; transform: translateX(-50%) translateY(8px); z-index: 2147483002;
  display: inline-flex; align-items: center; gap: 8px; padding: .5em 1em; border-radius: 999px;
  background: rgba(22,22,22,.92); border: 1px solid rgba(255,255,255,.14); color: #fff;
  font: 12px/1 system-ui, sans-serif; opacity: 0; pointer-events: none; transition: opacity .4s, transform .4s;
}
.cdglc-fshint.is-on { opacity: 1; transform: translateX(-50%); }

/* Mode immersif (le thème peut masquer son en-tête via cette classe) */
body.cdglc-immersive header,
body.cdglc-immersive .site-header,
body.cdglc-immersive #masthead { opacity: 0 !important; pointer-events: none !important; transition: opacity .4s; }

/* Consentement RGPD */
.cdglc-consent {
  position: fixed; left: 18px; bottom: 18px; z-index: 2147483005; max-width: 360px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 14px 16px; border-radius: 12px;
  background: rgba(20,20,20,.96); color: #fff; border: 1px solid rgba(255,255,255,.14);
  font: 13px/1.4 system-ui, sans-serif; backdrop-filter: blur(12px);
}
.cdglc-consent button { font: 12px/1 system-ui, sans-serif; padding: .55em 1em; border-radius: 999px; cursor: pointer; border: 1px solid rgba(255,255,255,.2); background: none; color: #fff; }
.cdglc-consent .cdglc-accept { background: #fff; color: #111; border-color: #fff; }
