/* =========================================================
   LAYOUT - Sidebar (PC) + Bottom App Bar (Mobile)
   Style néon glass cohérent avec style.css
   ========================================================= */

/* ===== Layout container ===== */
.layout {
  display: flex;
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

/* ===== SIDEBAR (Desktop) ===== */
.sidebar {
  width: 260px;
  flex-shrink: 0;
  background: rgba(2, 6, 23, 0.65);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border-right: 1px solid var(--border);
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  z-index: 50;
  box-shadow:
    0 0 60px rgba(34, 211, 238, 0.05),
    inset -1px 0 0 rgba(34, 211, 238, 0.08);
}

.sidebar::before {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  right: 0;
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--cyan-glow), transparent);
  opacity: 0.6;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 22px 22px 22px 22px;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
}
.sidebar-brand .brand-logo {
  width: 40px;
  height: 40px;
}
.sidebar-brand-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #fff, var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.sidebar-section-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  font-weight: 700;
  padding: 18px 22px 10px;
}

.sidebar-nav {
  flex: 1;
  padding: 8px 12px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.sidebar-nav::-webkit-scrollbar { width: 4px; }
.sidebar-nav::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 2px; }

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 11px 14px;
  border-radius: 11px;
  color: var(--text-dim);
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s;
  text-decoration: none;
  position: relative;
  border: 1px solid transparent;
}
.sidebar-link-icon {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(34, 211, 238, 0.06);
  border: 1px solid var(--border);
  border-radius: 9px;
  font-size: 16px;
  flex-shrink: 0;
  transition: all 0.2s;
}
.sidebar-link:hover {
  background: rgba(34, 211, 238, 0.05);
  color: var(--text);
  border-color: var(--border);
}
.sidebar-link:hover .sidebar-link-icon {
  background: rgba(34, 211, 238, 0.15);
  border-color: var(--border-glow);
  box-shadow: 0 0 16px var(--cyan-glow);
}
.sidebar-link.active {
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.18), rgba(168, 85, 247, 0.1));
  color: var(--cyan);
  border-color: var(--border-glow);
  box-shadow: 0 0 20px rgba(34, 211, 238, 0.15), inset 0 0 12px rgba(34, 211, 238, 0.05);
}
.sidebar-link.active .sidebar-link-icon {
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  color: var(--bg);
  border-color: var(--cyan);
  box-shadow: 0 0 16px var(--cyan-glow);
}
.sidebar-link.active::before {
  content: "";
  position: absolute;
  left: -12px;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 24px;
  background: linear-gradient(180deg, var(--cyan), var(--magenta));
  border-radius: 0 4px 4px 0;
  box-shadow: 0 0 12px var(--cyan-glow);
}

.sidebar-footer {
  padding: 16px;
  border-top: 1px solid var(--border);
}

.sidebar-tg {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  background: linear-gradient(135deg, var(--telegram), var(--telegram-2));
  border-radius: 12px;
  color: white !important;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  box-shadow: 0 0 24px rgba(34, 158, 217, 0.4), inset 0 0 12px rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.25s;
}
.sidebar-tg:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 40px rgba(34, 158, 217, 0.7);
}
.sidebar-tg-icon {
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.sidebar-tg-icon svg { width: 18px; height: 18px; fill: white; }

/* ===== MAIN CONTENT AREA ===== */
.main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: transparent;
}

/* ===== TOPBAR ===== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(2, 6, 23, 0.7);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid var(--border);
  padding: 14px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  transition: all 0.3s;
}
.topbar.scrolled {
  background: rgba(2, 6, 23, 0.92);
  border-bottom-color: var(--border-strong);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4), 0 0 30px rgba(34, 211, 238, 0.05);
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}

.topbar-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  color: var(--text);
}

.topbar-search {
  position: relative;
  flex: 1;
  max-width: 380px;
}
.topbar-search input {
  width: 100%;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 14px 10px 38px;
  font-family: inherit;
  font-size: 14px;
  color: var(--text);
  transition: all 0.2s;
}
.topbar-search input:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px var(--cyan-glow);
}
.topbar-search::before {
  content: "🔍";
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  opacity: 0.5;
  pointer-events: none;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.topbar-icon-btn {
  width: 40px;
  height: 40px;
  background: rgba(34, 211, 238, 0.06);
  border: 1px solid var(--border);
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  text-decoration: none;
  font-size: 16px;
  transition: all 0.2s;
  cursor: pointer;
}
.topbar-icon-btn:hover {
  border-color: var(--border-glow);
  color: var(--cyan);
  box-shadow: 0 0 16px var(--cyan-glow);
}

/* =========================================================
   LANGUAGE PICKER
   ========================================================= */
.lang-picker {
  position: relative;
  flex-shrink: 0;
}
.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: rgba(34, 211, 238, 0.06);
  border: 1px solid var(--border);
  color: var(--text-dim);
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  min-height: 40px;
}
.lang-btn:hover {
  border-color: var(--border-glow);
  color: var(--cyan);
  box-shadow: 0 0 16px var(--cyan-glow);
}
.lang-flag { font-size: 16px; line-height: 1; }
.lang-code { letter-spacing: 0.05em; }

.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 180px;
  max-height: 380px;
  overflow-y: auto;
  background: rgba(2, 6, 23, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  padding: 6px;
  box-shadow: var(--shadow-lg), 0 0 30px var(--cyan-glow);
  display: flex;
  flex-direction: column;
  gap: 2px;
  z-index: 200;
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition: all 0.2s;
  scrollbar-width: thin;
  scrollbar-color: rgba(34, 211, 238, 0.3) transparent;
}
.lang-menu::-webkit-scrollbar { width: 4px; }
.lang-menu::-webkit-scrollbar-thumb { background: rgba(34, 211, 238, 0.3); border-radius: 2px; }
.lang-picker.open .lang-menu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.lang-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 13px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  border-radius: 8px;
  font-family: inherit;
  transition: all 0.15s;
}
.lang-option span { font-size: 16px; line-height: 1; }
.lang-option:hover {
  background: rgba(34, 211, 238, 0.1);
  color: var(--text);
}
.lang-option.active {
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.2), rgba(168, 85, 247, 0.1));
  color: var(--cyan);
  font-weight: 700;
}

@media (max-width: 600px) {
  .lang-btn { padding: 8px 10px; }
  .lang-code { display: none; }
  .lang-menu { right: -50px; }
}

.topbar-tg-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  background: linear-gradient(135deg, var(--telegram), var(--telegram-2));
  color: white !important;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  box-shadow: 0 0 20px rgba(34, 158, 217, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: all 0.2s;
  white-space: nowrap;
}
.topbar-tg-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 32px rgba(34, 158, 217, 0.6);
}
.topbar-tg-btn svg { width: 16px; height: 16px; fill: white; }

.topbar-menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  background: rgba(34, 211, 238, 0.06);
  border: 1px solid var(--border);
  color: var(--cyan);
  border-radius: 10px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.topbar-menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: all 0.3s;
  box-shadow: 0 0 4px currentColor;
}

.topbar-user {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(135deg, var(--magenta), var(--magenta-2));
  border: 2px solid var(--border-magenta);
  box-shadow: 0 0 12px var(--magenta-glow);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  flex-shrink: 0;
}
.topbar-user img { width: 100%; height: 100%; object-fit: cover; }

/* ===== APP BAR (mobile bottom) ===== */
.app-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  background: rgba(2, 6, 23, 0.96);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border-top: 1px solid var(--border-strong);
  padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
  justify-content: space-around;
  align-items: center;
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.6), 0 -1px 0 rgba(34, 211, 238, 0.1);
}
.app-bar-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 6px 8px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  min-width: 52px;
  min-height: 44px;
  border-radius: 10px;
  transition: all 0.2s;
  position: relative;
  flex: 1;
  max-width: 70px;
}
@media (max-width: 360px) {
  .app-bar-item { font-size: 9px; padding: 6px 4px; }
}
.app-bar-item-icon {
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.app-bar-item-icon svg {
  width: 22px;
  height: 22px;
}
.app-bar-item:hover { color: var(--text-dim); }
.app-bar-item.active {
  color: var(--cyan);
}
.app-bar-item.active .app-bar-item-icon {
  transform: scale(1.1);
  filter: drop-shadow(0 0 8px var(--cyan-glow));
}
.app-bar-item.active::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 3px;
  background: linear-gradient(90deg, var(--cyan), var(--magenta));
  border-radius: 0 0 4px 4px;
  box-shadow: 0 0 12px var(--cyan-glow);
}

/* CTA central (Telegram) plus gros */
.app-bar-cta {
  margin-top: -22px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--telegram), var(--telegram-2));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 8px 24px rgba(34, 158, 217, 0.6), 0 0 0 4px var(--bg), 0 0 0 5px rgba(34, 158, 217, 0.3);
  text-decoration: none;
  font-size: 22px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  transition: all 0.3s;
  position: relative;
}
.app-bar-cta:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 12px 36px rgba(34, 158, 217, 0.8), 0 0 0 4px var(--bg), 0 0 0 5px rgba(34, 158, 217, 0.5);
}
.app-bar-cta svg { width: 24px; height: 24px; fill: white; }

/* ===== MOBILE DRAWER (overlay for sidebar) ===== */
.drawer-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.7);
  backdrop-filter: blur(6px);
  z-index: 99;
  opacity: 0;
  transition: opacity 0.3s;
}
.drawer-overlay.open {
  display: block;
  opacity: 1;
}

/* ===== Adjust content padding when app-bar visible ===== */
@media (max-width: 880px) {
  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: 280px;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 100;
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .main {
    width: 100%;
  }
  .topbar {
    padding: 12px 16px;
    min-height: 56px;
  }
  .topbar-search { display: none; }
  .topbar-title { font-size: 15px; }
  .topbar-tg-btn span { display: none; }
  .topbar-tg-btn { padding: 9px; min-width: 40px; justify-content: center; }
  .topbar-menu-toggle { display: flex; }

  .app-bar { display: flex; }

  /* Padding bottom pour ne pas être caché par app-bar */
  body { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
  .footer { padding-bottom: calc(112px + env(safe-area-inset-bottom)); }
  .tg-float { display: none; } /* App bar a déjà le CTA Telegram */
}

/* Hide navbar quand .layout est présent */
.layout ~ .navbar,
.layout .navbar { display: none; }

/* Hide bouton tg-float dans le layout (déjà dans sidebar + appbar) */
.layout ~ .tg-float,
body:has(.layout) > .tg-float { display: none; }

/* ===== Hero adapté au layout ===== */
.layout .hero {
  padding: 60px 28px 100px;
  margin: 0 -28px;
}
@media (max-width: 880px) {
  .layout .hero {
    padding: 40px 16px 80px;
    margin: 0 -16px;
  }
}
.layout .section { padding-left: 0; padding-right: 0; }
.layout .container { padding-left: 28px; padding-right: 28px; }
@media (max-width: 880px) {
  .layout .container { padding-left: 16px; padding-right: 16px; }
}

/* =========================================================
   HERO SPLIT - Widget Telegram + Mini Produits
   ========================================================= */
.hero-split {
  padding: 40px 0 60px;
  position: relative;
}
.hero-split::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 20% 30%, rgba(59, 130, 246, 0.12), transparent 60%),
    radial-gradient(ellipse 50% 40% at 80% 70%, rgba(168, 85, 247, 0.1), transparent 60%);
  pointer-events: none;
  z-index: 0;
}
.hero-split-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 32px;
  align-items: start;
  position: relative;
  z-index: 1;
}
@media (max-width: 1024px) {
  .hero-split-grid { grid-template-columns: 1fr; gap: 28px; }
}

.split-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  background: rgba(20, 226, 154, 0.1);
  border: 1px solid rgba(20, 226, 154, 0.3);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  color: var(--positive);
  margin-bottom: 16px;
  backdrop-filter: blur(10px);
  box-shadow: 0 0 20px rgba(20, 226, 154, 0.15);
}
.split-eyebrow .dot {
  width: 6px; height: 6px;
  background: var(--positive);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--positive);
  animation: pulse 2s ease infinite;
}

.split-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.0;
  margin-bottom: 14px;
}
.split-title span {
  display: block;
  background: linear-gradient(180deg, #fff, #94a3b8);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.split-title .gradient {
  background: linear-gradient(135deg, var(--cyan), var(--blue), var(--magenta));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 30px var(--cyan-glow));
}
.split-title-sm {
  font-family: var(--font-display);
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin-bottom: 12px;
}
.split-title-sm span {
  display: block;
  color: var(--text);
}
.split-title-sm .gradient-sm {
  background: linear-gradient(135deg, var(--cyan), var(--magenta));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.split-sub {
  color: var(--text-dim);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 24px;
  max-width: 480px;
}

/* =========================================================
   TELEGRAM WIDGET
   ========================================================= */
.tg-widget {
  background: linear-gradient(180deg, #17212B 0%, #0E1621 100%);
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(34, 158, 217, 0.25);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.5),
    0 0 60px rgba(34, 158, 217, 0.2),
    inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}
.tg-widget-bg {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(34, 158, 217, 0.15), transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(34, 211, 238, 0.08), transparent 50%);
  pointer-events: none;
}
.tg-widget-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: rgba(23, 33, 43, 0.7);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  position: relative;
  z-index: 1;
}
.tg-widget-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(135deg, var(--telegram), var(--telegram-2));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
  box-shadow: 0 0 16px rgba(34, 158, 217, 0.4);
  flex-shrink: 0;
}
.tg-widget-avatar img { width: 100%; height: 100%; object-fit: cover; }
.tg-widget-info { flex: 1; min-width: 0; }
.tg-widget-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  color: white;
  display: flex;
  align-items: center;
  gap: 6px;
}
.tg-verified { flex-shrink: 0; }
.tg-widget-status {
  font-size: 11px;
  color: #8da6c0;
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 1px;
}
.tg-widget-status .tg-dot {
  width: 6px; height: 6px;
  background: #14e29a;
  border-radius: 50%;
  box-shadow: 0 0 6px #14e29a;
}
.tg-widget-close {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(34, 158, 217, 0.15);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--telegram);
  transition: all 0.2s;
}
.tg-widget-close svg { width: 16px; height: 16px; }
.tg-widget-close:hover {
  background: var(--telegram);
  color: white;
  transform: scale(1.05);
}

.tg-widget-messages {
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  z-index: 1;
  min-height: auto;
}
.tg-msg {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  animation: tgMsgIn 0.5s ease backwards;
}
.tg-msg:nth-child(1) { animation-delay: 0.1s; }
.tg-msg:nth-child(2) { animation-delay: 0.3s; }
.tg-msg:nth-child(3) { animation-delay: 0.5s; }
@keyframes tgMsgIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.tg-msg-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(34, 158, 217, 0.3), rgba(34, 211, 238, 0.2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
  border: 1px solid rgba(34, 158, 217, 0.3);
  overflow: hidden;
}
.tg-msg-bubble {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 8px 12px;
  flex: 1;
  position: relative;
  max-width: calc(100% - 36px);
}
.tg-msg-author {
  font-size: 11px;
  font-weight: 700;
  color: var(--telegram);
  margin-bottom: 3px;
}
.tg-msg-text {
  font-size: 13px;
  color: #d4dde6;
  line-height: 1.4;
}
.tg-msg-text b { color: white; font-weight: 700; }
.tg-msg-time {
  font-size: 9px;
  color: #6b7c8f;
  margin-top: 3px;
  text-align: right;
}

/* === Mode LIVE : messages réels scrapés === */
.tg-widget-messages {
  padding: 12px 10px !important;
}
.tg-widget-messages.refreshing {
  position: relative;
}
.tg-widget-messages.refreshing::after {
  content: "Actualisation…";
  position: absolute;
  top: 8px;
  right: 14px;
  font-size: 11px;
  color: var(--telegram);
  background: rgba(34, 158, 217, 0.15);
  padding: 4px 10px;
  border-radius: 100px;
  border: 1px solid rgba(34, 158, 217, 0.3);
  animation: refreshPulse 1s ease infinite;
}
@keyframes refreshPulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

.tg-msg-real {
  text-decoration: none !important;
  color: inherit;
  cursor: pointer;
  transition: transform 0.2s;
}
.tg-msg-real:hover {
  transform: translateX(2px);
}
.tg-msg-real:hover .tg-msg-bubble {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(34, 158, 217, 0.3);
}
.tg-msg-real .tg-msg-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.tg-msg-photo {
  margin: 5px -12px;
  overflow: hidden;
  position: relative;
}
.tg-msg-photo img {
  width: 100%;
  display: block;
  max-height: 180px;
  object-fit: cover;
}

.tg-msg-text {
  white-space: pre-wrap;
  word-wrap: break-word;
}

.tg-msg-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 6px;
  gap: 8px;
}
.tg-msg-views {
  font-size: 11px;
  color: #6b7c8f;
}
.tg-msg-real .tg-msg-time {
  text-align: right;
  flex: 0;
  white-space: nowrap;
}

@media (max-width: 600px) {
  .tg-widget-live { max-height: 400px; }
  .tg-msg-photo { margin: 6px -12px; }
  .tg-msg-photo img { max-height: 180px; }
}

.tg-widget-join {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0 12px 12px;
  padding: 13px;
  background: linear-gradient(135deg, var(--telegram), var(--telegram-2));
  color: white !important;
  border-radius: 12px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  box-shadow:
    0 8px 24px rgba(34, 158, 217, 0.5),
    inset 0 0 12px rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.25s;
  position: relative;
  z-index: 1;
}
.tg-widget-join:hover {
  transform: translateY(-2px);
  box-shadow:
    0 12px 36px rgba(34, 158, 217, 0.7),
    inset 0 0 12px rgba(255, 255, 255, 0.2);
}
.tg-widget-join-icon {
  width: 28px;
  height: 28px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* =========================================================
   MINI PRODUCTS (sidebar de droite)
   ========================================================= */
.mini-products {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.mini-product {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s;
}
.mini-product:hover {
  border-color: var(--border-glow);
  transform: translateX(4px);
  box-shadow: 0 0 24px var(--cyan-glow);
}
.mini-product-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.15), rgba(168, 85, 247, 0.1));
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
  overflow: hidden;
  box-shadow: 0 0 16px rgba(34, 211, 238, 0.1);
}
.mini-product-icon img { width: 100%; height: 100%; object-fit: cover; }
.mini-product-body { flex: 1; min-width: 0; }
.mini-product-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 2px;
  color: var(--text);
}
.mini-product-sub {
  font-size: 12px;
  color: var(--text-dim);
  margin-bottom: 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mini-product-meta {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.mini-pill {
  padding: 2px 8px;
  background: rgba(34, 211, 238, 0.1);
  color: var(--cyan);
  border-radius: 5px;
  font-size: 11px;
  font-weight: 600;
}
.mini-pill.positive { background: rgba(20, 226, 154, 0.12); color: var(--positive); }
.mini-pill.negative { background: rgba(255, 84, 112, 0.12); color: var(--negative); }
.mini-pill-outline {
  padding: 2px 8px;
  border: 1px solid var(--border-strong);
  color: var(--text-muted);
  border-radius: 5px;
  font-size: 11px;
  font-weight: 600;
}
.mini-product-price {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  background: linear-gradient(135deg, var(--cyan), var(--magenta));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  flex-shrink: 0;
}
.mini-products-more {
  display: inline-block;
  margin-top: 16px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  color: var(--cyan);
  border: 1px solid var(--border-glow);
  border-radius: 10px;
  transition: all 0.2s;
  background: rgba(34, 211, 238, 0.05);
}
.mini-products-more:hover {
  background: rgba(34, 211, 238, 0.15);
  box-shadow: 0 0 20px var(--cyan-glow);
}
.mini-empty {
  padding: 30px;
  text-align: center;
  background: var(--bg-glass);
  border-radius: 14px;
  border: 1px dashed var(--border-strong);
  color: var(--text-muted);
  font-size: 14px;
}

/* =========================================================
   App bar SVG icon adjustments
   ========================================================= */
.app-bar-item-icon svg,
.sidebar-link-icon svg,
.topbar-icon-btn svg,
.topbar-tg-btn svg,
.topbar-menu-toggle svg {
  display: block;
}
.app-bar-cta svg {
  width: 22px;
  height: 22px;
  display: block;
}

/* Mobile responsive */
@media (max-width: 880px) {
  .hero-split { padding: 16px 0 32px; }
  .hero-split-grid { gap: 36px; }
  .split-title {
    font-size: clamp(28px, 8vw, 36px);
    line-height: 1.1;
    padding-bottom: 2px;
  }
  .split-title-sm {
    font-size: clamp(22px, 6vw, 30px);
    line-height: 1.15;
    padding-bottom: 4px;
  }
  /* Fix gradient text clipping sur mobile */
  .split-title span,
  .split-title-sm span,
  .split-title .gradient,
  .split-title-sm .gradient-sm {
    padding-bottom: 4px;
    line-height: 1.15;
  }
  .split-sub { font-size: 14px; margin-bottom: 18px; }
  .split-eyebrow { font-size: 11px; padding: 6px 12px; }
  .tg-widget-messages { padding: 12px 10px; min-height: auto; }
  .tg-widget-header { padding: 12px 14px; }
  .tg-widget-join { margin: 0 12px 12px; padding: 13px; font-size: 14px; }
  .mini-product { padding: 12px; gap: 10px; }
  .mini-product-icon { width: 44px; height: 44px; font-size: 20px; }
  .mini-product-name { font-size: 14px; }
  .mini-product-price { font-size: 13px; }
}
@media (max-width: 600px) {
  .hero-split-grid { gap: 28px; }
  .hero-split { padding: 12px 0 24px; }
  .split-title { font-size: clamp(26px, 9vw, 34px); }
  .split-title-sm { font-size: clamp(20px, 7vw, 26px); }
}

/* =========================================================
   PAGE SERVICE DE CODAGE
   ========================================================= */
.service-hero {
  position: relative;
  padding: 80px 0 60px;
  overflow: hidden;
}
.service-hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
}
.service-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  background: rgba(20, 226, 154, 0.12);
  border: 1px solid rgba(20, 226, 154, 0.3);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  color: var(--positive);
  margin-bottom: 24px;
  backdrop-filter: blur(10px);
  box-shadow: 0 0 24px rgba(20, 226, 154, 0.15);
}
.service-hero-badge .dot {
  width: 6px; height: 6px;
  background: var(--positive);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--positive);
  animation: pulse 2s ease infinite;
}
.service-title {
  font-family: var(--font-display);
  font-size: clamp(38px, 7vw, 72px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.0;
  margin-bottom: 22px;
}
.service-title span {
  display: block;
  background: linear-gradient(180deg, #fff, #94a3b8);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.service-title .gradient {
  background: linear-gradient(135deg, var(--cyan), var(--blue), var(--magenta));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 40px var(--cyan-glow));
}
.service-subtitle {
  font-size: clamp(15px, 1.8vw, 19px);
  color: var(--text-dim);
  max-width: 700px;
  margin: 0 auto 36px;
  line-height: 1.65;
}
.service-subtitle b {
  color: var(--cyan);
  font-weight: 600;
}
.service-cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Cards services */
.service-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 24px;
}
.service-card {
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s;
}
.service-card::before {
  content: "";
  position: absolute;
  top: -50px;
  right: -50px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, var(--cyan-glow), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s;
}
.service-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-4px);
  box-shadow: 0 24px 60px rgba(0,0,0,0.4), 0 0 30px var(--cyan-glow);
}
.service-card:hover::before { opacity: 0.6; }
.service-card-icon {
  font-size: 48px;
  margin-bottom: 16px;
  filter: drop-shadow(0 8px 24px var(--cyan-glow));
  position: relative;
  z-index: 1;
}
.service-card h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin-bottom: 6px;
  position: relative;
  z-index: 1;
}
.service-card-sub {
  font-size: 14px;
  color: var(--text-dim);
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}
.service-card-list {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  position: relative;
  z-index: 1;
}
.service-card-list li {
  position: relative;
  padding: 8px 0 8px 30px;
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.5;
  border-bottom: 1px solid var(--border);
}
.service-card-list li:last-child { border-bottom: none; }
.service-card-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 18px;
  height: 18px;
  background: rgba(34, 211, 238, 0.15);
  border: 1px solid var(--border-glow);
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%2322d3ee' stroke-width='3'%3E%3Cpath d='M3 8l3 3 7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 10px;
}
.service-card-cta {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  padding: 12px 18px;
  background: linear-gradient(135deg, rgba(34, 158, 217, 0.15), rgba(34, 211, 238, 0.1));
  border: 1px solid var(--border-glow);
  border-radius: 12px;
  color: var(--cyan);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.2s;
  position: relative;
  z-index: 1;
}
.service-card-cta:hover {
  background: linear-gradient(135deg, var(--telegram), var(--telegram-2));
  color: white;
  border-color: var(--telegram);
  box-shadow: 0 8px 24px rgba(34, 158, 217, 0.4);
}
.service-card-cta:hover span {
  transform: translateX(4px);
}
.service-card-cta span {
  transition: transform 0.2s;
}

/* Process steps */
.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
}
.process-step {
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
  position: relative;
  transition: all 0.3s;
}
.process-step:hover {
  border-color: var(--border-glow);
  transform: translateY(-3px);
  box-shadow: 0 0 24px var(--cyan-glow);
}
.process-step-num {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--cyan), var(--magenta));
  border-radius: 50%;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  color: var(--bg);
  box-shadow: 0 0 24px var(--cyan-glow);
}
.process-step h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}
.process-step p {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.5;
}

/* Perks why me */
.service-perks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 18px;
  max-width: 1100px;
  margin: 0 auto;
}
.service-perk {
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 24px;
  transition: all 0.3s;
}
.service-perk:hover {
  border-color: var(--border-glow);
  transform: translateY(-2px);
  box-shadow: 0 0 24px var(--cyan-glow);
}
.service-perk-icon {
  font-size: 36px;
  margin-bottom: 12px;
  filter: drop-shadow(0 4px 16px var(--cyan-glow));
}
.service-perk h3 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 6px;
}
.service-perk p {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.5;
}

@media (max-width: 880px) {
  .service-hero { padding: 48px 0 32px; }
  .service-card { padding: 26px 22px; }
  .service-card-icon { font-size: 40px; }
  .process-step { padding: 22px 18px; }
}
