/* =========================================================
   Assistant Michael — Design System
   Couleurs: Bleu #2563EB / Noir #0A0A0A / Blanc #FFFFFF
   ========================================================= */

:root {
  --blue-50:  #EFF6FF;
  --blue-100: #DBEAFE;
  --blue-300: #93C5FD;
  --blue-400: #60A5FA;
  --blue-500: #3B82F6;
  --blue-600: #2563EB;
  --blue-700: #1D4ED8;
  --blue-900: #1E3A8A;

  --ink-950: #050608;
  --ink-900: #0A0A0A;
  --ink-800: #111318;
  --ink-700: #1A1D24;
  --ink-600: #2A2E38;
  --ink-500: #4B5563;

  --white: #FFFFFF;
  --gray-50: #F8FAFC;
  --gray-100: #F1F5F9;
  --gray-200: #E2E8F0;
  --gray-300: #CBD5E1;
  --gray-400: #94A3B8;
  --gray-500: #64748B;
  --gray-600: #475569;
  --gray-700: #334155;
}

* { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Outfit', 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--white);
  color: var(--ink-900);
  overflow-x: hidden;
  opacity: 1;
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
body.page-leaving { opacity: 0; }

/* Mini loader pendant transition */
.page-loader {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2.5px solid rgba(96, 165, 250, 0.2);
  border-top-color: var(--blue-500);
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  animation: loaderSpin 0.8s linear infinite;
}
.page-loader.visible { opacity: 1; }
@keyframes loaderSpin {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* ---------- Typographie ---------- */
.font-display { font-family: 'Outfit', sans-serif; letter-spacing: -0.03em; }
.text-balance { text-wrap: balance; }

/* ---------- Gradients & Effets ---------- */
.gradient-text {
  background: linear-gradient(135deg, #2563EB 0%, #60A5FA 50%, #2563EB 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% 200%;
  animation: gradientShift 8s ease infinite;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.hero-gradient {
  background:
    radial-gradient(ellipse 80% 60% at 20% 0%, rgba(37, 99, 235, 0.18) 0%, transparent 50%),
    radial-gradient(ellipse 60% 50% at 80% 20%, rgba(96, 165, 250, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse 70% 60% at 50% 100%, rgba(37, 99, 235, 0.08) 0%, transparent 60%),
    linear-gradient(180deg, #050608 0%, #0A0A0A 50%, #0A0A0A 100%);
}

.dark-gradient {
  background: linear-gradient(180deg, #0A0A0A 0%, #050608 100%);
}

.subtle-grid {
  background-image:
    linear-gradient(rgba(96, 165, 250, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(96, 165, 250, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* ---------- Navigation ---------- */
.nav-glass {
  background: rgba(10, 10, 10, 0.72);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-link {
  position: relative;
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.3s ease;
}
.nav-link:hover { color: var(--white); }
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--blue-500);
  transition: width 0.3s ease;
}
.nav-link:hover::after { width: 100%; }

/* ---------- Boutons ---------- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  background: linear-gradient(135deg, #2563EB 0%, #3B82F6 100%);
  color: white;
  font-weight: 600;
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow:
    0 4px 12px rgba(37, 99, 235, 0.25),
    0 0 0 1px rgba(255, 255, 255, 0.08) inset;
}
.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #3B82F6 0%, #60A5FA 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.btn-primary span { position: relative; z-index: 1; }
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow:
    0 8px 24px rgba(37, 99, 235, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.12) inset;
}
.btn-primary:hover::before { opacity: 1; }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  background: rgba(255, 255, 255, 0.05);
  color: white;
  font-weight: 600;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

.btn-light {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  background: var(--ink-900);
  color: white;
  font-weight: 600;
  border-radius: 12px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.btn-light:hover {
  background: var(--blue-600);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.3);
}

/* ---------- Cards ---------- */
.card {
  position: relative;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  padding: 2rem;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(96, 165, 250, 0.3), transparent 40%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(96, 165, 250, 0.2);
}
.card:hover::before { opacity: 1; }

.card-glow {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.15) 0%, transparent 40%);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}
.card:hover .card-glow { opacity: 1; }

.card-light {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: 20px;
  padding: 2rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.card-light:hover {
  transform: translateY(-4px);
  border-color: var(--blue-300);
  box-shadow:
    0 20px 40px -10px rgba(37, 99, 235, 0.15),
    0 0 0 1px rgba(37, 99, 235, 0.1);
}

/* ---------- Icônes service ---------- */
.icon-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.15) 0%, rgba(59, 130, 246, 0.08) 100%);
  border: 1px solid rgba(96, 165, 250, 0.2);
  color: var(--blue-400);
  margin-bottom: 1.25rem;
  transition: all 0.3s ease;
}
.card:hover .icon-box {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.3) 0%, rgba(59, 130, 246, 0.15) 100%);
  transform: scale(1.05) rotate(-3deg);
}

.icon-box-light {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%);
  color: var(--blue-600);
  margin-bottom: 1.25rem;
  transition: all 0.3s ease;
}
.card-light:hover .icon-box-light {
  background: linear-gradient(135deg, #2563EB 0%, #3B82F6 100%);
  color: white;
  transform: scale(1.05) rotate(-3deg);
}

/* ---------- Hero 3D Container ---------- */
.hero-3d {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 500px;
}
/* Mobile/tablette : le min-height 500px + aspect-square transférait une
   largeur minimale de 500px à la colonne → page élargie et coupée à droite.
   On retire la contrainte et on verrouille la grille à la largeur de l'écran. */
@media (max-width: 1023px) {
  .hero-3d { min-height: 0; }
  .hero-gradient .grid.lg\:grid-cols-12 { grid-template-columns: minmax(0, 1fr); }
  #hero-canvas { max-width: 100%; }
}

#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.floating-card {
  position: absolute;
  background: rgba(20, 22, 28, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(96, 165, 250, 0.18);
  border-radius: 16px;
  padding: 1rem 1.25rem;
  box-shadow:
    0 20px 60px -20px rgba(0, 0, 0, 0.6),
    0 0 40px -10px rgba(37, 99, 235, 0.25),
    0 0 0 1px rgba(96, 165, 250, 0.05) inset;
  z-index: 3;
  opacity: 0;
}

.floating-card .label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--blue-400);
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.floating-card .content {
  color: white;
  font-size: 0.875rem;
  font-weight: 500;
}

.floating-card .meta {
  font-size: 0.75rem;
  color: var(--gray-400);
  margin-top: 0.25rem;
}

.pulse-dot {
  position: relative;
  display: inline-block;
  width: 8px;
  height: 8px;
  background: #10B981;
  border-radius: 50%;
}
.pulse-dot::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: #10B981;
  opacity: 0.4;
  animation: pulseDot 2s ease-out infinite;
}
@keyframes pulseDot {
  0% { transform: scale(0.8); opacity: 0.6; }
  100% { transform: scale(2.2); opacity: 0; }
}

/* ---------- Stats Bar ---------- */
.stat-value {
  font-size: 2.5rem;
  font-weight: 700;
  font-family: 'Outfit', sans-serif;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, #FFFFFF 0%, #93C5FD 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ---------- Section Header ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.875rem;
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.15);
  border-radius: 999px;
  color: var(--blue-600);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 1.25rem;
}
.eyebrow-dark {
  background: rgba(96, 165, 250, 0.08);
  border: 1px solid rgba(96, 165, 250, 0.18);
  color: var(--blue-400);
}

.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue-500);
  box-shadow: 0 0 8px rgba(59, 130, 246, 0.6);
}

/* ---------- Timeline (Comment ça fonctionne) ---------- */
.step-card {
  position: relative;
  padding: 2rem;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.01) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.4s ease;
  height: 100%;
}
.step-card:hover {
  border-color: rgba(96, 165, 250, 0.25);
  transform: translateY(-4px);
}

.step-number {
  position: absolute;
  top: -20px;
  left: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
  color: white;
  font-weight: 700;
  font-size: 1.125rem;
  box-shadow:
    0 8px 20px -4px rgba(37, 99, 235, 0.5),
    0 0 0 4px rgba(10, 10, 10, 1);
}

/* ---------- Avantages — grid items ---------- */
.benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem;
  border-radius: 16px;
  border: 1px solid var(--gray-200);
  background: white;
  transition: all 0.3s ease;
}
.benefit-item:hover {
  border-color: var(--blue-300);
  background: linear-gradient(135deg, #FFFFFF 0%, #EFF6FF 100%);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px -10px rgba(37, 99, 235, 0.15);
}

.benefit-icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #2563EB 0%, #3B82F6 100%);
  color: white;
}

/* ---------- CTA Final ---------- */
.cta-section {
  position: relative;
  background:
    radial-gradient(ellipse 80% 70% at 50% 0%, rgba(37, 99, 235, 0.25) 0%, transparent 60%),
    linear-gradient(180deg, #0A0A0A 0%, #050608 100%);
  overflow: hidden;
}

.cta-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.3) 0%, transparent 70%);
  filter: blur(60px);
  pointer-events: none;
  animation: glowPulse 6s ease-in-out infinite;
}
@keyframes glowPulse {
  0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 0.8; transform: translate(-50%, -50%) scale(1.1); }
}

/* ---------- Footer ---------- */
.footer {
  background: var(--ink-950);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* ---------- Animations utilitaires ---------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
}

.reveal-active {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--ink-900); }
::-webkit-scrollbar-thumb { background: var(--ink-600); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--blue-700); }

/* ---------- Responsive Hero ---------- */
@media (max-width: 1024px) {
  .floating-card { display: none; }
  .floating-card.show-mobile { display: block; }
}

@media (max-width: 768px) {
  .stat-value { font-size: 2rem; }
  .floating-card { transform: scale(0.85); }
}

/* ---------- Mobile menu ---------- */
/* position/hauteur explicites : le backdrop-filter du header piège les enfants
   en position fixed (containing block = header), ce qui rendait le menu
   transparent et coupé. On force la géométrie pleine hauteur + fond opaque. */
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  height: 100dvh;
  background: #050608;
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s linear 0.4s;
  overflow-y: auto;
  box-shadow: -20px 0 60px rgba(0, 0, 0, 0.6);
}
.mobile-menu.open {
  transform: translateX(0);
  visibility: visible;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Bouton hamburger bien visible */
#mobile-toggle {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  -webkit-tap-highlight-color: rgba(59, 130, 246, 0.3);
  touch-action: manipulation;
}
#mobile-toggle:active { background: rgba(59, 130, 246, 0.35); }

/* Garde-fou : aucun débordement horizontal sur mobile */
html, body { overflow-x: clip; }

/* ---------- Logos cloud ---------- */
.logo-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.125rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.3s ease;
}
.logo-pill:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(96, 165, 250, 0.3);
  color: white;
}
.logo-pill svg { color: var(--blue-400); }

/* ---------- Hero scroll indicator ---------- */
.scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  animation: bounce 2s ease-in-out infinite;
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* =========================================================
   FAQ accordion
   ========================================================= */
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item[open] {
  border-color: var(--blue-300) !important;
  box-shadow: 0 12px 30px -10px rgba(37, 99, 235, 0.15);
}
.faq-item[open] .faq-icon {
  background: linear-gradient(135deg, #2563EB 0%, #3B82F6 100%);
  color: white;
}
.faq-item > div {
  animation: faqSlide 0.3s ease;
}
@keyframes faqSlide {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* =========================================================
   Calculateur ROI — Range slider custom
   ========================================================= */
input[type="range"].accent-brand-600 {
  -webkit-appearance: none;
  appearance: none;
  background: var(--gray-200);
  height: 8px;
  border-radius: 8px;
  outline: none;
}
input[type="range"].accent-brand-600::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  background: linear-gradient(135deg, #2563EB, #3B82F6);
  border: 3px solid white;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
  transition: transform 0.2s ease;
}
input[type="range"].accent-brand-600::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}
input[type="range"].accent-brand-600::-moz-range-thumb {
  width: 22px;
  height: 22px;
  background: linear-gradient(135deg, #2563EB, #3B82F6);
  border: 3px solid white;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
}

/* =========================================================
   CHATBOT WIDGET
   ========================================================= */
.chatbot-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 100;
  font-family: 'Outfit', sans-serif;
}

.chatbot-toggle {
  position: relative;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  box-shadow:
    0 12px 30px -5px rgba(37, 99, 235, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.1) inset;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.chatbot-toggle::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: rgba(37, 99, 235, 0.3);
  z-index: -1;
  animation: chatbotPulse 2.5s ease-in-out infinite;
}
@keyframes chatbotPulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.15); opacity: 0; }
}
.chatbot-toggle:hover { transform: scale(1.08); }

.chatbot-icon-close { display: none; }
.chatbot-widget.open .chatbot-icon-open { display: none; }
.chatbot-widget.open .chatbot-icon-close { display: block; }
.chatbot-widget.open .chatbot-toggle::before { animation: none; opacity: 0; }
.chatbot-widget.open .chatbot-notif { display: none; }

.chatbot-notif {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 22px;
  height: 22px;
  border-radius: 11px;
  background: #EF4444;
  color: white;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
  border: 2px solid white;
}

.chatbot-window {
  position: absolute;
  bottom: 80px;
  right: 0;
  width: 380px;
  max-width: calc(100vw - 48px);
  height: 560px;
  max-height: calc(100vh - 120px);
  background: white;
  border-radius: 20px;
  box-shadow:
    0 25px 50px -12px rgba(0, 0, 0, 0.25),
    0 0 0 1px rgba(0, 0, 0, 0.05);
  display: none;
  flex-direction: column;
  overflow: hidden;
  transform-origin: bottom right;
  animation: chatbotOpen 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.chatbot-widget.open .chatbot-window { display: flex; }

@keyframes chatbotOpen {
  from { opacity: 0; transform: scale(0.9) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.chatbot-header {
  background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: white;
}

.chatbot-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  background: linear-gradient(180deg, #F8FAFC 0%, white 100%);
}

.chatbot-msg {
  max-width: 85%;
  padding: 0.75rem 1rem;
  border-radius: 16px;
  font-size: 0.875rem;
  line-height: 1.5;
  animation: msgAppear 0.3s ease;
}
@keyframes msgAppear {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.chatbot-msg.bot {
  align-self: flex-start;
  background: white;
  border: 1px solid var(--gray-200);
  color: var(--ink-900);
  border-bottom-left-radius: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.chatbot-msg.user {
  align-self: flex-end;
  background: linear-gradient(135deg, #2563EB, #3B82F6);
  color: white;
  border-bottom-right-radius: 4px;
}

.chatbot-typing {
  align-self: flex-start;
  background: white;
  border: 1px solid var(--gray-200);
  padding: 0.875rem 1rem;
  border-radius: 16px;
  border-bottom-left-radius: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.chatbot-typing span {
  width: 6px;
  height: 6px;
  background: var(--gray-400);
  border-radius: 50%;
  animation: typingDot 1.4s infinite ease-in-out;
}
.chatbot-typing span:nth-child(2) { animation-delay: 0.2s; }
.chatbot-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typingDot {
  0%, 80%, 100% { transform: scale(0.7); opacity: 0.4; }
  40% { transform: scale(1); opacity: 1; }
}

.chatbot-quick-replies {
  padding: 0 1.25rem 0.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  background: linear-gradient(180deg, transparent, white);
}
.quick-reply {
  font-family: inherit;
  font-size: 0.75rem;
  padding: 0.5rem 0.75rem;
  background: white;
  border: 1px solid var(--blue-300);
  border-radius: 999px;
  color: var(--blue-700);
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s ease;
}
.quick-reply:hover {
  background: var(--blue-50);
  border-color: var(--blue-600);
}

.chatbot-footer {
  padding: 0.875rem 1.25rem 1rem;
  background: white;
  border-top: 1px solid var(--gray-100);
}
.chatbot-input-wrap {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  padding: 0.25rem;
  transition: all 0.2s ease;
}
.chatbot-input-wrap:focus-within {
  border-color: var(--blue-500);
  background: white;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}
.chatbot-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  padding: 0.5rem 0.75rem;
  font-family: inherit;
  font-size: 0.875rem;
  color: var(--ink-900);
}
.chatbot-send {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: linear-gradient(135deg, #2563EB, #3B82F6);
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}
.chatbot-send:hover { transform: scale(1.05); }

@media (max-width: 480px) {
  .chatbot-widget { bottom: 16px; right: 16px; }
  .chatbot-window { width: calc(100vw - 32px); height: calc(100vh - 100px); }
}

/* =========================================================
   SCÉNARIOS D'AUTOMATISATION
   ========================================================= */
.scenario-system {
  position: relative;
  background: linear-gradient(180deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.01) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 2rem;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.scenario-system::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, #2563EB, #60A5FA, #2563EB, transparent);
  opacity: 0.7;
}
.scenario-system::after {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.12) 0%, transparent 70%);
  pointer-events: none;
  filter: blur(20px);
}
.scenario-system:hover {
  border-color: rgba(96, 165, 250, 0.25);
  transform: translateY(-4px);
}

.scenario-system-header {
  position: relative;
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* Tags niches */
.niche-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.7rem;
  background: rgba(37, 99, 235, 0.1);
  border: 1px solid rgba(96, 165, 250, 0.2);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.75rem;
  font-weight: 500;
  transition: all 0.2s ease;
}
.niche-tag:hover {
  background: rgba(37, 99, 235, 0.2);
  border-color: rgba(96, 165, 250, 0.4);
  color: white;
}

/* Groupes de scénarios */
.scenario-group {
  position: relative;
}

.scenario-group-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 700;
  color: var(--blue-300);
  margin-bottom: 0.75rem;
}

.scenario-group-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: rgba(37, 99, 235, 0.18);
  border: 1px solid rgba(96, 165, 250, 0.3);
  font-size: 0.75rem;
  color: var(--blue-300);
}

.scenario-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.scenario-list li {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.5rem 0.75rem;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.875rem;
  transition: all 0.2s ease;
}
.scenario-list li:hover {
  background: rgba(37, 99, 235, 0.08);
  border-color: rgba(96, 165, 250, 0.2);
  color: white;
  transform: translateX(3px);
}

.scenario-bullet {
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue-500);
  box-shadow: 0 0 8px rgba(59, 130, 246, 0.6);
}

.scenario-footer {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

/* =========================================================
   Navigation Active state (page courante)
   ========================================================= */
.nav-active {
  color: white !important;
}
.nav-active::after {
  width: 100% !important;
}

/* =========================================================
   FORMULAIRE DE CONTACT (page contact)
   ========================================================= */
.contact-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 0.875rem 1rem;
  color: white;
  font-family: inherit;
  font-size: 0.9375rem;
  outline: none;
  transition: all 0.25s ease;
}
.contact-input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}
.contact-input:focus {
  background: rgba(255, 255, 255, 0.07);
  border-color: var(--blue-500);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15);
}
.contact-input:hover:not(:focus) {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.18);
}

select.contact-input {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='white' stroke-opacity='0.5' viewBox='0 0 24 24' stroke-width='2'%3e%3cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1.1rem;
  padding-right: 2.75rem;
}
select.contact-input option { background: var(--ink-900); color: white; }
textarea.contact-input { resize: vertical; min-height: 120px; }

/* =========================================================
   COOKIE BANNER (conformité Loi 25)
   ========================================================= */
.cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 24px;
  right: 24px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 1.5rem;
  box-shadow:
    0 25px 50px -12px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(96, 165, 250, 0.1) inset;
  z-index: 90;
  color: white;
  transform: translateY(150%);
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.cookie-banner.show { transform: translateY(0); }

.cookie-banner h3 {
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cookie-banner p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.8125rem;
  line-height: 1.5;
  margin-bottom: 1rem;
}

.cookie-banner p a {
  color: var(--blue-400);
  text-decoration: underline;
}

.cookie-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.cookie-btn {
  flex: 1;
  min-width: 120px;
  padding: 0.625rem 1rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.8125rem;
  cursor: pointer;
  border: none;
  font-family: inherit;
  transition: all 0.2s ease;
}

.cookie-btn-accept {
  background: linear-gradient(135deg, #2563EB, #3B82F6);
  color: white;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}
.cookie-btn-accept:hover { transform: translateY(-1px); }

.cookie-btn-refuse {
  background: rgba(255, 255, 255, 0.06);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.cookie-btn-refuse:hover { background: rgba(255, 255, 255, 0.1); }

/* =========================================================
   SOCIAL PROOF NOTIFICATIONS
   ========================================================= */
.social-proof {
  position: fixed;
  bottom: 24px;
  left: 24px;
  max-width: 320px;
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: 16px;
  padding: 0.875rem 1rem;
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.15);
  z-index: 85;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transform: translateX(-130%);
  opacity: 0;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.5s ease;
}
.social-proof.show { transform: translateX(0); opacity: 1; }

.social-proof-avatar {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 0.875rem;
}

.social-proof-content {
  flex: 1;
  min-width: 0;
}

.social-proof-text {
  font-size: 0.8125rem;
  color: var(--ink-900);
  line-height: 1.4;
}
.social-proof-text strong { font-weight: 600; }

.social-proof-time {
  font-size: 0.7rem;
  color: var(--gray-500);
  margin-top: 0.125rem;
}

.social-proof-close {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--gray-100);
  color: var(--gray-500);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: all 0.2s ease;
}
.social-proof-close:hover { background: var(--gray-200); color: var(--ink-900); }

@media (max-width: 768px) {
  .social-proof { left: 16px; bottom: 80px; max-width: calc(100vw - 32px); }
}

/* =========================================================
   ICÔNES RÉSEAUX SOCIAUX (footer)
   ========================================================= */
.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.6);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.social-icon:hover {
  background: linear-gradient(135deg, #2563EB, #3B82F6);
  border-color: transparent;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -4px rgba(37, 99, 235, 0.5);
}


/* =========================================================
   PROSE — Politique / Mentions légales (texte long)
   ========================================================= */
.prose-custom h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ink-900);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}
.prose-custom h2:first-child { margin-top: 0; }
.prose-custom p {
  color: var(--gray-700);
  line-height: 1.7;
  margin-bottom: 1rem;
}
.prose-custom ul {
  list-style: none;
  margin: 1rem 0 1.5rem;
  padding: 0;
}
.prose-custom ul li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--gray-700);
  line-height: 1.6;
}
.prose-custom ul li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--blue-600);
  font-weight: 700;
}
.prose-custom strong { color: var(--ink-900); }
.prose-custom .not-prose ul li {
  padding-left: 0;
}
.prose-custom .not-prose ul li::before {
  display: none;
}

/* =========================================================
   BLOG — Article cards
   ========================================================= */
.article-card {
  display: flex;
  flex-direction: column;
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.article-card:hover {
  transform: translateY(-6px);
  border-color: var(--blue-300);
  box-shadow: 0 25px 50px -15px rgba(37, 99, 235, 0.18);
}

.article-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.article-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.2));
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1.25rem 1.5rem 0;
  font-size: 0.7rem;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}
.article-cat { color: var(--blue-600); }

.article-title {
  padding: 0.75rem 1.5rem 0;
  font-family: 'Outfit', sans-serif;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--ink-900);
  line-height: 1.35;
  letter-spacing: -0.02em;
  transition: color 0.3s ease;
}
.article-card:hover .article-title { color: var(--blue-600); }

.article-excerpt {
  padding: 0.75rem 1.5rem 0;
  font-size: 0.875rem;
  color: var(--gray-600);
  line-height: 1.55;
  flex: 1;
}

.article-footer {
  padding: 1.25rem 1.5rem;
  margin-top: 0.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--gray-100);
}
.article-date {
  font-size: 0.75rem;
  color: var(--gray-500);
}
.article-arrow {
  font-size: 1.25rem;
  color: var(--blue-600);
  transform: translateX(0);
  transition: transform 0.3s ease;
}
.article-card:hover .article-arrow {
  transform: translateX(4px);
}

/* =========================================================
   QUIZ
   ========================================================= */
.quiz-progress-bar {
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
}
.quiz-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #2563EB, #60A5FA);
  border-radius: 999px;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 12px rgba(96, 165, 250, 0.5);
}

.quiz-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 2rem;
  backdrop-filter: blur(20px);
  animation: quizFadeIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
@keyframes quizFadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.quiz-option {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  padding: 1rem 1.25rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  color: white;
  font-family: inherit;
  font-size: 0.9375rem;
  text-align: left;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.quiz-option:hover {
  background: rgba(37, 99, 235, 0.1);
  border-color: rgba(96, 165, 250, 0.4);
  transform: translateX(4px);
}
.quiz-option.selected {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.25), rgba(59, 130, 246, 0.15));
  border-color: var(--blue-400);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15);
}

.quiz-option-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(37, 99, 235, 0.15);
  border: 1px solid rgba(96, 165, 250, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}
.quiz-option.selected .quiz-option-icon {
  background: linear-gradient(135deg, #2563EB, #3B82F6);
  border-color: transparent;
}

.quiz-option-label {
  flex: 1;
  font-weight: 500;
  line-height: 1.4;
}

.quiz-option-check {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: transparent;
  transition: all 0.2s ease;
}
.quiz-option.selected .quiz-option-check {
  background: linear-gradient(135deg, #2563EB, #3B82F6);
  border-color: transparent;
  color: white;
}

/* =========================================================
   VIDÉOS TÉMOIGNAGES
   ========================================================= */
.video-card {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  cursor: pointer;
  transition: transform 0.4s ease;
  background: linear-gradient(135deg, #1E3A8A 0%, #2563EB 100%);
}
.video-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(0,0,0,0.6) 100%);
  z-index: 1;
}
.video-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(96, 165, 250, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(96, 165, 250, 0.06) 1px, transparent 1px);
  background-size: 30px 30px;
  z-index: 0;
}
.video-card:hover { transform: translateY(-4px); }

.video-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: all 0.3s ease;
  box-shadow: 0 12px 30px rgba(0,0,0,0.3);
}
.video-play svg {
  width: 28px;
  height: 28px;
  fill: var(--blue-600);
  margin-left: 4px;
}
.video-card:hover .video-play {
  transform: translate(-50%, -50%) scale(1.1);
  background: white;
}
.video-play::before {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  z-index: -1;
  animation: videoPulse 2s ease-out infinite;
}
@keyframes videoPulse {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.4); opacity: 0; }
}

.video-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  z-index: 2;
  color: white;
}
.video-name {
  font-weight: 600;
  font-size: 1.0625rem;
  margin-bottom: 0.125rem;
}
.video-role {
  font-size: 0.8125rem;
  opacity: 0.75;
}
.video-duration {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
  padding: 0.25rem 0.625rem;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(10px);
  border-radius: 999px;
  font-size: 0.75rem;
  color: white;
  font-weight: 500;
}

/* =========================================================
   MODAL NEWSLETTER — Démo email automatisé
   ========================================================= */
.newsletter-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 6, 8, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}
.newsletter-modal-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

.newsletter-modal {
  position: relative;
  width: 100%;
  max-width: 640px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--ink-900);
  border: 1px solid rgba(96, 165, 250, 0.18);
  border-radius: 24px;
  box-shadow:
    0 25px 60px -15px rgba(0, 0, 0, 0.6),
    0 0 80px -20px rgba(37, 99, 235, 0.4);
  transform: scale(0.92) translateY(20px);
  opacity: 0;
  transition: all 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.newsletter-modal-overlay.show .newsletter-modal {
  transform: scale(1) translateY(0);
  opacity: 1;
}

.newsletter-modal-header {
  position: relative;
  padding: 2rem 2rem 1.5rem;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
}
.newsletter-modal-header::before {
  content: '';
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.25), transparent 70%);
  filter: blur(40px);
  pointer-events: none;
}

.newsletter-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  z-index: 2;
}
.newsletter-close:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: rotate(90deg);
}

.newsletter-check {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, #10B981, #059669);
  color: white;
  margin-bottom: 1.25rem;
  box-shadow: 0 12px 30px -5px rgba(16, 185, 129, 0.5);
  animation: checkPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s both;
}
.newsletter-check::before {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.3);
  z-index: -1;
  animation: checkRipple 1.5s ease-out infinite;
}
@keyframes checkPop {
  from { transform: scale(0) rotate(-45deg); opacity: 0; }
  to { transform: scale(1) rotate(0); opacity: 1; }
}
@keyframes checkRipple {
  0% { transform: scale(0.95); opacity: 0.6; }
  100% { transform: scale(1.4); opacity: 0; }
}

.newsletter-modal-body {
  padding: 1.5rem 2rem 2rem;
  color: white;
}

.newsletter-modal h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.newsletter-modal-subtitle {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.9375rem;
  line-height: 1.5;
}

/* Mockup email */
.email-mockup {
  margin-top: 1.5rem;
  background: white;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.5);
  color: var(--ink-900);
}

.email-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  border-bottom: 1px solid var(--gray-200);
  background: var(--gray-50);
}
.email-avatar {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--ink-900);
  display: flex;
  align-items: center;
  justify-content: center;
}
.email-avatar svg {
  width: 22px;
  height: 22px;
}
.email-meta { flex: 1; min-width: 0; }
.email-sender {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--ink-900);
}
.email-from {
  font-size: 0.75rem;
  color: var(--gray-500);
}
.email-time {
  font-size: 0.7rem;
  color: var(--gray-400);
  flex-shrink: 0;
}

.email-subject {
  padding: 0.875rem 1rem 0.5rem;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--ink-900);
  line-height: 1.35;
}

.email-body {
  padding: 0 1rem 1rem;
  font-size: 0.8125rem;
  color: var(--gray-700);
  line-height: 1.55;
}
.email-body p { margin: 0.5rem 0; }
.email-body strong { color: var(--ink-900); }

.email-cta {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.5rem 1rem;
  background: linear-gradient(135deg, #2563EB, #3B82F6);
  color: white;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.8125rem;
  text-decoration: none;
}

.email-footer {
  padding: 0.625rem 1rem;
  background: var(--gray-50);
  border-top: 1px solid var(--gray-100);
  font-size: 0.7rem;
  color: var(--gray-500);
  text-align: center;
}

/* Séquence d'emails */
.email-sequence {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.email-sequence-title {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 700;
  color: var(--blue-400);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.email-step {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  margin-bottom: 0.5rem;
}
.email-step-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(37, 99, 235, 0.15);
  border: 1px solid rgba(96, 165, 250, 0.25);
  color: var(--blue-300);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
}
.email-step.done .email-step-icon {
  background: rgba(16, 185, 129, 0.2);
  border-color: rgba(16, 185, 129, 0.4);
  color: #10B981;
}
.email-step-content { flex: 1; }
.email-step-time {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  color: var(--blue-400);
  margin-bottom: 0.125rem;
}
.email-step.done .email-step-time { color: #34D399; }
.email-step-title {
  font-size: 0.8125rem;
  font-weight: 500;
  color: white;
}
.email-step-subtitle {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 0.125rem;
}

.newsletter-pitch {
  margin-top: 1.5rem;
  padding: 1rem 1.25rem;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(59, 130, 246, 0.05));
  border: 1px solid rgba(96, 165, 250, 0.2);
  border-radius: 12px;
}
.newsletter-pitch-text {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.5;
}
.newsletter-pitch-text strong {
  color: var(--blue-300);
}

/* =========================================================
   BANDEAUX LOGOS (outils + clients)
   ========================================================= */

/* Outils que j'utilise (services.html) */
.tool-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  color: rgba(255, 255, 255, 0.55);
  font-weight: 500;
  font-size: 0.9375rem;
  transition: all 0.3s ease;
  cursor: default;
}
.tool-logo svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}
.tool-logo:hover {
  color: white;
  transform: translateY(-2px);
}

/* Bandeau clients (index.html) - logos qui défilent */
.trust-logos-wrap {
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(90deg, transparent, white 10%, white 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, white 10%, white 90%, transparent);
}
.trust-logos-track {
  display: flex;
  gap: 3.5rem;
  animation: trustScroll 35s linear infinite;
  width: max-content;
}
.trust-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  color: var(--gray-400);
  font-weight: 600;
  font-size: 0.9375rem;
  white-space: nowrap;
  transition: color 0.3s ease;
}
.trust-logo:hover { color: var(--ink-900); }
@keyframes trustScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* =========================================================
   SECTION ÉQUIPE
   ========================================================= */
.team-card {
  position: relative;
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: 24px;
  padding: 2rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}
.team-card:hover {
  transform: translateY(-6px);
  border-color: var(--blue-300);
  box-shadow: 0 25px 50px -15px rgba(37, 99, 235, 0.2);
}
.team-card-main {
  background: linear-gradient(180deg, #ffffff 0%, #EFF6FF 100%);
  border-color: var(--blue-300);
}
.team-card-main::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, #2563EB, #60A5FA, #2563EB, transparent);
}

.team-card-glow {
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.08), transparent 50%);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}
.team-card:hover .team-card-glow { opacity: 1; }

.team-avatar {
  width: 80px;
  height: 80px;
  border-radius: 24px;
  background: linear-gradient(135deg, #0A0A0A 0%, #2563EB 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 2rem;
  font-family: 'Outfit', sans-serif;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
  box-shadow: 0 12px 25px -8px rgba(37, 99, 235, 0.4);
}

.team-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.625rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #2563EB, #3B82F6);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
}
.team-badge-secondary {
  background: var(--gray-100);
  color: var(--gray-700);
}

.team-name {
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink-900);
  margin-bottom: 0.25rem;
}
.team-role {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--blue-600);
  margin-bottom: 1rem;
}
.team-bio {
  font-size: 0.875rem;
  color: var(--gray-600);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.team-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin-bottom: 1.25rem;
}
.team-skill {
  padding: 0.25rem 0.625rem;
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--blue-700);
}

.team-social {
  display: flex;
  gap: 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--gray-100);
}
.team-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--gray-100);
  color: var(--gray-600);
  transition: all 0.2s ease;
}
.team-social-link:hover {
  background: linear-gradient(135deg, #2563EB, #3B82F6);
  color: white;
  transform: translateY(-2px);
}

/* =========================================================
   ✨ EFFETS PREMIUM
   ========================================================= */

/* ---------- 1. Scroll progress bar ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, #2563EB, #60A5FA, #2563EB);
  background-size: 200% 100%;
  z-index: 99;
  box-shadow: 0 0 12px rgba(96, 165, 250, 0.6);
  transition: width 0.1s ease-out;
  animation: progressShimmer 3s linear infinite;
  pointer-events: none;
}
@keyframes progressShimmer {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

/* ---------- 2. Boutons magnétiques ---------- */
.btn-primary, .btn-secondary, .btn-light {
  will-change: transform;
}

/* ---------- 3. Card tilt 3D ---------- */
.card, .step-card, .scenario-system, .article-card, .video-card, .benefit-item, .card-light {
  transform-style: preserve-3d;
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}
.tilt-glare {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at var(--glare-x, 50%) var(--glare-y, 50%), rgba(255,255,255,0.08), transparent 50%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 5;
}
.card:hover .tilt-glare,
.step-card:hover .tilt-glare,
.scenario-system:hover .tilt-glare,
.article-card:hover .tilt-glare,
.card-light:hover .tilt-glare {
  opacity: 1;
}

/* ---------- 4. Compteur counter — pas de CSS spécial, gérer en JS ---------- */

/* ---------- 5. Reveal text mot par mot — DÉSACTIVÉ (cassait titres complexes) ---------- */
.split-word { opacity: 1 !important; transform: none !important; }

/* ---------- 6. Spotlight cursor (sections sombres) ---------- */
.spotlight-section {
  position: relative;
  overflow: hidden !important; /* empêche le débordement du cercle */
}
.spotlight {
  position: absolute;
  pointer-events: none;
  top: 0;
  left: 0;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.18) 0%, rgba(37, 99, 235, 0.06) 30%, transparent 70%);
  z-index: 1;
  opacity: 0;
  transition: opacity 0.4s ease;
  mix-blend-mode: screen;
  filter: blur(20px);
  will-change: transform, opacity;
}
.spotlight-section.spotlight-active .spotlight { opacity: 1; }

/* ---------- 7. Button shine (sweep) ---------- */
.btn-primary {
  position: relative;
}
.btn-primary::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
  transition: left 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  z-index: 2;
}
.btn-primary:hover::after {
  left: 100%;
}

/* ---------- 8. Glow border sur hover des sections sombres ---------- */
.card-glow-border {
  position: relative;
}
.card-glow-border::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(135deg, transparent, rgba(96, 165, 250, 0.5), transparent);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  padding: 1px;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.card-glow-border:hover::before { opacity: 1; }

/* ---------- 9. Float ambient sur icones — désactivé pour performance ----------
   (l'animation tournait sur ~50 icônes en boucle, gourmand) */

/* ---------- 10. Reduce motion respect ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .scroll-progress, .spotlight, .tilt-glare { display: none; }
}

/* =========================================================
   📋 Wrapper formulaire Tally
   ========================================================= */
.tally-wrapper {
  position: relative;
  min-height: 500px;
}
.tally-wrapper iframe {
  display: block;
  width: 100% !important;
  border: none !important;
  background: transparent !important;
  color-scheme: light;
}

/* =========================================================
   🌐 Toggle EN — caché temporairement (jusqu'à traduction complète)
   ========================================================= */
a[href="en/index.html"],
a[href="../index.html"][aria-label*="français"],
a[href="../index.html"][title*="française"] { display: none !important; }
nav span.text-white\/15 { display: none !important; }

/* =========================================================
   📱 OPTIMISATION MOBILE COMPLÈTE
   ========================================================= */

/* ---------- Empêcher tout overflow horizontal ---------- */
html, body { max-width: 100vw; }

/* ---------- Tap targets accessibles (>= 44px) ---------- */
@media (max-width: 768px) {
  button, a, input, textarea, select { min-height: auto; }
  .btn-primary, .btn-secondary, .btn-light {
    padding: 0.875rem 1.5rem;
    font-size: 0.9375rem;
    min-height: 48px;
  }

  /* Nav mobile : logo plus petit pour pas serrer */
  #navbar img { height: 32px !important; }

  /* Hero : titre plus compact */
  h1.font-display {
    font-size: clamp(2rem, 7vw, 3rem) !important;
    line-height: 1.1 !important;
  }
  h2.font-display {
    font-size: clamp(1.75rem, 5vw, 2.5rem) !important;
    line-height: 1.15 !important;
  }

  /* Stats : taille adaptée */
  .stat-value { font-size: 1.75rem !important; }

  /* Sections : padding réduit */
  section { padding-left: 0 !important; padding-right: 0 !important; }
  section > div { padding-left: 1.25rem; padding-right: 1.25rem; }

  /* Cards : padding réduit */
  .card, .card-light, .step-card, .scenario-system, .team-card {
    padding: 1.5rem !important;
  }

  /* Hero stats : 3 colonnes serrées */
  .hero-gradient .grid-cols-3 { gap: 1rem !important; }

  /* Hero canvas : taille auto */
  #hero-canvas {
    max-height: 350px;
  }

  /* Trust logos : défilement plus rapide */
  .trust-logos-track {
    animation-duration: 20s;
    gap: 2rem;
  }
  .trust-logo {
    font-size: 0.8125rem;
  }

  /* Tool logos : plus compact */
  .tool-logo { font-size: 0.8125rem; gap: 0.375rem; }
  .tool-logo svg { width: 18px; height: 18px; }

  /* Floating cards : déjà cachées par .floating-card display:none, on garde */
  .floating-card { display: none !important; }

  /* Navbar : gap réduit pour pas pousser le burger */
  #navbar nav { gap: 1rem !important; }

  /* Eyebrows : plus petits */
  .eyebrow { font-size: 0.7rem; padding: 0.25rem 0.625rem; }

  /* CTA final : titre dimensionné */
  .cta-section h2 { font-size: clamp(1.75rem, 6vw, 2.5rem) !important; }

  /* Service vedette : padding réduit */
  #services .card.lg\:col-span-3 {
    padding: 1.5rem !important;
  }

  /* Scénarios : grille 1 colonne */
  .scenario-system .grid {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }

  /* Cards services : column-span reset */
  .card.lg\:col-span-3 { grid-column: span 1 !important; }
  .scenario-system.lg\:col-span-2 { grid-column: span 1 !important; }

  /* Témoignages vidéo : déjà responsive */

  /* Calculateur ROI : empilement vertical propre */
  #calculateur .grid {
    gap: 1.5rem !important;
  }

  /* Quiz / Audit : padding compact */
  .quiz-card { padding: 1.25rem !important; }
  .quiz-option { padding: 0.875rem 1rem; font-size: 0.875rem; }
  .quiz-option-icon { width: 36px; height: 36px; font-size: 1rem; }

  /* Forme contact : padding réduit */
  .contact-input { padding: 0.75rem 0.875rem; font-size: 16px; /* évite zoom iOS */ }

  /* FAQ : padding réduit */
  .faq-item summary { padding: 1.25rem !important; }
  .faq-item summary h3 { font-size: 0.9375rem; }

  /* Footer : grille empilée proprement */
  .footer .grid { gap: 2rem !important; }

  /* Chatbot widget : déjà OK via media query existante */

  /* Cookie banner : déjà OK */

  /* Newsletter modal : adapté à l'écran */
  .newsletter-modal {
    max-height: 88vh;
    border-radius: 18px;
  }
  .newsletter-modal-header { padding: 1.5rem 1.25rem 1rem; }
  .newsletter-modal-body { padding: 1rem 1.25rem 1.5rem; }

  /* Page transitions loader : centré */
  .page-loader { width: 28px; height: 28px; }
}

/* ---------- Petits écrans (< 480px) ---------- */
@media (max-width: 480px) {
  /* Encore plus compact */
  section > div { padding-left: 1rem; padding-right: 1rem; }
  .card, .card-light, .step-card, .team-card { padding: 1.25rem !important; }

  /* Stats hero : 1 colonne sur très petit */
  .hero-gradient .grid-cols-3 {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 0.75rem !important;
  }
  .hero-gradient .stat-value { font-size: 1.5rem !important; }

  /* Hero canvas : encore plus petit */
  #hero-canvas { max-height: 280px; }

  /* Eyebrows : compact max */
  .eyebrow { font-size: 0.65rem; }

  /* Boutons : full width au besoin */
  .btn-primary, .btn-secondary {
    width: 100%;
    justify-content: center;
  }
  .flex.flex-wrap.gap-4 .btn-primary,
  .flex.flex-wrap.gap-4 .btn-secondary { width: auto; }

  /* Floating cards : cachées (déjà) */
  /* Cards videos : aspect ratio adapté */
  .video-card { aspect-ratio: 4 / 3; }

  /* Audit / Quiz : stats résultat plus compact */
  #audit-result .grid-cols-3 {
    grid-template-columns: 1fr !important;
    gap: 0.5rem !important;
  }
}

/* ---------- Landscape mobile (paysage) ---------- */
@media (max-height: 500px) and (orientation: landscape) {
  .hero-gradient { padding-top: 6rem !important; padding-bottom: 2rem !important; }
  #hero-canvas { max-height: 200px; }
  .floating-card { display: none !important; }
}

/* ---------- Tablette (768px - 1024px) ---------- */
@media (min-width: 768px) and (max-width: 1023px) {
  /* Hero stats restent en 3 colonnes */
  /* Cards en 2 colonnes au lieu de 3 */
  #services > .relative > .grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* ---------- Fix : empêcher zoom iOS sur inputs ---------- */
@media (max-width: 768px) {
  input[type="text"], input[type="email"], input[type="tel"],
  input[type="number"], textarea, select {
    font-size: 16px !important;
  }
}

/* ---------- Touch devices : désactiver hover effects gourmands ---------- */
@media (hover: none), (pointer: coarse) {
  .card:hover, .card-light:hover, .step-card:hover,
  .team-card:hover, .scenario-system:hover, .article-card:hover {
    transform: none !important;
  }
}

/* ---------- Performance : alléger les effets sur petits écrans ---------- */
@media (max-width: 768px) {
  /* Désactiver le canvas 3D sur très petit écran pour la perf */
  #hero-canvas { opacity: 0.5; }
}
@media (max-width: 480px) {
  /* Sur les très petits écrans, le canvas peut être trop lourd */
  /* On laisse mais en mode allégé */
  #hero-canvas { max-height: 250px; }

  /* Désactiver les blobs background gourmands en blur */
  .hero-gradient > div[style*="blur"] {
    filter: blur(20px) !important;
    width: 300px !important;
    height: 300px !important;
  }

  /* Service vedette : pas de mockup browser sur très petit */
  #services .card.lg\:col-span-3 .md\:col-span-2 {
    display: none;
  }

  /* Cookie banner : full width */
  .cookie-banner {
    left: 12px;
    right: 12px;
    bottom: 12px;
    padding: 1.125rem;
  }

  /* Social proof : adapté */
  .social-proof {
    bottom: 88px;
    left: 12px;
    right: 12px;
    max-width: calc(100vw - 24px);
  }
}

/* ---------- Smooth scroll seulement si pas mobile (perf) ---------- */
@media (max-width: 768px) {
  html { scroll-behavior: auto; }
}
