/* ============================================================
 *  support.css — page contact (formulaire + tchat privé)
 *  Tout est préfixé .ctc pour ne pas toucher au reste du site.
 *  Couleurs reprises des thèmes 2026 / 2027 (variables avec repli).
 * ============================================================ */
.ctc {
  --c-bg:      var(--bg-card, #131a24);
  --c-bg-2:    #0f1520;
  --c-line:    rgba(255,255,255,.08);
  --c-line-2:  rgba(255,255,255,.14);
  --c-text:    var(--text-primary, #e5e7eb);
  --c-muted:   var(--text-secondary, #9ca3af);
  --c-accent:  var(--accent, #a855f7);
  --c-accent-2:var(--accent-glow, #c084fc);
  --c-ok:      #34d399;
  --c-off:     #9ca3af;
  --c-err:     #f87171;
  --c-gold:    var(--gold, #facc15);
  --c-radius:  16px;
  color: var(--c-text);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  max-width: 1180px;
  margin: 0 auto;
  padding: 8px 0 32px;
  box-sizing: border-box;
}
.ctc *, .ctc *::before, .ctc *::after { box-sizing: border-box; }
.ctc h1, .ctc h2 { color: #fff; margin: 0; font-weight: 700; letter-spacing: -.01em; }
.ctc h2 { font-size: 1.12rem; display: flex; align-items: center; gap: .55rem; }
.ctc h2 i { color: var(--c-accent-2); }
.ctc p { margin: 0; }
.ctc a { color: var(--c-accent-2); }
.ctc [hidden] { display: none !important; }

/* ── En-tête ─────────────────────────────────────────────── */
.ctc-hero {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px;
  padding: 28px; margin-bottom: 18px;
  border: 1px solid var(--c-line); border-radius: 20px;
  background:
    radial-gradient(600px 220px at 0% 0%, rgba(168,85,247,.22), transparent 70%),
    radial-gradient(400px 200px at 100% 100%, rgba(52,211,153,.10), transparent 70%),
    var(--c-bg);
}
.ctc-hero-text { flex: 1 1 380px; }
.ctc-eyebrow {
  display: inline-flex; align-items: center; gap: .45rem;
  font-size: .78rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: var(--c-accent-2); margin-bottom: 8px;
}
.ctc h1 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: 8px; }
.ctc-hero p { color: var(--c-muted); max-width: 560px; }

.ctc-status {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; border-radius: 14px;
  background: rgba(0,0,0,.25); border: 1px solid var(--c-line);
  min-width: 260px; max-width: 360px;
}
.ctc-status strong { display: block; color: #fff; font-size: .95rem; }
.ctc-status small { display: block; color: var(--c-muted); font-size: .8rem; }
.ctc-status.is-online [data-status-label] { color: var(--c-ok); }

/* Avatar + pastille de présence */
.ctc-avatar {
  position: relative; flex: 0 0 auto;
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--c-accent), #6366f1);
  color: #fff; font-weight: 700;
}
.ctc-dot {
  position: absolute; right: -1px; bottom: -1px;
  width: 13px; height: 13px; border-radius: 50%;
  background: var(--c-off); border: 2px solid var(--c-bg);
}
.is-online .ctc-dot { background: var(--c-ok); box-shadow: 0 0 0 0 rgba(52,211,153,.6); animation: ctc-pulse 2s infinite; }
@keyframes ctc-pulse { 70% { box-shadow: 0 0 0 8px rgba(52,211,153,0); } 100% { box-shadow: 0 0 0 0 rgba(52,211,153,0); } }

/* ── Raccourcis ──────────────────────────────────────────── */
.ctc-channels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 18px; }
.ctc-channel {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px;
  background: var(--c-bg); border: 1px solid var(--c-line); border-radius: 14px;
  text-decoration: none; color: var(--c-text) !important;
  transition: border-color .15s, transform .15s, background .15s;
}
.ctc-channel:hover { border-color: rgba(168,85,247,.5); transform: translateY(-1px); background: #171f2b; }
.ctc-channel > i {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex: 0 0 auto;
  background: rgba(168,85,247,.14); color: var(--c-accent-2); font-size: 1.1rem;
}
.ctc-channel .fa-discord { background: rgba(88,101,242,.18); color: #8b97ff; }
.ctc-channel strong { display: block; color: #fff; font-size: .95rem; }
.ctc-channel small { color: var(--c-muted); font-size: .8rem; }

/* ── Grilles & cartes ───────────────────────────────────── */
.ctc-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.ctc-grid--extras { margin-top: 18px; }
.ctc-grid--single { grid-template-columns: 1fr; }
.ctc-card {
  background: var(--c-bg); border: 1px solid var(--c-line); border-radius: var(--c-radius);
  padding: 22px; scroll-margin-top: 90px;
}
.ctc-card > p { color: var(--c-muted); margin-top: 6px; }
.ctc-sub { color: var(--c-muted); font-size: .86rem; margin-top: 6px; }
.ctc-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }

/* ── Boutons ─────────────────────────────────────────────── */
.ctc-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: 11px 18px; border-radius: 12px; border: 1px solid transparent;
  background: linear-gradient(135deg, var(--c-accent), #7c3aed); color: #fff !important;
  font: inherit; font-weight: 600; font-size: .92rem; text-decoration: none; cursor: pointer;
  transition: filter .15s, transform .1s;
}
.ctc-btn:hover { filter: brightness(1.1); }
.ctc-btn:active { transform: translateY(1px); }
.ctc-btn:disabled { opacity: .6; cursor: wait; }
.ctc-btn--ghost { background: transparent; border-color: var(--c-line-2); color: var(--c-text) !important; }
.ctc-btn--ghost:hover { background: rgba(255,255,255,.05); }
.ctc-btn--full { width: 100%; padding: 13px 18px; margin-top: 6px; }
.ctc-btn.is-loading i { animation: ctc-spin 1s linear infinite; }
@keyframes ctc-spin { to { transform: rotate(360deg); } }

/* ── Formulaire ──────────────────────────────────────────── */
.ctc-form { margin-top: 18px; display: grid; gap: 14px; }
.ctc-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ctc-field { display: grid; gap: 6px; margin: 0; }
.ctc-field > span { font-size: .84rem; font-weight: 600; color: #d1d5db; display: flex; justify-content: space-between; }
.ctc-field em { font-style: normal; font-weight: 400; color: var(--c-muted); font-size: .78rem; }
.ctc input[type=text], .ctc input[type=email], .ctc select, .ctc textarea {
  width: 100%; margin: 0; padding: 11px 13px;
  background: var(--c-bg-2); color: var(--c-text);
  border: 1px solid var(--c-line-2); border-radius: 11px;
  font: inherit; font-size: .95rem; outline: none; box-shadow: none;
  transition: border-color .15s, box-shadow .15s;
}
.ctc textarea { resize: vertical; min-height: 130px; }
.ctc select { appearance: auto; cursor: pointer; }
.ctc input:focus, .ctc select:focus, .ctc textarea:focus {
  border-color: var(--c-accent); box-shadow: 0 0 0 3px rgba(168,85,247,.22);
}
.ctc-hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.ctc-hint {
  margin-top: -6px; padding: 9px 12px; border-radius: 10px; font-size: .85rem;
  background: rgba(250,204,21,.08); border: 1px solid rgba(250,204,21,.25); color: #fde68a;
}
.ctc-legal { font-size: .78rem; color: var(--c-muted); display: flex; gap: .45rem; align-items: baseline; }
.ctc .cf-turnstile { min-height: 65px; }

.ctc-alert { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; margin-top: 14px; font-size: .9rem; }
.ctc-alert > i { margin-top: 3px; }
.ctc-alert--ok  { background: rgba(52,211,153,.10); border: 1px solid rgba(52,211,153,.35); color: #a7f3d0; }
.ctc-alert--err { background: rgba(248,113,113,.10); border: 1px solid rgba(248,113,113,.35); color: #fecaca; }

/* ── Tchat ───────────────────────────────────────────────── */
.ctc-chat { padding: 0; display: flex; flex-direction: column; overflow: hidden; min-height: 560px; }
.ctc-chat-head {
  display: flex; align-items: center; gap: 12px; padding: 16px 18px;
  border-bottom: 1px solid var(--c-line); background: rgba(255,255,255,.02);
}
.ctc-chat-who { flex: 1; min-width: 0; }
.ctc-chat-who small { color: var(--c-muted); font-size: .8rem; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ctc-chat-head.is-online [data-status-label] { color: var(--c-ok); font-weight: 600; }
.ctc-lock {
  font-size: .75rem; color: var(--c-muted); padding: 4px 9px; border-radius: 999px;
  border: 1px solid var(--c-line-2); white-space: nowrap;
}
.ctc-chat-body {
  flex: 1; height: 400px; overflow-y: auto; padding: 18px;
  display: flex; flex-direction: column; gap: 4px;
  background: linear-gradient(180deg, rgba(0,0,0,.12), transparent 30%);
  scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.15) transparent;
}
.ctc-chat-empty { margin: auto; text-align: center; max-width: 320px; color: var(--c-muted); }
.ctc-chat-empty i { font-size: 2.2rem; color: var(--c-accent-2); opacity: .7; margin-bottom: 10px; }
.ctc-chat-empty strong { display: block; color: #fff; margin-bottom: 4px; }
.ctc-day {
  align-self: center; margin: 12px 0 6px; padding: 3px 12px; border-radius: 999px;
  font-size: .74rem; color: var(--c-muted); background: rgba(255,255,255,.05); text-transform: capitalize;
}
.ctc-msg { display: flex; flex-direction: column; max-width: 82%; margin-top: 4px; }
.ctc-msg.is-me { align-self: flex-end; align-items: flex-end; }
.ctc-msg.is-admin { align-self: flex-start; align-items: flex-start; }
.ctc-bubble {
  padding: 9px 13px; border-radius: 16px; white-space: pre-wrap; word-wrap: break-word; overflow-wrap: anywhere;
  font-size: .93rem; line-height: 1.45;
}
.is-me .ctc-bubble { background: linear-gradient(135deg, var(--c-accent), #7c3aed); color: #fff; border-bottom-right-radius: 5px; }
.is-admin .ctc-bubble { background: #1f2937; color: var(--c-text); border: 1px solid var(--c-line); border-bottom-left-radius: 5px; }
.ctc-meta { font-size: .7rem; color: var(--c-muted); margin: 3px 4px 0; display: flex; gap: 5px; align-items: center; }
.ctc-read.is-read { color: var(--c-accent-2); }

.ctc-typing { padding: 0 18px 8px; font-size: .8rem; color: var(--c-muted); display: flex; align-items: center; gap: 3px; }
.ctc-typing span { width: 5px; height: 5px; border-radius: 50%; background: var(--c-muted); animation: ctc-blink 1.2s infinite; }
.ctc-typing span:nth-child(2) { animation-delay: .2s; }
.ctc-typing span:nth-child(3) { animation-delay: .4s; margin-right: 6px; }
@keyframes ctc-blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }

.ctc-chat-input { display: flex; gap: 10px; align-items: flex-end; padding: 12px 14px 6px; border-top: 1px solid var(--c-line); }
.ctc .ctc-chat-input textarea { min-height: 46px; max-height: 160px; resize: none; border-radius: 14px; padding: 12px 14px; line-height: 1.4; }
.ctc-chat-input button {
  flex: 0 0 auto; width: 46px; height: 46px; border-radius: 14px; border: 0; cursor: pointer;
  background: linear-gradient(135deg, var(--c-accent), #7c3aed); color: #fff; font-size: 1rem;
}
.ctc-chat-input button:disabled { opacity: .55; cursor: wait; }
.ctc-chat-foot { display: flex; justify-content: space-between; gap: 10px; padding: 0 16px 12px; font-size: .72rem; color: var(--c-muted); }
.ctc-chat-error { margin: 0 14px 12px; padding: 8px 12px; border-radius: 10px; font-size: .84rem; background: rgba(248,113,113,.12); color: #fecaca; }

.ctc-chat-locked { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 12px; padding: 40px 28px; }
.ctc-chat-locked > i { font-size: 2.4rem; color: var(--c-accent-2); opacity: .8; }
.ctc-chat-locked p { color: var(--c-muted); max-width: 360px; }
.ctc-chat-locked .ctc-row { justify-content: center; margin-top: 4px; }

/* ── PREMIUM & Discord ──────────────────────────────────── */
.ctc-premium { background: radial-gradient(420px 180px at 100% 0%, rgba(250,204,21,.10), transparent 70%), var(--c-bg); }
.ctc-premium h2 i { color: var(--c-gold); }
.ctc-tiers { list-style: none; padding: 0; margin: 16px 0 4px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.ctc-tiers li {
  display: grid; justify-items: center; gap: 2px; padding: 12px 8px; border-radius: 12px;
  border: 1px solid rgba(250,204,21,.22); background: rgba(250,204,21,.05);
}
.ctc-tiers b { font-family: 'Cinzel', Georgia, serif; font-size: 1.35rem; color: var(--c-gold); }
.ctc-tiers span { font-size: .78rem; color: var(--c-muted); }
.ctc-discord h2 i { color: #8b97ff; }
.ctc-discord-frame {
  margin-top: 16px; min-height: 120px; border-radius: 12px; border: 1px dashed var(--c-line-2);
  display: grid; place-items: center; overflow: hidden;
}
.ctc-discord-frame iframe { width: 100%; height: 420px; border: 0; display: block; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 900px) {
  .ctc-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .ctc { font-size: 14.5px; padding-top: 0; }
  .ctc-hero { padding: 20px 18px; }
  .ctc-status { min-width: 0; max-width: none; width: 100%; }
  .ctc-channels { grid-template-columns: 1fr; gap: 8px; }
  .ctc-channel { padding: 11px 14px; }
  .ctc-card { padding: 18px 16px; }
  .ctc-chat { padding: 0; min-height: 0; }
  .ctc-chat-body { height: 58vh; min-height: 320px; padding: 14px; }
  .ctc-fields { grid-template-columns: 1fr; }
  .ctc-msg { max-width: 90%; }
  .ctc-chat-foot span:first-child { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .ctc *, .ctc *::before, .ctc *::after { animation: none !important; transition: none !important; }
}
