/* ==========================================================================
   GUILLAUME MURAT — YOUTUBE STRATEGIST SHOWCASE
   Theme: YouTube Light / Blanc Épuré (Zero 3D/Parallax)
   ========================================================================== */

:root {
  /* YouTube Clean Light Theme */
  --bg-deep: #f8fafc;
  --bg-space: #f1f5f9;
  --console-bg: #ffffff;
  --console-border: rgba(0, 0, 0, 0.08);
  --console-border-hover: rgba(99, 102, 241, 0.35);
  
  --yt-red: #ff0000;
  --yt-dark: #0f0f0f;
  --yt-surface: #f8fafc;
  --yt-hover: rgba(0, 0, 0, 0.04);
  --yt-active: rgba(0, 0, 0, 0.08);
  --yt-border: #e2e8f0;
  
  --primary: #4f46e5;
  --primary-light: #6366f1;
  --primary-glow: rgba(79, 70, 229, 0.25);
  --accent-cyan: #0284c7;
  --accent-cyan-glow: rgba(2, 132, 199, 0.2);
  --success: #059669;
  
  --text-main: #0f172a;
  --text-muted: #475569;
  --text-dim: #64748b;
  
  /* Fonts */
  --font-heading: 'Google Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Google Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  /* Layout */
  --topbar-height: 56px;
  --sidebar-width: 240px;

  /* Motion Tokens (Emil Kowalski custom physics) */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--bg-deep);
  color: var(--text-main);
  font-family: var(--font-body);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

/* Mobile-native interactive controls standard */
button,
a,
[role="button"],
.yt-menu-toggle,
.yt-nav-link,
.yt-sidebar-close,
.yt-create-btn,
.yt-icon-btn,
.yt-search-btn,
.floating-cta-pill {
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
}

/* Prevent auto-zoom on iOS when tapping inputs */
input,
textarea,
select {
  font-size: 16px;
}

/* Accessibility: Screen Reader Only Utility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* ==========================================================================
   APP LAYOUT WRAPPER & CENTRAL CONSOLE (CLEAN YOUTUBE LIGHT)
   ========================================================================== */

.app-layout-wrapper,
.scene-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  position: relative;
  background: var(--bg-space);
  padding: 0 0 80px;
}

/* ==========================================================================
   ORBITAL HERO SECTION (ARTCRAFT INSPIRED - CLEAN LIGHT THEME)
   ========================================================================== */

.orbital-hero {
  position: relative;
  width: 100%;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #FFFDEF;
  overflow: hidden;
  padding: 60px 20px 80px;
  box-sizing: border-box;
}

/* Orbit Stage & Concentric Tracks */
.orbit-stage {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  pointer-events: none;
  z-index: 15;
}

.orbit-track {
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 50%;
  border: 1px dashed rgba(15, 23, 42, 0.08);
  pointer-events: none;
  transform-origin: center center;
}

.orbit-track.inner-track {
  width: clamp(480px, 54vw, 720px);
  height: clamp(480px, 54vw, 720px);
  --radius: calc(clamp(480px, 54vw, 720px) / 2);
  margin-top: calc(-1 * clamp(480px, 54vw, 720px) / 2);
  margin-left: calc(-1 * clamp(480px, 54vw, 720px) / 2);
  animation: orbital-rotate 70s linear infinite;
}

.orbit-track.outer-track {
  width: clamp(780px, 86vw, 1160px);
  height: clamp(780px, 86vw, 1160px);
  --radius: calc(clamp(780px, 86vw, 1160px) / 2);
  margin-top: calc(-1 * clamp(780px, 86vw, 1160px) / 2);
  margin-left: calc(-1 * clamp(780px, 86vw, 1160px) / 2);
  animation: orbital-rotate 95s linear infinite;
}

.orbit-item {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  transform: rotate(var(--angle)) translate(var(--radius)) rotate(calc(-1 * var(--angle)));
  display: flex;
  align-items: center;
  justify-content: center;
}

.orbit-card {
  width: clamp(120px, 12vw, 185px);
  aspect-ratio: 16 / 9;
  position: absolute;
  transform: translate(-50%, -50%);
  pointer-events: auto;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 10px 25px -4px rgba(15, 23, 42, 0.12), 0 2px 6px -1px rgba(15, 23, 42, 0.06);
  border: 1px solid rgba(15, 23, 42, 0.09);
  overflow: hidden;
  cursor: default;
  transition: box-shadow 0.3s var(--ease-out), transform 0.25s var(--ease-out);
}

.inner-track .orbit-card {
  animation: orbital-counter-rotate 70s linear infinite;
}

.outer-track .orbit-card {
  animation: orbital-counter-rotate 95s linear infinite;
}

.orbit-thumb-wrap {
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: inherit;
  background: #f1f5f9;
  animation: miniature-pulse 3.6s ease-in-out infinite alternate;
  animation-delay: var(--pulse-delay, 0s);
}

.orbit-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}

/* Continuous orbital rotation on hover (thumbnails never stop spinning) */
.orbital-hero .orbit-track,
.orbital-hero .orbit-card,
.orbital-hero .orbit-thumb-wrap {
  animation-play-state: running;
}

@media (hover: hover) and (pointer: fine) {
  .orbit-card:hover {
    box-shadow: 0 20px 40px -8px rgba(15, 23, 42, 0.25), 0 4px 10px rgba(15, 23, 42, 0.08);
    border-color: rgba(99, 102, 241, 0.45);
    z-index: 50;
  }
  .orbit-card:hover .orbit-thumb-img {
    filter: brightness(1.05);
  }
}

/* GPU Keyframe Animations */
@keyframes orbital-rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes orbital-counter-rotate {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  to {
    transform: translate(-50%, -50%) rotate(-360deg);
  }
}

@keyframes miniature-pulse {
  0% {
    transform: scale(0.97);
    box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
  }
  100% {
    transform: scale(1.03);
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.1);
  }
}

.orbital-hero-content {
  position: relative;
  z-index: 25;
  text-align: center;
  max-width: 780px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 0 16px;
  filter: drop-shadow(0 0 25px #FFFDEF) drop-shadow(0 0 50px rgba(255, 253, 239, 0.95));
}

.orbital-hero-content::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 105%;
  height: 105%;
  min-width: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 253, 239, 0.92) 0%, rgba(255, 253, 239, 0.65) 55%, rgba(255, 253, 239, 0) 100%);
  filter: blur(24px);
  z-index: -1;
  pointer-events: none;
}

.orbital-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dim);
  letter-spacing: 0.02em;
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.5);
  animation: pulse-dot 2s infinite ease-in-out;
}

@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 0.9; }
  50% { transform: scale(1.3); opacity: 1; }
}

.orbital-hero-title {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(8px, 1.4vw, 16px);
  font-family: var(--font-heading);
  font-size: clamp(34px, 5.8vw, 74px);
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin: 0;
  text-transform: uppercase;
  text-shadow: 0 0 20px #FFFDEF, 0 0 40px #FFFDEF;
}

.hero-yt-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  filter: drop-shadow(0 3px 12px rgba(255, 0, 0, 0.35));
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-yt-logo:hover {
  transform: scale(1.08);
}

.hero-yt-logo svg {
  display: block;
  width: clamp(34px, 5.4vw, 64px);
  height: auto;
  aspect-ratio: 24 / 17;
}

.orbital-hero-sub {
  font-family: var(--font-body);
  font-size: clamp(16px, 2.2vw, 22px);
  font-weight: 600;
  color: #334155;
  margin: 0;
  line-height: 1.4;
  text-shadow: 0 0 16px #FFFDEF, 0 0 30px #FFFDEF;
}

.orbital-hero-sub strong {
  font-weight: 800;
  color: #0f172a;
}

.orbital-hero-sub em {
  font-style: italic;
  color: var(--primary);
  font-weight: 600;
}

.orbital-hero-metric {
  font-size: clamp(13px, 1.4vw, 15px);
  color: #0f172a;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 999px;
  padding: 7px 20px;
  font-weight: 500;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
}

.metric-highlight {
  color: #0f172a;
  font-weight: 800;
}

.orbital-hero-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 48px;
  padding: 0 26px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  touch-action: manipulation;
  transition: transform 0.2s var(--ease-out), background-color 0.2s var(--ease-out), border-color 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out), color 0.2s var(--ease-out);
}

.hero-btn-primary {
  background: #0f172a;
  color: #ffffff;
  border: 1px solid #0f172a;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.18);
}

.hero-btn-secondary {
  background: #ff0000;
  color: #ffffff;
  border: 1.5px solid #ff0000;
  box-shadow: 0 4px 14px rgba(255, 0, 0, 0.25);
}

@media (hover: hover) and (pointer: fine) {
  .hero-btn-primary:hover {
    background: #1e293b;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.25);
    color: #ffffff;
  }

  .hero-btn-secondary:hover {
    background: #e60000;
    border-color: #e60000;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 0, 0, 0.35);
  }
}

.hero-btn:active {
  transform: scale(0.96);
  transition: transform 80ms ease-out;
}

.orbital-scroll-indicator {
  position: absolute;
  bottom: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: #94a3b8;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  z-index: 25;
  transition: color 0.2s ease, transform 0.2s ease;
}

.orbital-scroll-indicator:hover {
  color: #0f172a;
  transform: translateY(2px);
}

.scroll-indicator-icon {
  animation: bounce-indicator 2s infinite ease-in-out;
}

@keyframes bounce-indicator {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(5px); }
}

#youtube-console.main-console,
#youtube-console.floating-console,
#youtube-console {
  width: 100%;
  max-width: 1360px;
  background: var(--console-bg);
  border: 1px solid var(--console-border);
  border-radius: 20px;
  box-shadow: 
    0 10px 30px -10px rgba(15, 23, 42, 0.06),
    0 1px 3px rgba(15, 23, 42, 0.04);
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
  overflow: hidden;
  margin: 20px 16px 0;
}

#youtube-console:hover {
  border-color: var(--console-border-hover);
  box-shadow: 
    0 18px 45px -12px rgba(15, 23, 42, 0.1),
    0 2px 6px rgba(15, 23, 42, 0.04);
}

/* ==========================================================================
   YOUTUBE TOP BAR (LIGHT CLEAN WHITE)
   ========================================================================== */

.yt-topbar {
  height: var(--topbar-height);
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid var(--yt-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
}

.yt-topbar-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.yt-menu-toggle {
  background: transparent;
  border: none;
  color: var(--text-main);
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.yt-menu-toggle:hover {
  background: var(--yt-hover);
}

.yt-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--text-main);
}

.yt-logo-badge {
  background: linear-gradient(135deg, #ff0000, #cc0000);
  width: 32px;
  height: 22px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(255, 0, 0, 0.3);
}

.yt-logo-text {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.03em;
  color: #0f172a;
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.yt-logo-sub {
  font-size: 10px;
  text-transform: uppercase;
  background: linear-gradient(90deg, #0284c7, #4f46e5);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
}

/* Search bar */
.yt-search-box {
  display: flex;
  align-items: center;
  max-width: 520px;
  width: 100%;
  margin: 0 20px;
}

.yt-search-input-wrap {
  display: flex;
  align-items: center;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-right: none;
  border-radius: 24px 0 0 24px;
  padding: 0 16px;
  height: 38px;
  flex: 1;
}

.yt-search-input {
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-main);
  font-size: 14px;
  width: 100%;
}

.yt-search-input::placeholder {
  color: var(--text-dim);
}

.yt-search-btn {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 0 24px 24px 0;
  width: 54px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #475569;
  cursor: pointer;
  transition: background-color 0.16s var(--ease-out), color 0.16s var(--ease-out);
}

.yt-mic-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  margin-left: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #475569;
  cursor: pointer;
  transition: background-color 0.16s var(--ease-out), color 0.16s var(--ease-out);
}

/* Topbar right */
.yt-topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.yt-create-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 6px 14px;
  color: var(--text-main);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.16s var(--ease-out), border-color 0.16s var(--ease-out), color 0.16s var(--ease-out);
  white-space: nowrap;
  flex-shrink: 0;
}

.yt-create-btn .text-short {
  display: none;
}

.yt-icon-btn {
  background: transparent;
  border: none;
  color: var(--text-main);
  padding: 8px;
  border-radius: 50%;
  cursor: pointer;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background-color 0.15s ease, color 0.15s ease;
}

@media (hover: hover) and (pointer: fine) {
  .yt-search-btn:hover {
    background: #f1f5f9;
    color: var(--text-main);
  }

  .yt-mic-btn:hover {
    background: #e2e8f0;
    color: var(--primary);
  }

  .yt-create-btn:hover {
    background: rgba(99, 102, 241, 0.1);
    border-color: rgba(99, 102, 241, 0.3);
    color: var(--primary);
  }

  .yt-icon-btn:hover {
    background: var(--yt-hover);
  }
}

.notification-count {
  position: absolute;
  top: 4px;
  right: 4px;
  background: var(--yt-red);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  border-radius: 9px;
  padding: 1px 4px;
}

.user-avatar-small {
  width: 32px;
  height: 32px;
  min-width: 32px;
  min-height: 32px;
  flex-shrink: 0;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  border: 2px solid var(--primary);
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  overflow: hidden;
}

.user-avatar-small-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 1 / 1;
  flex-shrink: 0;
  border-radius: 50%;
  display: block;
}

/* ==========================================================================
   APP BODY: SIDEBAR + MAIN CONTENT (LIGHT THEME)
   ========================================================================== */

.yt-body {
  display: flex;
  min-height: calc(100vh - var(--topbar-height));
  position: relative;
}

/* Sidebar */
.yt-sidebar {
  width: var(--sidebar-width);
  background: #ffffff;
  border-right: 1px solid var(--yt-border);
  padding: 16px 12px 32px;
  flex-shrink: 0;
  transition: width 0.25s var(--ease-out), padding 0.25s var(--ease-out), transform 0.28s var(--ease-out);
  position: relative;
  align-self: stretch;
  height: auto;
  min-height: 100%;
  max-height: none;
  overflow: visible;
}

/* Desktop Collapsed Sidebar (Compact 72px mini guide) */
.yt-sidebar.collapsed {
  width: 72px;
  padding: 14px 6px;
  position: sticky;
  top: var(--topbar-height);
  align-self: flex-start;
}

.yt-sidebar.collapsed .yt-sidebar-title,
.yt-sidebar.collapsed .yt-nav-link span,
.yt-sidebar.collapsed .yt-subscriptions,
.yt-sidebar.collapsed .yt-skills-group,
.yt-sidebar.collapsed .yt-engagements-group {
  display: none;
}

.yt-sidebar.collapsed .yt-nav-link {
  justify-content: center;
  padding: 14px 0;
  gap: 0;
}

.yt-sidebar.collapsed ~ .yt-main {
  max-width: calc(100% - 72px);
}

/* Mobile Drawer Header (shown only on mobile <= 768px) */
.yt-sidebar-mobile-header {
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: 4px 6px 16px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--yt-border);
}

.yt-sidebar-close {
  background: transparent;
  border: none;
  color: var(--text-main);
  padding: 8px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, transform 0.1s ease;
}

.yt-sidebar-close:hover {
  background: var(--yt-hover);
}

.yt-sidebar-close:active {
  background: var(--yt-active);
  transform: scale(0.92);
}

/* Sidebar Backdrop for Mobile Drawer */
.yt-sidebar-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 190;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.yt-sidebar-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

body.sidebar-locked {
  overflow: hidden;
  touch-action: none;
}

.yt-sidebar::-webkit-scrollbar {
  width: 5px;
}

.yt-sidebar::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.12);
  border-radius: 99px;
}

.yt-sidebar::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.22);
}

.yt-skills-group .yt-nav-link svg {
  color: #64748b;
  transition: color 0.2s ease, transform 0.2s ease;
}

.yt-skills-group .yt-nav-link:hover svg {
  color: var(--primary);
  transform: scale(1.08);
}

.yt-engagements-group .yt-nav-link svg {
  color: #64748b;
  transition: color 0.2s ease, transform 0.2s ease;
}

.yt-engagements-group .yt-nav-link:hover svg {
  color: #10b981;
  transform: scale(1.08);
}

.yt-sidebar-group {
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--yt-border);
}

.yt-sidebar-group:last-child {
  border-bottom: none;
}

.yt-sidebar-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-dim);
  padding: 8px 12px 6px;
  letter-spacing: 0.05em;
}

.yt-nav-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 12px;
  border-radius: 10px;
  color: #334155;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: background-color 0.16s var(--ease-out), color 0.16s var(--ease-out), transform 0.16s var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .yt-nav-link:hover {
    background: var(--yt-hover);
    color: var(--text-main);
    transform: translateX(3px);
  }
}

.yt-nav-link.active {
  background: var(--yt-active);
  color: #0f172a;
  font-weight: 700;
}

.yt-nav-link svg {
  flex-shrink: 0;
  color: inherit;
}

.sub-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
  overflow: hidden;
  background: #f1f5f9;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.sub-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.nowtech-sub { background: #00d26a; }
.greengot-sub { background: #138808; }
.carta-sub { background: #ef4444; }
.limit-sub { background: #0284c7; }
.melee-sub { background: #f59e0b; }
.gslash-sub { background: #4f46e5; }

/* Main channel content */
.yt-main {
  flex: 1;
  min-width: 0;
  overflow: visible;
  padding: 0 32px 60px;
  max-width: calc(100% - var(--sidebar-width));
  background: #ffffff;
  transition: max-width 0.25s var(--ease-out);
}

/* ==========================================================================
   CHANNEL HEADER & BANNER
   ========================================================================== */

.yt-channel-banner {
  height: 160px;
  border-radius: 16px;
  margin-top: 16px;
  background-color: #0f172a;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 20px 30px;
  border: 1px solid var(--yt-border);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

/* Background image: climate warming stripes with light blur */
.yt-channel-banner::before {
  content: '';
  position: absolute;
  inset: -12px;
  background-image: url('assets/climatestripes.png');
  background-size: cover;
  background-position: center 40%;
  background-repeat: no-repeat;
  filter: blur(4px);
  transform: scale(1.05);
  z-index: 0;
  will-change: transform, filter;
}

/* Contrast enhancement overlay to guarantee sharp text readability */
.yt-channel-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(15, 23, 42, 0.22) 0%,
    rgba(15, 23, 42, 0.72) 100%
  );
  z-index: 1;
}

.banner-overlay-grid {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 24px 24px;
  z-index: 2;
  pointer-events: none;
}

.banner-content {
  position: relative;
  z-index: 3;
}

.banner-slogan {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 800;
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
  letter-spacing: -0.01em;
}

.banner-badge {
  display: inline-block;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(8px);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  color: #7dd3fc;
  font-family: var(--font-mono);
  margin-top: 6px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

/* Channel Header Info */
.yt-channel-header {
  padding: 28px 0 20px;
  display: flex;
  gap: 28px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.avatar-wrapper {
  position: relative;
  flex-shrink: 0;
}

.channel-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 4px solid #ffffff;
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.12);
  background: #f8fafc;
  object-fit: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.channel-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.channel-avatar-svg {
  width: 100%;
  height: 100%;
}

.channel-info {
  flex: 1;
  min-width: 280px;
}

.channel-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.channel-name {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #0f172a;
}

.verified-badge {
  color: #475569;
  display: flex;
  align-items: center;
}

.channel-meta {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.channel-handle {
  font-weight: 600;
  color: #0f172a;
}

.meta-dot {
  color: var(--text-dim);
}

.channel-bio {
  color: #334155;
  font-size: 14px;
  line-height: 1.6;
  max-width: 650px;
  margin-bottom: 16px;
}

.channel-links {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  font-size: 13px;
  flex-wrap: wrap;
}

.channel-link-item {
  color: #0284c7;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  word-break: break-word;
}

.channel-link-item:hover {
  text-decoration: underline;
}

/* Actions Row */
.channel-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.btn-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out), background-color 0.2s var(--ease-out), border-color 0.2s var(--ease-out);
}

.btn-pill-primary {
  background: linear-gradient(135deg, #4f46e5, #4338ca);
  color: #ffffff;
  box-shadow: 0 4px 15px var(--primary-glow);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-pill-secondary {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #0f172a;
}

@media (hover: hover) and (pointer: fine) {
  .btn-pill-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--primary-glow);
    background: linear-gradient(135deg, #6366f1, #4f46e5);
  }

  .btn-pill-secondary:hover {
    background: #e2e8f0;
  }
}

/* ==========================================================================
   STATISTICS SECTION (CLEAN YOUTUBE LIGHT AESTHETIC — MOTION PACK COMPLET)
   ========================================================================== */

.stats-section,
.stats-3d-wrapper {
  margin: 24px 0 32px;
  width: 100%;
}

.stats-container,
.stats-3d-stage.floating-stats-3d,
.stats-3d-stage {
  position: relative;
  background: #ffffff;
  border: 1px solid var(--yt-border);
  border-radius: 20px;
  padding: 30px 32px;
  box-shadow: 
    0 4px 20px rgba(15, 23, 42, 0.05),
    0 1px 3px rgba(15, 23, 42, 0.03);
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
  overflow: hidden;
}

.stats-container:hover,
.stats-3d-stage:hover {
  border-color: rgba(99, 102, 241, 0.35);
  box-shadow: 
    0 12px 35px -8px rgba(15, 23, 42, 0.08),
    0 2px 6px rgba(15, 23, 42, 0.03);
}

/* 1. Staggered Spring Reveal Items */
.stats-reveal-item {
  opacity: 0;
  transform: translateY(14px) scale(0.985);
  transition: 
    opacity 0.5s var(--ease-out),
    transform 0.55s var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

.stats-container.is-in-view .stats-reveal-item {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Top bar */
.stats-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  padding-bottom: 16px;
  margin-bottom: 24px;
}

.stats-top-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #0284c7;
  text-transform: uppercase;
}

.pulse-dot-cyan {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #0284c7;
  box-shadow: 0 0 8px #0284c7;
  animation: pulseCyan 2s infinite;
}

@keyframes pulseCyan {
  0% { box-shadow: 0 0 0 0 rgba(2, 132, 199, 0.7); }
  70% { box-shadow: 0 0 0 8px rgba(2, 132, 199, 0); }
  100% { box-shadow: 0 0 0 0 rgba(2, 132, 199, 0); }
}

.stats-top-id {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  color: #64748b;
  text-transform: uppercase;
}

.stats-corner-mark {
  font-family: var(--font-mono);
  font-size: 11px;
  color: #64748b;
}

/* 2. Main Hero Metric Card */
.stat-hero-card {
  background: linear-gradient(135deg, #ffffff 0%, #f0f4ff 100%);
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: 20px;
  padding: 28px 32px;
  margin-bottom: 22px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 12px 30px -5px rgba(15, 23, 42, 0.08);
  transition: 
    border-color 0.25s ease,
    transform 0.18s var(--ease-out),
    box-shadow 0.25s ease;
}

.stat-hero-card:hover {
  border-color: rgba(99, 102, 241, 0.55);
  box-shadow: 0 16px 36px -6px rgba(99, 102, 241, 0.12);
}

.stat-hero-card:active {
  transform: scale(0.995);
}

/* Single Shimmer Sweep (triggered when 67M odometer completes) */
.stat-hero-shimmer {
  position: absolute;
  top: -60%;
  left: -150%;
  width: 90%;
  height: 220%;
  background: linear-gradient(
    105deg,
    transparent 15%,
    rgba(255, 255, 255, 0.9) 48%,
    rgba(99, 102, 241, 0.25) 54%,
    transparent 80%
  );
  transform: rotate(18deg);
  pointer-events: none;
  opacity: 0;
  z-index: 5;
}

.stat-hero-card.shimmer-active .stat-hero-shimmer {
  animation: singleShimmerSweep 1000ms var(--ease-out) forwards;
}

@keyframes singleShimmerSweep {
  0% {
    left: -150%;
    opacity: 0;
  }
  15% {
    opacity: 1;
  }
  85% {
    opacity: 1;
  }
  100% {
    left: 220%;
    opacity: 0;
  }
}

/* Subtle micro-spring pop when 67M locks in */
.stat-hero-card.is-complete {
  animation: heroCompleteSettle 450ms var(--ease-bounce);
}

@keyframes heroCompleteSettle {
  0% { transform: scale(1); }
  50% { transform: scale(1.008); }
  100% { transform: scale(1); }
}

.stat-hero-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 10px;
}

.stat-hero-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #4338ca;
  text-transform: uppercase;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.25);
  padding: 4px 10px;
  border-radius: 6px;
}

.stat-hero-verified {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #059669;
  font-weight: 700;
}

.stat-hero-number {
  font-family: var(--font-heading);
  font-size: clamp(38px, 5.2vw, 68px);
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #0f172a 20%, #4338ca 65%, #0284c7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.2;
  padding-bottom: 4px;
  margin-bottom: 12px;
  font-variant-numeric: tabular-nums;
  display: block;
}

.stat-hero-desc {
  font-size: 16px;
  color: #475569;
  max-width: 720px;
  line-height: 1.5;
  margin-bottom: 20px;
}

/* Staggered Client Pills */
.stat-client-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.client-pill {
  font-size: 12px;
  padding: 6px 14px;
  border-radius: 99px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #334155;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  opacity: 0;
  transform: translateY(8px);
  transition: 
    opacity 0.45s var(--ease-out),
    transform 0.45s var(--ease-out),
    background 0.16s ease,
    border-color 0.16s ease,
    box-shadow 0.16s ease;
  transition-delay: calc(80ms + var(--pill-delay, 0ms));
}

.stats-container.is-in-view .client-pill {
  opacity: 1;
  transform: translateY(0);
}

.client-pill strong {
  font-weight: 800;
}

.client-pill:hover {
  background: #f8fafc;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

.client-pill:active {
  transform: scale(0.96);
}

.pill-nowtech { border-color: rgba(0, 210, 106, 0.4); }
.pill-nowtech strong { color: #059669; }
.pill-gslash { border-color: rgba(99, 102, 241, 0.4); }
.pill-gslash strong { color: #4f46e5; }
.pill-greengot { border-color: rgba(19, 136, 8, 0.4); }
.pill-greengot strong { color: #047857; }
.pill-carta { border-color: rgba(239, 68, 68, 0.4); }
.pill-carta strong { color: #dc2626; }
.pill-limit { border-color: rgba(2, 132, 199, 0.4); }
.pill-limit strong { color: #0284c7; }

/* 3. Subgrid for Complementary Metrics */
.stats-subgrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 22px;
}

.stats-subgrid .stat-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 22px;
  position: relative;
  overflow: hidden;
  transition: 
    transform 0.2s var(--ease-out),
    border-color 0.2s ease,
    box-shadow 0.2s ease;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.04);
}

.stats-subgrid .stat-card:hover {
  border-color: rgba(99, 102, 241, 0.45);
  transform: translateY(-3px);
  box-shadow: 0 12px 28px -5px rgba(99, 102, 241, 0.14);
}

.stats-subgrid .stat-card:active {
  transform: scale(0.985);
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 800;
  background: linear-gradient(135deg, #0f172a 40%, #4f46e5 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.2;
  padding-bottom: 2px;
  margin-bottom: 6px;
  font-variant-numeric: tabular-nums;
  display: block;
}

.stat-badge-it {
  font-size: 26px !important;
  background: linear-gradient(135deg, #0284c7 30%, #4f46e5 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}

.stat-label {
  font-size: 13px;
  color: #475569;
  font-weight: 600;
}

.stat-sub {
  font-size: 11px;
  color: #0284c7;
  margin-top: 4px;
  font-family: var(--font-mono);
  font-weight: 600;
}

/* 5. Footer Technical Metrics & Kinetic Progress Bars */
.stats-footer-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  padding-top: 20px;
}

.stats-pill-metric {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: 
    border-color 0.2s ease,
    background-color 0.2s ease,
    transform 0.2s var(--ease-out),
    box-shadow 0.2s ease;
}

.stats-pill-metric:hover {
  background: #ffffff;
  border-color: rgba(99, 102, 241, 0.35);
  transform: translateY(-2px);
  box-shadow: 0 8px 18px -4px rgba(15, 23, 42, 0.06);
}

.stats-pill-metric:active {
  transform: scale(0.99);
}

.metric-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.metric-label {
  font-size: 13px;
  color: #475569;
}

.metric-label strong {
  color: #0f172a;
  font-weight: 800;
}

.metric-bench {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: #0284c7;
  background: rgba(2, 132, 199, 0.08);
  border: 1px solid rgba(2, 132, 199, 0.18);
  padding: 2px 7px;
  border-radius: 6px;
  white-space: nowrap;
}

.metric-track {
  width: 100%;
  height: 5px;
  background: #e2e8f0;
  border-radius: 99px;
  overflow: hidden;
  position: relative;
}

.metric-bar {
  height: 100%;
  width: 100%;
  transform-origin: left center;
  transform: scaleX(0);
  border-radius: 99px;
  background: linear-gradient(90deg, #4f46e5 0%, #0284c7 100%);
  transition: transform 650ms var(--ease-out);
  will-change: transform;
}

.stats-container.is-in-view .metric-bar {
  transform: scaleX(var(--metric-scale, calc(var(--metric-fill, 0%) / 100%)));
}


/* Channel Tabs */
.channel-tabs {
  display: flex;
  border-bottom: 1px solid var(--yt-border);
  gap: 24px;
  margin-bottom: 28px;
}

.tab-item {
  padding: 12px 0;
  color: #64748b;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  position: relative;
  transition: color 0.2s;
}

.tab-item:hover {
  color: #0f172a;
}

.tab-item.active {
  color: #0f172a;
}

.tab-item.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: #0f172a;
}

/* ==========================================================================
   VIDEO SHELVES & HORIZONTAL ROWS (LIGHT THEME)
   ========================================================================== */

.video-shelf {
  margin-bottom: 44px;
}

.shelf-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.shelf-title-wrap {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.shelf-title {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #0f172a;
}

.shelf-subtitle {
  font-size: 13px;
  color: var(--text-muted);
}

.shelf-action {
  font-size: 13px;
  color: #0284c7;
  text-decoration: none;
  font-weight: 700;
}

.shelf-action:hover {
  text-decoration: underline;
}

/* Video Grid / Cards */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
}

.video-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.22s var(--ease-out), border-color 0.2s ease, box-shadow 0.22s ease;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 15px rgba(15, 23, 42, 0.04);
}

.video-thumb-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #f1f5f9;
  overflow: hidden;
}

.video-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 220ms var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .video-card:hover {
    transform: translateY(-4px) scale(1.02);
    border-color: rgba(99, 102, 241, 0.45);
    box-shadow: 0 16px 35px -5px rgba(15, 23, 42, 0.12);
  }

  .video-card:hover .video-thumb {
    transform: scale(1.05);
  }
}

.video-duration {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.85);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  color: #ffffff;
  font-family: var(--font-mono);
}

.video-impact-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: #4f46e5;
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.video-content {
  padding: 14px;
  display: flex;
  flex-direction: column;
  flex: 1;
  background: #ffffff;
}

.video-title {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 8px;
  color: #0f172a;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.video-channel {
  font-size: 13px;
  color: #475569;
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 4px;
}

.video-stats {
  font-size: 12px;
  color: #64748b;
  display: flex;
  gap: 6px;
}

/* ==========================================================================
   SERVICES GRID (MES PRESTATIONS)
   ========================================================================== */

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.service-card {
  position: relative;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: transform 0.22s var(--ease-out), border-color 0.2s ease, box-shadow 0.22s ease;
  box-shadow: 0 4px 15px rgba(15, 23, 42, 0.04);
}

.service-card-bg {
  position: absolute;
  inset: -15px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: blur(8px);
  opacity: 0.5;
  transform: scale(1.08);
  pointer-events: none;
  z-index: 0;
  transition: opacity 0.3s ease, transform 0.4s var(--ease-out), filter 0.3s ease;
}

.service-card > *:not(.service-card-bg) {
  position: relative;
  z-index: 1;
}

.service-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(226, 232, 240, 0.9);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
  transition: background-color 0.2s var(--ease-out), border-color 0.2s var(--ease-out), box-shadow 0.2s ease;
}

@media (hover: hover) and (pointer: fine) {
  .service-card:hover {
    transform: translateY(-3px);
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow: 0 14px 30px -5px rgba(15, 23, 42, 0.1);
  }

  .service-card:hover .service-card-bg {
    opacity: 0.62;
    transform: scale(1.14);
    filter: blur(6px);
  }

  .service-card:hover .service-icon-wrap {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.15);
  }
}

.service-title {
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 8px;
  line-height: 1.3;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.95), 0 2px 6px rgba(15, 23, 42, 0.16);
}

.service-desc {
  font-size: 13.5px;
  color: #64748b;
  line-height: 1.55;
  margin: 0;
  width: 100%;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 4px;
}

.service-tag {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 600;
  color: #1e293b;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 6px;
  padding: 4px 9px;
  line-height: 1.35;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.07);
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.9);
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
  letter-spacing: -0.01em;
}

@media (hover: hover) and (pointer: fine) {
  .service-card:hover .service-tag {
    background: #ffffff;
    border-color: #cbd5e1;
    color: #0f172a;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.12);
  }
}

/* ==========================================================================
   CLIENT CHANNEL CARDS (LIGHT THEME)
   ========================================================================== */

.clients-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}

.client-channel-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.22s var(--ease-out), border-color 0.2s ease, box-shadow 0.22s ease;
  box-shadow: 0 4px 15px rgba(15, 23, 42, 0.04);
}

@media (hover: hover) and (pointer: fine) {
  .client-channel-card:hover {
    border-color: rgba(99, 102, 241, 0.4);
    transform: translateY(-4px);
    box-shadow: 0 16px 35px -5px rgba(15, 23, 42, 0.1);
  }
}

.client-avatar-large {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  background: #f1f5f9;
  border: 2px solid #e2e8f0;
}

.client-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.client-name {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 4px;
}

.client-type-label {
  font-size: 12px;
  color: #64748b;
  font-weight: 500;
  margin-bottom: 6px;
}

.client-sub-count {
  font-size: 12px;
  color: #64748b;
  margin-bottom: 8px;
}

.client-highlight {
  font-size: 11px;
  color: #047857;
  font-weight: 700;
  background: rgba(16, 185, 129, 0.12);
  padding: 2px 8px;
  border-radius: 99px;
  margin-bottom: 12px;
}

.btn-sub-pill {
  background: #0f172a;
  border: none;
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  padding: 7px 16px;
  border-radius: 20px;
  cursor: pointer;
  transition: background-color 0.16s var(--ease-out), color 0.16s var(--ease-out), transform 0.16s var(--ease-out);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

@media (hover: hover) and (pointer: fine) {
  .btn-sub-pill:hover {
    background: var(--yt-red);
    color: #ffffff;
    transform: translateY(-1px);
  }
}

/* ==========================================================================
   SHORTS SHELF (VERTICAL 9:16 FORMAT)
   ========================================================================== */

.shorts-shelf .shelf-title {
  color: #0f172a;
}

.shorts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 16px;
}

.short-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.22s var(--ease-out), border-color 0.2s ease, box-shadow 0.22s ease;
  position: relative;
  box-shadow: 0 4px 15px rgba(15, 23, 42, 0.05);
}

@media (hover: hover) and (pointer: fine) {
  .short-card:hover {
    transform: translateY(-6px) scale(1.03);
    border-color: #ff0000;
    box-shadow: 0 15px 35px -10px rgba(255, 0, 0, 0.25);
  }
}

.short-thumb-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  background: #0f172a;
}

.short-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.short-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(255, 0, 0, 0.95);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.short-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px 12px 12px;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.9) 0%, transparent 100%);
}

.short-title {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 4px;
  color: #ffffff;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.short-views {
  font-size: 11px;
  color: #cbd5e1;
}

/* ==========================================================================
   ABOUT SECTION (LIGHT THEME)
   ========================================================================== */

#apropos {
  position: relative;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 50%, #f0fdf4 100%);
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 24px;
  padding: 44px 36px;
  margin-bottom: 44px;
  box-shadow: 0 10px 30px -10px rgba(15, 23, 42, 0.05), 0 2px 8px rgba(15, 23, 42, 0.02);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  overflow: hidden;
  scroll-margin-top: 80px;
}

#apropos::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 220px;
  height: 3px;
  background: linear-gradient(90deg, transparent, #10b981, #0284c7, transparent);
  border-radius: 3px;
}

.about-quote-container {
  max-width: 840px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.about-quote-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #047857;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.22);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.about-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 6px rgba(16, 185, 129, 0.6);
}

.about-quote-icon {
  color: #10b981;
  opacity: 0.35;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-quote-text {
  margin: 0;
  font-family: var(--font-heading, "Outfit", -apple-system, sans-serif);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.62;
  color: #0f172a;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.about-quote-author {
  margin-top: 24px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  color: #64748b;
  padding: 7px 18px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(226, 232, 240, 0.85);
  border-radius: 999px;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.03);
}

.about-author-name {
  font-weight: 700;
  color: #0f172a;
}

.about-author-dot {
  color: #cbd5e1;
}

.about-author-role {
  font-weight: 500;
  color: #64748b;
}

/* ==========================================================================
   CALENDLY CONVERSION SECTION (LIGHT THEME)
   ========================================================================== */

#calendly {
  background: linear-gradient(135deg, #eef2ff 0%, #f0fdf4 50%, #f8fafc 100%);
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: 24px;
  padding: 40px;
  text-align: center;
  margin-bottom: 40px;
  box-shadow: 0 15px 40px -10px rgba(15, 23, 42, 0.08);
  position: relative;
  overflow: hidden;
}

.calendly-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.3);
  color: #4338ca;
  font-size: 12px;
  font-weight: 800;
  padding: 4px 14px;
  border-radius: 99px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.calendly-title {
  font-family: var(--font-heading);
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
  color: #0f172a;
}

.calendly-desc {
  color: #475569;
  font-size: 16px;
  max-width: 600px;
  margin: 0 auto 28px;
  line-height: 1.6;
}

.calendly-frame-container {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  min-height: 600px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.06);
}

.calendly-frame {
  width: 100%;
  height: 650px;
  border: none;
}

/* ==========================================================================
   CONTACT FOOTER BANNER (BANDEAU TOUT SIMPLE)
   ========================================================================== */

.contact-banner {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 22px 28px;
  margin-top: 40px;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.03);
}

.contact-banner-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.contact-banner-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
}

.contact-banner-title svg {
  color: var(--primary);
  flex-shrink: 0;
}

.contact-banner-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 99px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  text-decoration: none;
  transition: transform 0.2s var(--ease-out), border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

@media (hover: hover) and (pointer: fine) {
  .contact-link:hover {
    border-color: rgba(99, 102, 241, 0.5);
    color: #4338ca;
    background: #f8faff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.1);
  }

  .contact-link:hover svg {
    color: var(--primary);
  }
}

.contact-link:active {
  transform: scale(0.97);
}

.contact-link svg {
  color: #64748b;
  flex-shrink: 0;
  transition: color 0.2s ease;
}

.contact-link:hover svg {
  color: var(--primary);
}

/* ==========================================================================
   VIDEO LIGHTBOX MODAL (LIGHT THEME)
   ========================================================================== */

#video-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  padding: 20px;
}

#video-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content-wrap {
  width: 100%;
  max-width: 960px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.25);
  position: relative;
  transform: translateY(20px) scale(0.95);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

#video-modal.active .modal-content-wrap {
  transform: translateY(0) scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: transform 0.16s var(--ease-out), background-color 0.16s var(--ease-out), border-color 0.16s var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .modal-close-btn:hover {
    background: #ff0000;
    border-color: #ff0000;
    transform: scale(1.1);
  }
}

.modal-player-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.modal-player-wrap iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.modal-debrief {
  padding: 24px 28px;
  background: #ffffff;
}

.modal-video-title {
  font-size: 20px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 8px;
}

.modal-video-meta {
  display: flex;
  gap: 12px;
  color: #64748b;
  font-size: 13px;
  margin-bottom: 16px;
}

.modal-impact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  background: #f8fafc;
  padding: 16px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
}

.impact-item-label {
  font-size: 11px;
  color: #64748b;
  text-transform: uppercase;
  margin-bottom: 4px;
  font-weight: 700;
}

.impact-item-val {
  font-size: 14px;
  color: #0f172a;
  font-weight: 700;
}

/* ==========================================================================
   FLOATING FAST CTA PILL
   ========================================================================== */

/* ==========================================================================
   FIXED BOTTOM CTA DOCK / BANDEAU FIXE CALENDLY
   ========================================================================== */

.fixed-bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 95;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(226, 232, 240, 0.85);
  box-shadow: 0 -4px 20px rgba(15, 23, 42, 0.08);
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
  transition:
    transform 260ms var(--ease-drawer),
    opacity 200ms var(--ease-out);
  will-change: transform, opacity;
}

.fixed-bottom-bar.is-visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.fixed-bottom-bar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 1200px;
}

.floating-cta-pill {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #ff0000;
  color: #fff;
  padding: 12px 24px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 14.5px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 8px 25px rgba(255, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.25);
  z-index: 90;
  transition:
    transform 200ms var(--ease-out),
    box-shadow 200ms var(--ease-out);
  cursor: pointer;
}

.fixed-bottom-bar .floating-cta-pill {
  position: static;
  margin: 0;
  transform: scale(0.96);
  opacity: 0.9;
}

.fixed-bottom-bar.is-visible .floating-cta-pill {
  transform: scale(1);
  opacity: 1;
}

@media (hover: hover) and (pointer: fine) {
  .floating-cta-pill:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 12px 32px rgba(255, 0, 0, 0.5);
    background: #e60000;
  }
}

.floating-cta-pill:active {
  transform: scale(0.97);
}

/* Calendly SVG Icon */
.calendly-logo-icon {
  width: 19px;
  height: 19px;
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
}

.hero-btn-secondary .calendly-logo-icon {
  color: #ffffff;
}

/* Hero Button Motion on Scroll */
#btnHeroRdv {
  transition:
    transform 220ms var(--ease-out),
    opacity 180ms var(--ease-out),
    background-color 0.2s var(--ease-out),
    border-color 0.2s var(--ease-out);
  will-change: transform, opacity;
}

#btnHeroRdv.is-docked {
  transform: translateY(14px) scale(0.95);
  opacity: 0;
  pointer-events: none;
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================================== */

@media (max-width: 1024px) {
  .yt-main {
    padding: 0 20px 40px;
  }
}

@media (max-width: 768px) {
  .scene-wrapper {
    padding: 10px 8px 60px;
  }
  .yt-topbar {
    padding: 0 10px;
    padding-top: env(safe-area-inset-top, 0px);
    padding-left: max(10px, env(safe-area-inset-left, 0px));
    padding-right: max(10px, env(safe-area-inset-right, 0px));
    gap: 8px;
  }
  .yt-topbar-left {
    gap: 6px;
    flex-shrink: 0;
  }
  .yt-logo {
    gap: 6px;
  }
  .yt-logo-badge {
    width: 28px;
    height: 20px;
  }
  .yt-logo-text {
    font-size: 16px;
  }
  .yt-logo-sub {
    display: none;
  }
  .yt-topbar-right {
    gap: 6px;
    flex-shrink: 0;
  }
  .yt-create-btn {
    padding: 6px 10px;
    font-size: 12px;
    gap: 4px;
    white-space: nowrap;
    flex-shrink: 0;
  }
  .yt-icon-btn {
    padding: 6px;
    flex-shrink: 0;
  }
  .user-avatar-small {
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
    flex-shrink: 0;
    aspect-ratio: 1 / 1;
  }
  .user-avatar-small-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 1 / 1;
    flex-shrink: 0;
  }
  .yt-search-box {
    display: none;
  }

  /* Mobile Drawer Sidebar */
  .yt-sidebar-mobile-header {
    display: flex;
  }
  .yt-sidebar {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 280px;
    max-width: 82vw;
    height: 100vh;
    height: 100dvh;
    max-height: 100dvh;
    background: #ffffff;
    z-index: 200;
    transform: translateX(-105%);
    transition: transform 0.28s var(--ease-drawer);
    box-shadow: none;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: max(16px, env(safe-area-inset-top, 0px)) 14px max(24px, env(safe-area-inset-bottom, 0px));
    border-right: 1px solid var(--yt-border);
  }
  .yt-sidebar.mobile-open {
    transform: translateX(0);
    box-shadow: 10px 0 35px rgba(0, 0, 0, 0.25);
  }

  /* Reset desktop collapsed styling when in mobile drawer */
  .yt-sidebar.collapsed {
    width: 280px;
    padding: max(16px, env(safe-area-inset-top, 0px)) 14px max(24px, env(safe-area-inset-bottom, 0px));
  }
  .yt-sidebar.collapsed .yt-sidebar-title,
  .yt-sidebar.collapsed .yt-nav-link span,
  .yt-sidebar.collapsed .yt-subscriptions,
  .yt-sidebar.collapsed .yt-skills-group,
  .yt-sidebar.collapsed .yt-engagements-group,
  .yt-sidebar.mobile-open .yt-sidebar-title,
  .yt-sidebar.mobile-open .yt-nav-link span,
  .yt-sidebar.mobile-open .yt-subscriptions,
  .yt-sidebar.mobile-open .yt-skills-group,
  .yt-sidebar.mobile-open .yt-engagements-group {
    display: block;
  }
  .yt-sidebar.collapsed .yt-nav-link,
  .yt-sidebar.mobile-open .yt-nav-link {
    display: flex;
    justify-content: flex-start;
    gap: 14px;
    padding: 10px 12px;
  }
  .yt-sidebar.collapsed ~ .yt-main {
    max-width: 100%;
  }

  .yt-main {
    max-width: 100%;
    padding: 0 12px 40px;
  }

  /* Channel banner mobile */
  .yt-channel-banner {
    height: auto;
    min-height: 125px;
    padding: 14px;
    margin-top: 10px;
    border-radius: 12px;
  }
  .banner-slogan {
    font-size: clamp(17px, 4.8vw, 22px);
    line-height: 1.3;
  }
  .banner-badge {
    font-size: 10px;
    padding: 4px 8px;
    line-height: 1.4;
    word-break: break-word;
  }

  /* Channel header mobile */
  .yt-channel-header {
    padding: 16px 0 14px;
    gap: 16px;
  }
  .channel-avatar {
    width: 76px;
    height: 76px;
    border-width: 3px;
  }
  .channel-name {
    font-size: 20px;
  }
  .channel-meta {
    gap: 4px 6px;
    font-size: 13px;
  }
  .channel-bio {
    font-size: 13.5px;
    line-height: 1.5;
    margin-bottom: 12px;
  }

  /* Channel links: each link on its own line */
  .channel-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    width: 100%;
    margin-bottom: 18px;
  }
  .channel-link-item {
    font-size: 13px;
    word-break: break-all;
    max-width: 100%;
  }

  /* Channel actions: full width stacked */
  .channel-actions {
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }
  .channel-actions .btn-pill {
    width: 100%;
    justify-content: center;
    padding: 12px 18px;
    min-height: 48px;
  }

  /* Stats container & grids */
  .stats-container,
  .stats-3d-stage {
    padding: 18px 14px;
    border-radius: 16px;
    margin: 18px 0 24px;
  }
  .stat-hero-number {
    font-size: 34px;
  }
  .stat-hero-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .stats-subgrid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .video-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .shorts-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .clients-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .client-channel-card {
    padding: 14px 8px;
  }
  .client-avatar-large {
    width: 52px;
    height: 52px;
  }
  #apropos {
    padding: 32px 18px;
    border-radius: 18px;
  }
  .about-quote-text {
    font-size: 17px;
    line-height: 1.55;
  }
  .about-quote-author {
    flex-direction: column;
    gap: 2px;
    border-radius: 12px;
    padding: 8px 14px;
  }
  .about-author-dot {
    display: none;
  }
  #calendly {
    padding: 24px 14px;
    border-radius: 18px;
  }
  .calendly-frame-container {
    min-height: 500px;
  }
  .contact-banner {
    padding: 18px 14px;
    margin-top: 24px;
    border-radius: 14px;
  }
  .contact-banner-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  .contact-banner-links {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .contact-link {
    justify-content: center;
    width: 100%;
    padding: 10px 16px;
  }

  /* Orbital Hero Mobile Tuning */
  .orbital-hero {
    min-height: 100svh;
    padding: max(60px, env(safe-area-inset-top, 0px)) 16px max(50px, env(safe-area-inset-bottom, 0px));
  }

  .orbital-hero-title {
    font-size: clamp(32px, 8.5vw, 54px);
  }

  .orbital-hero-sub {
    font-size: clamp(14px, 4vw, 17px);
  }

  .orbital-hero-cta {
    flex-direction: column;
    width: 100%;
    max-width: 320px;
    gap: 10px;
  }

  .orbital-hero-cta .hero-btn {
    width: 100%;
  }

  .orbit-track.inner-track {
    width: clamp(320px, 86vw, 440px);
    height: clamp(320px, 86vw, 440px);
    --radius: calc(clamp(320px, 86vw, 440px) / 2);
    margin-top: calc(-1 * clamp(320px, 86vw, 440px) / 2);
    margin-left: calc(-1 * clamp(320px, 86vw, 440px) / 2);
  }

  .orbit-track.outer-track {
    width: clamp(480px, 122vw, 640px);
    height: clamp(480px, 122vw, 640px);
    --radius: calc(clamp(480px, 122vw, 640px) / 2);
    margin-top: calc(-1 * clamp(480px, 122vw, 640px) / 2);
    margin-left: calc(-1 * clamp(480px, 122vw, 640px) / 2);
  }

  .orbit-card {
    width: clamp(96px, 24vw, 130px);
    border-radius: 9px;
  }

  /* Thin out miniature density on mobile so text/buttons remain 100% visible */
  .inner-track .orbit-item:nth-child(even),
  .outer-track .orbit-item:nth-child(even) {
    display: none;
  }

  .floating-cta-pill {
    bottom: calc(20px + env(safe-area-inset-bottom, 0px));
    right: max(16px, env(safe-area-inset-right, 0px));
    width: 52px;
    height: 52px;
    padding: 0;
    border-radius: 50%;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(255, 0, 0, 0.45);
  }

  .floating-cta-pill span {
    display: none;
  }

  .floating-cta-pill svg {
    width: 24px;
    height: 24px;
    margin: 0;
    flex-shrink: 0;
  }

  /* Fixed bottom bar on mobile: displays full button with LOGO CALENDLY Prendre RDV */
  .fixed-bottom-bar {
    padding: 10px 16px max(12px, env(safe-area-inset-bottom, 12px));
  }

  .fixed-bottom-bar .floating-cta-pill {
    width: 100%;
    max-width: 380px;
    height: 48px;
    padding: 0 20px !important;
    border-radius: 999px !important;
    justify-content: center !important;
    display: inline-flex !important;
  }

  .fixed-bottom-bar .floating-cta-pill span {
    display: inline !important;
    font-size: 14.5px;
    font-weight: 700;
  }

  .fixed-bottom-bar .floating-cta-pill svg {
    width: 20px;
    height: 20px;
    margin-right: 6px;
    display: inline-block;
  }
}

@media (max-width: 420px) {
  .yt-create-btn .text-long {
    display: none;
  }
  .yt-create-btn .text-short {
    display: inline;
  }
}

/* Mobile-native press feedback */
.yt-menu-toggle:active,
.yt-nav-link:active,
.yt-sidebar-close:active,
.yt-create-btn:active,
.yt-icon-btn:active,
.yt-search-btn:active,
.floating-cta-pill:active {
  transform: scale(0.96);
  transition: transform 80ms ease-out;
}

@media (prefers-reduced-motion: reduce) {
  #youtube-console,
  .stats-container,
  .stats-3d-stage {
    transition: none !important;
    transform: none !important;
  }
  .video-card:hover,
  .client-channel-card:hover,
  .short-card:hover {
    transform: none !important;
  }
  .stats-reveal-item,
  .client-pill,
  .stats-subgrid .stat-card,
  .stats-pill-metric,
  .metric-bar {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    animation: none !important;
  }
  .stat-hero-shimmer {
    display: none !important;
  }
  .metric-bar {
    width: 100% !important;
    transform: scaleX(var(--metric-scale, 1)) !important;
  }
  .orbit-track,
  .orbit-card,
  .orbit-thumb-wrap {
    animation: none !important;
  }
  .fixed-bottom-bar {
    transition: opacity 200ms ease !important;
    transform: none !important;
  }
  #btnHeroRdv {
    transition: opacity 200ms ease !important;
    transform: none !important;
  }
  #btnHeroRdv.is-docked {
    transform: none !important;
    opacity: 0 !important;
  }
}
