/* ============================================================
   AVEN.IA — Premium Enhancement Layer v3
   Minimaliste Blanc Luxe + Futuriste
   ============================================================ */

/* ── 1. Variables ───────────────────────────────────────────── */
:root {
  --p-indigo:  #6366f1;
  --p-violet:  #8b5cf6;
  --p-cyan:    #06b6d4;
  --p-nav-h:   78px; /* nav fixed bottom position */
}

/* ── 2. Fix overflow global ─────────────────────────────────── */
body { overflow-x: hidden; }

/* ── 3. Aurora orbes — light mode ───────────────────────────── */
body::before, body::after {
  content: '';
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(80px);
  animation: aurora-drift 22s ease-in-out infinite;
}
body::before {
  width: min(700px, 90vw); height: min(700px, 90vw);
  top: -15vh; left: -10vw;
  background: radial-gradient(circle,
    rgba(99,102,241,0.07) 0%, rgba(139,92,246,0.05) 40%, transparent 70%);
}
body::after {
  width: min(500px, 70vw); height: min(500px, 70vw);
  bottom: 10vh; right: -8vw;
  background: radial-gradient(circle,
    rgba(6,182,212,0.06) 0%, rgba(99,102,241,0.04) 50%, transparent 70%);
  animation-duration: 28s; animation-direction: reverse;
}

/* Dark mode aurora — plus visible */
html.dark body::before {
  background: radial-gradient(circle,
    rgba(99,102,241,0.14) 0%, rgba(139,92,246,0.09) 40%, transparent 70%);
}
html.dark body::after {
  background: radial-gradient(circle,
    rgba(6,182,212,0.10) 0%, rgba(99,102,241,0.07) 50%, transparent 70%);
}

@keyframes aurora-drift {
  0%,100% { transform: translate(0,0)       scale(1); }
  25%      { transform: translate(40px,-30px) scale(1.06); }
  50%      { transform: translate(20px,50px)  scale(0.94); }
  75%      { transform: translate(-30px,20px) scale(1.03); }
}

/* Orbe central milieu page */
main { position: relative; }
main::before {
  content: '';
  position: absolute;
  width: min(600px, 80vw); height: min(600px, 80vw);
  top: 45%; left: 50%;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle,
    rgba(139,92,246,0.05) 0%, rgba(99,102,241,0.03) 50%, transparent 70%);
  pointer-events: none;
  filter: blur(60px);
  animation: aurora-drift 30s ease-in-out infinite 5s;
  z-index: 0;
}

/* ── 4. Grain texture luxe ──────────────────────────────────── */
html::after {
  content: '';
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.018;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 256px 256px;
}

/* ── 5. Page loader ─────────────────────────────────────────── */
#pg-loader {
  position: fixed; inset: 0;
  background: #fff;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
html.dark #pg-loader { background: #0a0a1a; }

#pg-loader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }

.loader-wordmark {
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: #1e1b4b;
  display: flex;
  align-items: center;
  gap: 2px;
}
html.dark .loader-wordmark { color: #e0e7ff; }
.loader-wordmark span { color: var(--p-indigo); }

.loader-track {
  width: 120px; height: 2px;
  background: rgba(99,102,241,0.12);
  border-radius: 2px;
  overflow: hidden;
}
.loader-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--p-indigo), var(--p-cyan));
  border-radius: 2px;
  animation: loader-run 0.9s cubic-bezier(0.4,0,0.2,1) forwards;
}
@keyframes loader-run {
  0%   { width: 0%; }
  60%  { width: 75%; }
  100% { width: 100%; }
}

/* ── 6. Scroll progress bar — supprimé (scrollbar native préférée) ── */

/* ── 7. Cursor glow ─────────────────────────────────────────── */
.cursor-glow {
  position: fixed;
  width: 320px; height: 320px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(circle,
    rgba(99,102,241,0.045) 0%, transparent 60%);
  transform: translate(-50%, -50%);
  filter: blur(8px);
  transition: opacity 0.3s ease;
}
html.dark .cursor-glow {
  background: radial-gradient(circle, rgba(99,102,241,0.09) 0%, transparent 60%);
}
@media (hover: none) { .cursor-glow { display: none !important; } }

/* ── 8. Particles canvas ────────────────────────────────────── */
#p-canvas {
  position: fixed; top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none; z-index: 0;
}

/* ── 9. ═══════════════════════════════════════════════════════
   CRITICAL FIX — Mobile nav overlap
   pt-28 / pt-36 / py-28 classes NOT in compiled CSS
   → hero sections have 0px padding, content hides behind nav
   ════════════════════════════════════════════════════════════ */

/* Hero sections (min-h based) — ensure clearance from nav */
main > section[class*="min-h"] > div:not([class*="absolute"]),
main > section[class*="min-h-screen"] > div:not([class*="absolute"]),
main > section[class*="min-h-\[85vh\]"] > div:not([class*="absolute"]) {
  padding-top: 6rem !important;   /* 96px default — clears 78px nav */
  padding-bottom: 3.5rem !important;
}

/* Desktop: more breathing room */
@media (min-width: 768px) {
  main > section[class*="min-h"] > div:not([class*="absolute"]) {
    padding-top: 7.5rem !important;  /* 120px */
    padding-bottom: 5rem !important;
  }
}

/* Regular content sections — padding top + bottom */
main > section[class*="py-28"] {
  padding-top: 7rem !important;
  padding-bottom: 7rem !important;
}
@media (max-width: 767px) {
  main > section[class*="py-28"] {
    padding-top: 4rem !important;
    padding-bottom: 4rem !important;
  }
}

/* Inner content wrappers (max-w containers inside py-28 sections) */
main > section[class*="py-28"] > div:not([class*="absolute"]) {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

/* ── 10. Navbar — glassmorphisme premium ────────────────────── */
app-header nav {
  /* Fond semi-transparent + blur fort : on voit le contenu mais flou */
  background: rgba(255, 255, 255, 0.58) !important;
  backdrop-filter: blur(28px) saturate(200%) !important;
  -webkit-backdrop-filter: blur(28px) saturate(200%) !important;
  /* Bordure lumineuse subtile */
  border: 1px solid rgba(255, 255, 255, 0.50) !important;
  box-shadow:
    0 2px 20px rgba(0, 0, 0, 0.06),
    0 1px 0 rgba(255, 255, 255, 0.80) inset,
    0 -1px 0 rgba(99, 102, 241, 0.06) inset !important;
  transition: background 0.5s ease, box-shadow 0.5s ease, border-color 0.5s ease !important;
}
html.dark app-header nav {
  background: rgba(9, 9, 25, 0.58) !important;
  backdrop-filter: blur(28px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(28px) saturate(180%) !important;
  border: 1px solid rgba(99, 102, 241, 0.13) !important;
  box-shadow:
    0 2px 20px rgba(0, 0, 0, 0.28),
    0 1px 0 rgba(255, 255, 255, 0.04) inset !important;
}
/* Micro-reflet dégradé indigo/cyan sur la nav */
app-header nav::after {
  content: '';
  position: absolute; inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg,
    rgba(99,102,241,0.05) 0%,
    rgba(139,92,246,0.02) 50%,
    rgba(6,182,212,0.03) 100%);
  pointer-events: none; z-index: 0;
}

/* Nav links — underline hover futuriste SEULEMENT sur les liens top-level
   (px-4 py-2 = À propos, Contact) — pas les dropdown cards */
app-header nav a[class*="px-4"][class*="py-2"] { position: relative; }
app-header nav a[class*="px-4"][class*="py-2"]::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 50%; width: 0; height: 1px;
  background: linear-gradient(90deg, var(--p-indigo), var(--p-cyan));
  transition: width 0.3s ease, left 0.3s ease;
}
app-header nav a[class*="px-4"][class*="py-2"]:hover::after { width: 100%; left: 0; }

/* ── 11. Hero — titre premium ────────────────────────────────── */
main > section:first-child h1,
main > section:first-child h2 {
  letter-spacing: -0.03em;
  line-height: 1.06 !important;
}

/* ── 12. Hero title — animated gradient (light mode) ─────────── */
html:not(.dark) main > section:first-child h1,
html:not(.dark) main > section:first-child h2 {
  background: linear-gradient(
    125deg,
    #1e1b4b 0%, #1e1b4b 30%,
    var(--p-indigo) 50%,
    var(--p-violet) 63%,
    var(--p-cyan) 80%,
    #06b6d4 100%
  );
  background-size: 220% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: title-shimmer 6s linear infinite;
}
html:not(.dark) main > section:first-child h1 [class*="text-brand"],
html:not(.dark) main > section:first-child h2 [class*="text-brand"] {
  background: linear-gradient(
    135deg,
    var(--p-indigo) 0%,
    var(--p-cyan) 50%,
    var(--p-violet) 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: title-shimmer 5s linear infinite;
}

@keyframes title-shimmer {
  0%   { background-position: 0% center; }
  100% { background-position: 200% center; }
}

/* ── 13. CTA bouton principal — shimmer + glow ───────────────── */
a[class*="from-brand-600"],
a[class*="bg-gradient-to-r"][class*="from-brand"] {
  position: relative; overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(99,102,241,0.30),
    0 4px 20px rgba(99,102,241,0.25),
    0 1px 4px rgba(0,0,0,0.10) !important;
  transition: box-shadow 0.35s ease, transform 0.25s ease !important;
}
a[class*="from-brand-600"]::before,
a[class*="bg-gradient-to-r"][class*="from-brand"]::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(
    105deg, transparent 20%, rgba(255,255,255,0.28) 50%, transparent 80%);
  transform: translateX(-100%);
  animation: btn-shimmer 4s ease infinite 2s;
  pointer-events: none;
}
a[class*="from-brand-600"]:hover,
a[class*="bg-gradient-to-r"][class*="from-brand"]:hover {
  box-shadow:
    0 0 0 1px rgba(99,102,241,0.50),
    0 8px 32px rgba(99,102,241,0.40),
    0 2px 8px rgba(0,0,0,0.12) !important;
  transform: translateY(-2px) !important;
}
@keyframes btn-shimmer {
  0%   { transform: translateX(-100%); }
  40%  { transform: translateX(200%); }
  100% { transform: translateX(200%); }
}

/* CTA secondaire */
a[class*="bg-white/60"]:hover {
  background: rgba(255,255,255,0.88) !important;
  box-shadow: 0 4px 20px rgba(99,102,241,0.08) !important;
  transform: translateY(-1px) !important;
}

/* ── 14. Badges flottants hero ──────────────────────────────── */
.liquid-glass[class*="absolute"] {
  box-shadow:
    0 4px 24px rgba(99,102,241,0.10),
    0 1px 8px rgba(0,0,0,0.06),
    inset 0 1px rgba(255,255,255,0.90),
    inset 0 -1px rgba(255,255,255,0.30) !important;
}

/* ── 15. Cards solutions — hover lift + glow ────────────────── */
.tilt-card {
  transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1),
              box-shadow 0.4s ease !important;
  will-change: transform;
}
.tilt-card:hover {
  box-shadow:
    0 24px 64px rgba(99,102,241,0.14),
    0 8px 32px rgba(0,0,0,0.07),
    inset 0 1px rgba(255,255,255,0.95) !important;
}
.tilt-card .card-border-glow { opacity: 0; transition: opacity 0.4s ease !important; }
.tilt-card:hover .card-border-glow { opacity: 1 !important; }

/* ── 16. Stats chiffres — gradient (light only) ─────────────── */
html:not(.dark) main > section:first-child [class*="text-brand"]:not(h1):not(h2):not(h3),
html:not(.dark) main > section:first-child [class*="text-4xl"]:not(h1):not(h2):not(h3),
html:not(.dark) main > section:first-child [class*="text-3xl"]:not(h1):not(h2):not(h3) {
  color: var(--p-indigo); /* fallback */
  background: linear-gradient(135deg, var(--p-indigo), var(--p-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── 17. Section titre "transformer" — gradient ─────────────── */
html:not(.dark) main > section:nth-child(2) h2 span[class*="text-brand"],
html:not(.dark) main > section:nth-child(2) h2 > span {
  color: var(--p-indigo);
  background: linear-gradient(135deg, var(--p-indigo) 20%, var(--p-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── 18. Section CTA finale — LIGHT MODE seulement ──────────── */
html:not(.dark) main > section:last-child > div > div {
  background: linear-gradient(145deg,
    rgba(255,255,255,0.97) 0%,
    rgba(248,249,255,0.97) 100%) !important;
  box-shadow:
    0 0 0 1px rgba(99,102,241,0.12),
    0 32px 80px rgba(99,102,241,0.08),
    0 8px 32px rgba(0,0,0,0.05) !important;
}
html.dark main > section:last-child > div > div {
  box-shadow:
    0 0 0 1px rgba(99,102,241,0.20),
    0 32px 80px rgba(99,102,241,0.12),
    0 8px 32px rgba(0,0,0,0.30) !important;
}

/* ── 19. CTA bouton final — pulse ───────────────────────────── */
main > section:last-child a[href*="calendly"] {
  position: relative; overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(99,102,241,0.30),
    0 6px 24px rgba(99,102,241,0.30),
    0 1px 6px rgba(0,0,0,0.10) !important;
  animation: cta-pulse 4s ease-in-out infinite;
  transition: box-shadow 0.35s ease, transform 0.25s ease !important;
}
main > section:last-child a[href*="calendly"]::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 20%, rgba(255,255,255,0.30) 50%, transparent 80%);
  transform: translateX(-100%);
  animation: btn-shimmer 5s ease infinite 2s;
  pointer-events: none;
}
@keyframes cta-pulse {
  0%,100% { box-shadow: 0 0 0 1px rgba(99,102,241,0.30), 0 6px 24px rgba(99,102,241,0.30), 0 1px 6px rgba(0,0,0,0.10); }
  50%      { box-shadow: 0 0 0 1px rgba(99,102,241,0.50), 0 10px 36px rgba(99,102,241,0.44), 0 2px 10px rgba(0,0,0,0.12); }
}

/* ── 20. Footer ─────────────────────────────────────────────── */
html:not(.dark) footer {
  border-top: 1px solid transparent !important;
  background-image: linear-gradient(white, white),
    linear-gradient(90deg,
      transparent 0%, rgba(99,102,241,0.20) 35%,
      rgba(6,182,212,0.15) 65%, transparent 100%) !important;
  background-origin: border-box;
  background-clip: padding-box, border-box;
}
html.dark footer { border-top: 1px solid rgba(99,102,241,0.15) !important; }
footer a:not([href*="linkedin"]):not([href*="instagram"]) {
  transition: color 0.2s ease !important;
}
footer a:not([href*="linkedin"]):not([href*="instagram"]):hover {
  color: var(--p-indigo) !important;
}

/* ── 21. Icônes produits ────────────────────────────────────── */
main > section:nth-child(2) [class*="rounded-2xl"][class*="bg-gradient"] {
  box-shadow: 0 4px 24px rgba(99,102,241,0.20) !important;
  transition: box-shadow 0.35s ease, transform 0.35s ease !important;
}
main > section:nth-child(2) .tilt-card:hover [class*="rounded-2xl"][class*="bg-gradient"] {
  box-shadow: 0 8px 32px rgba(99,102,241,0.35) !important;
  transform: scale(1.05) !important;
}

/* ── 22. Stats entrée animation ─────────────────────────────── */
.stat-premium { animation: stat-pop 0.6s cubic-bezier(0.34,1.56,0.64,1) both; }
@keyframes stat-pop {
  from { transform: scale(0.8); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}

/* ── 23. Magnetic button zone ───────────────────────────────── */
.magnetic-btn { transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1) !important; }

/* ── 24. Reveal ─────────────────────────────────────────────── */
.reveal-element {
  transition:
    opacity 0.7s cubic-bezier(0.25,0.46,0.45,0.94),
    transform 0.7s cubic-bezier(0.25,0.46,0.45,0.94) !important;
}

/* ── 25. Responsive mobile ──────────────────────────────────── */
@media (max-width: 767px) {
  /* Réduire les orbes pour pas déborder */
  body::before { width: 60vw; height: 60vw; left: -20vw; filter: blur(50px); }
  body::after  { width: 50vw; height: 50vw; right: -20vw; filter: blur(40px); }
  main::before { display: none; }

  /* Cards — pas de transform 3D sur touch */
  .tilt-card:hover {
    transform: none !important;
    box-shadow: 0 12px 32px rgba(99,102,241,0.10) !important;
  }

  /* CTA section radius mobile */
  main > section:last-child > div > div { border-radius: 20px !important; }

  /* Grain un peu plus subtil sur mobile */
  html::after { opacity: 0.012; }

  /* ── Fix footer mobile ─────────────────────────────────────── */
  /* Force 1 colonne — grid-cols-1 pas toujours compilé */
  footer .grid {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }

  /* Logo + description colonne footer */
  footer .grid > div:first-child {
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(99,102,241,0.10);
  }

  /* Sections nav footer (Solutions / Entreprise / Légal) — 2 par ligne */
  footer .grid > div:not(:first-child) {
    display: inline-block;
    vertical-align: top;
    width: calc(50% - 0.5rem);
  }
  footer .grid > div:nth-child(2) { margin-right: 1rem; }
  footer .grid > div:nth-child(4) { width: 100%; margin-top: 0; }

  /* Copyright row — stack vertical proprement */
  footer .flex.flex-col {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.75rem !important;
  }

  /* Téléphone + réseaux sociaux — horizontal */
  footer .flex.items-center.gap-4 {
    flex-wrap: wrap;
    gap: 0.75rem !important;
  }
}

@media (max-width: 480px) {
  body::before, body::after { filter: blur(40px); }

  /* Hero title pas trop en gradient sur très petit écran (perf) */
  html:not(.dark) main > section:first-child h1,
  html:not(.dark) main > section:first-child h2 {
    animation-duration: 12s;
  }
}

/* ══════════════════════════════════════════════════════════════
   SECTION "ET BIEN PLUS ENCORE" — Page Automatisation
   ══════════════════════════════════════════════════════════════ */

#plus-encore {
  padding: 5rem 0 6rem;
  position: relative;
  overflow: hidden;
}

/* Orbe derrière la section */
#plus-encore::before {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle,
    rgba(99,102,241,0.06) 0%,
    rgba(139,92,246,0.04) 40%,
    transparent 70%);
  filter: blur(60px);
  pointer-events: none;
}

/* Header */
.plus-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3.5rem;
  padding: 0 1.5rem;
}
.plus-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 1rem;
  border-radius: 999px;
  background: rgba(99,102,241,0.08);
  border: 1px solid rgba(99,102,241,0.18);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--p-indigo);
  margin-bottom: 1.5rem;
}
html.dark .plus-badge {
  background: rgba(99,102,241,0.12);
  border-color: rgba(99,102,241,0.25);
  color: #a5b4fc;
}
.plus-badge::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--p-indigo);
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%,100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.5; transform: scale(0.7); }
}

.plus-title {
  font-size: clamp(1.8rem, 4vw, 2.75rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: #1e1b4b;
  margin-bottom: 1rem;
}
html.dark .plus-title { color: #e0e7ff; }

.plus-title em {
  font-style: normal;
  background: linear-gradient(135deg, var(--p-indigo) 0%, var(--p-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.plus-subtitle {
  font-size: 1rem;
  line-height: 1.65;
  color: #64748b;
}
html.dark .plus-subtitle { color: #94a3b8; }

/* Ticker wrapper */
.plus-tickers {
  position: relative;
  margin: 0 0 3.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.plus-tickers::before,
.plus-tickers::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 120px;
  z-index: 2;
  pointer-events: none;
}
.plus-tickers::before {
  left: 0;
  background: linear-gradient(to right, white 0%, transparent 100%);
}
.plus-tickers::after {
  right: 0;
  background: linear-gradient(to left, white 0%, transparent 100%);
}
html.dark .plus-tickers::before {
  background: linear-gradient(to right,
    oklch(12.9% 0.042 264.695) 0%, transparent 100%);
}
html.dark .plus-tickers::after {
  background: linear-gradient(to left,
    oklch(12.9% 0.042 264.695) 0%, transparent 100%);
}

.ticker-row { overflow: hidden; }

.ticker-track {
  display: flex;
  gap: 0.65rem;
  width: max-content;
  will-change: transform;
}
.ticker-track--fwd  { animation: ticker-fwd  28s linear infinite; }
.ticker-track--back { animation: ticker-back 22s linear infinite; }

@keyframes ticker-fwd  { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes ticker-back { from { transform: translateX(-50%); } to { transform: translateX(0); } }

/* Pause on hover */
.plus-tickers:hover .ticker-track { animation-play-state: paused; }

/* Individual tags */
.ptag {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  white-space: nowrap;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: default;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  user-select: none;
}
.ptag:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(99,102,241,0.15);
}
.ptag-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Tag color variants */
.ptag-indigo {
  background: rgba(99,102,241,0.08);
  border: 1px solid rgba(99,102,241,0.18);
  color: #4338ca;
}
html.dark .ptag-indigo { background: rgba(99,102,241,0.12); border-color: rgba(99,102,241,0.22); color: #a5b4fc; }
.ptag-indigo .ptag-dot { background: #6366f1; }

.ptag-cyan {
  background: rgba(6,182,212,0.07);
  border: 1px solid rgba(6,182,212,0.18);
  color: #0e7490;
}
html.dark .ptag-cyan { background: rgba(6,182,212,0.10); border-color: rgba(6,182,212,0.22); color: #67e8f9; }
.ptag-cyan .ptag-dot { background: #06b6d4; }

.ptag-violet {
  background: rgba(139,92,246,0.08);
  border: 1px solid rgba(139,92,246,0.18);
  color: #6d28d9;
}
html.dark .ptag-violet { background: rgba(139,92,246,0.12); border-color: rgba(139,92,246,0.22); color: #c4b5fd; }
.ptag-violet .ptag-dot { background: #8b5cf6; }

.ptag-emerald {
  background: rgba(16,185,129,0.07);
  border: 1px solid rgba(16,185,129,0.18);
  color: #065f46;
}
html.dark .ptag-emerald { background: rgba(16,185,129,0.10); border-color: rgba(16,185,129,0.22); color: #6ee7b7; }
.ptag-emerald .ptag-dot { background: #10b981; }

.ptag-slate {
  background: rgba(100,116,139,0.07);
  border: 1px solid rgba(100,116,139,0.15);
  color: #475569;
}
html.dark .ptag-slate { background: rgba(100,116,139,0.10); border-color: rgba(100,116,139,0.20); color: #94a3b8; }
.ptag-slate .ptag-dot { background: #64748b; }

/* Quote block */
.plus-quote-block {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
  padding: 2.5rem 2rem;
  border-radius: 24px;
  position: relative;
  background: rgba(255,255,255,0.7);
  border: 1px solid rgba(99,102,241,0.12);
  box-shadow: 0 8px 40px rgba(99,102,241,0.07), 0 2px 8px rgba(0,0,0,0.04);
  backdrop-filter: blur(12px);
}
html.dark .plus-quote-block {
  background: rgba(255,255,255,0.04);
  border-color: rgba(99,102,241,0.18);
  box-shadow: 0 8px 40px rgba(99,102,241,0.10), 0 2px 8px rgba(0,0,0,0.20);
}

.plus-quote-marks {
  font-size: 4rem;
  line-height: 0.5;
  color: var(--p-indigo);
  opacity: 0.2;
  font-family: Georgia, serif;
  display: block;
  margin-bottom: 1rem;
}
.plus-quote-text {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #1e1b4b;
  line-height: 1.4;
  margin-bottom: 0.75rem;
}
html.dark .plus-quote-text { color: #e0e7ff; }

.plus-quote-text span {
  background: linear-gradient(135deg, var(--p-indigo), var(--p-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.plus-quote-sub {
  font-size: 0.875rem;
  color: #64748b;
  margin-bottom: 1.5rem;
}
html.dark .plus-quote-sub { color: #94a3b8; }

.plus-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--p-indigo), var(--p-violet));
  color: white !important;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 4px 20px rgba(99,102,241,0.30);
  position: relative;
  overflow: hidden;
}
.plus-cta::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,0.25) 50%, transparent 70%);
  transform: translateX(-100%);
  animation: btn-shimmer 4s ease infinite 1s;
}
.plus-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(99,102,241,0.45);
}

/* Mobile */
@media (max-width: 767px) {
  #plus-encore { padding: 3.5rem 0 4rem; }
  .plus-header { margin-bottom: 2.5rem; }
  .plus-tickers::before, .plus-tickers::after { width: 60px; }
  .plus-quote-block { margin: 0 1.5rem; padding: 2rem 1.5rem; }
  .plus-quote-text { font-size: 1.05rem; }
}

/* ── À propos — icônes SVG (emojis remplacés) ──────────────── */
.value-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 11px;
  background: linear-gradient(135deg, rgba(99,102,241,0.10), rgba(139,92,246,0.07));
  border: 1px solid rgba(99,102,241,0.15);
  flex-shrink: 0;
  vertical-align: middle;
  margin-right: 0.35rem;
}
html.dark .value-icon {
  background: linear-gradient(135deg, rgba(99,102,241,0.15), rgba(139,92,246,0.12));
  border-color: rgba(99,102,241,0.25);
}
.value-icon svg { width: 20px; height: 20px; }

/* ════════════════════════════════════════════════════════════════
   PREMIUM LAYER v5 — Visual & Accessibility Enhancements
   ════════════════════════════════════════════════════════════════ */

/* ── Hero section stacking context (for #hero-grid containment) ── */
main > section:first-child { position: relative; isolation: isolate; }

/* ── Hero background dot grid ───────────────────────────────────── */
#hero-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(99,102,241,0.11) 1px, transparent 1px);
  background-size: 28px 28px;
  background-position: center center;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.55) 0%, transparent 78%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,0.55) 0%, transparent 78%);
  pointer-events: none;
  z-index: -1;
  border-radius: inherit;
  opacity: 0;
  animation: hero-grid-in 1.2s 0.3s ease forwards;
}
html.dark #hero-grid {
  background-image: radial-gradient(circle, rgba(99,102,241,0.22) 1px, transparent 1px);
}
@keyframes hero-grid-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ── Card spotlight (follows cursor inside card) ────────────────── */
.tilt-card { position: relative; --spot-x: 50%; --spot-y: 50%; }
.tilt-card.p-spot-on::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    320px circle at var(--spot-x) var(--spot-y),
    rgba(99,102,241,0.09) 0%,
    rgba(139,92,246,0.05) 45%,
    transparent 70%
  );
  border-radius: inherit;
  pointer-events: none;
  z-index: 2;
  transition: opacity 0.25s ease;
}
html.dark .tilt-card.p-spot-on::after {
  background: radial-gradient(
    320px circle at var(--spot-x) var(--spot-y),
    rgba(99,102,241,0.16) 0%,
    rgba(139,92,246,0.09) 45%,
    transparent 70%
  );
}

/* Spinning border supprimé — remplacé par effet 3D tilt JS */

/* ── Custom scrollbar — desktop (souris) uniquement ────────────── */
@media (pointer: fine) {
  ::-webkit-scrollbar { width: 5px; height: 5px; }
  ::-webkit-scrollbar-track { background: transparent; }
  ::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--p-indigo) 0%, var(--p-cyan) 100%);
    border-radius: 999px;
  }
  ::-webkit-scrollbar-thumb:hover { filter: brightness(1.15); }
  * { scrollbar-width: thin; scrollbar-color: var(--p-indigo) transparent; }
}

/* ── Scroll progress bar — mobile uniquement ───────────────────── */
.scroll-progress {
  position: fixed; top: 0; left: 0;
  height: 2.5px; z-index: 10001;
  background: linear-gradient(90deg, var(--p-indigo), var(--p-violet), var(--p-cyan));
  box-shadow: 0 0 8px rgba(99,102,241,0.55);
  width: 0%;
  display: none;
  pointer-events: none;
}
@media (pointer: coarse) {
  /* Touch device = affiche la barre de progression */
  .scroll-progress { display: block; }
}

/* ── Text selection ─────────────────────────────────────────────── */
::selection { background: rgba(99,102,241,0.18); color: inherit; }

/* ── Smooth scroll ──────────────────────────────────────────────── */
html { scroll-behavior: smooth; }

/* ── CTA fade transition (for "démo"→"échange" smooth swap) ─────── */
app-header nav a, app-header nav button,
a[href*="calendly"],
a[class*="from-brand"] {
  transition: opacity 0.12s ease, color 0.25s ease, box-shadow 0.35s ease, transform 0.25s ease !important;
}

/* ── Gradient on ALL text-brand spans in section h2 ────────────── */
html:not(.dark) main > section h2 span[class*="text-brand"],
html:not(.dark) main > section h2 > span[class*="gradient"] {
  background: linear-gradient(135deg, var(--p-indigo) 0%, var(--p-violet) 50%, var(--p-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
html.dark main > section h2 span[class*="text-brand"] {
  color: #a5b4fc;
}

/* ── prefers-reduced-motion ─────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.1ms !important;
  }
  html { scroll-behavior: auto !important; }

  /* Ticker: stop movement, allow static read */
  .ticker-track--fwd,
  .ticker-track--back { animation: none !important; }

  /* Loader: show full bar instantly */
  .loader-fill { animation: none !important; width: 100% !important; }

  /* Remove animated decorations */
  #p-canvas       { display: none !important; }
  .cursor-glow    { display: none !important; }
  #hero-grid      { animation: none !important; opacity: 0.7 !important; }

  /* Tilt 3D : pas de transform en reduced-motion */
  .tilt-card { transform: none !important; transition: box-shadow 0.4s ease !important; }

  /* Scroll reveal : montrer directement */
  .p-reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ── Scroll reveal avec stagger ────────────────────────────────── */
.p-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.65s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    transform 0.65s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: opacity, transform;
}
.p-reveal.p-revealed {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* ── Back-to-top button ─────────────────────────────────────────── */
#back-top {
  position: fixed;
  bottom: 104px; right: 22px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--p-indigo) 0%, var(--p-violet) 100%);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 4px 20px rgba(99,102,241,0.40),
    0 1px 4px rgba(0,0,0,0.14),
    inset 0 1px rgba(255,255,255,0.20);
  z-index: 9990;
  opacity: 0;
  transform: translateY(14px) scale(0.85);
  transition:
    opacity 0.38s ease,
    transform 0.38s cubic-bezier(0.34,1.56,0.64,1),
    box-shadow 0.3s ease;
  pointer-events: none;
}
#back-top.btt-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
#back-top:hover {
  transform: translateY(-3px) scale(1.08) !important;
  box-shadow:
    0 8px 28px rgba(99,102,241,0.55),
    0 2px 8px rgba(0,0,0,0.16) !important;
}
#back-top:active { transform: scale(0.95) !important; }
@media (max-width: 767px) {
  #back-top { right: 14px; bottom: 90px; width: 40px; height: 40px; }
}

/* ── Nav lien actif ─────────────────────────────────────────────── */
app-header nav a.p-nav-active {
  color: var(--p-indigo) !important;
  font-weight: 600 !important;
}
app-header nav a.p-nav-active::after {
  width: 100% !important;
  left: 0 !important;
}

/* ── SPA transition overlay ─────────────────────────────────────── */
#page-overlay {
  position: fixed; inset: 0;
  z-index: 9998;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(
    135deg,
    rgba(99,102,241,0.05) 0%,
    rgba(139,92,246,0.03) 50%,
    rgba(6,182,212,0.03) 100%
  );
  transition: opacity 0.15s ease;
}
#page-overlay.p-ov-in { opacity: 1; }
html.dark #page-overlay {
  background: linear-gradient(
    135deg,
    rgba(99,102,241,0.10) 0%,
    rgba(139,92,246,0.06) 50%,
    rgba(6,182,212,0.05) 100%
  );
}

/* ── forced-colors / Windows High Contrast ──────────────────────── */
@media (forced-colors: active) {
  main > section:first-child h1,
  main > section:first-child h2,
  .plus-title em,
  .plus-quote-text span,
  html:not(.dark) main > section:first-child [class*="text-brand"]:not(h1):not(h2):not(h3),
  html:not(.dark) main > section:first-child [class*="text-4xl"]:not(h1):not(h2):not(h3),
  html:not(.dark) main > section:first-child [class*="text-3xl"]:not(h1):not(h2):not(h3),
  html:not(.dark) main > section h2 span[class*="text-brand"] {
    -webkit-text-fill-color: unset !important;
    background: none !important;
    color: ButtonText !important;
    background-clip: unset !important;
  }
  .cursor-glow, #hero-grid, #p-canvas, body::before, body::after {
    display: none !important;
  }
}

/* ════════════════════════════════════════════════════════════════
   MOBILE PREMIUM — Audit complet & corrections
   ════════════════════════════════════════════════════════════════ */

/* ── 1. Performance GPU : réduire le blur de la nav sur mobile ── */
@media (pointer: coarse) {
  app-header nav {
    backdrop-filter: blur(18px) saturate(160%) !important;
    -webkit-backdrop-filter: blur(18px) saturate(160%) !important;
    /* Légèrement plus opaque : plus lisible sans le fort blur */
    background: rgba(255, 255, 255, 0.78) !important;
  }
  html.dark app-header nav {
    background: rgba(9, 9, 25, 0.78) !important;
  }
}

/* ── 2. Grain texture : off sur mobile (coûteux en rendu) ──────── */
@media (pointer: coarse) {
  html::after { display: none !important; }
}

/* ── 3. Hero dot grid : statique sur mobile ─────────────────────── */
@media (pointer: coarse) {
  #hero-grid {
    animation: none !important;
    opacity: 0.45 !important;
    background-size: 32px 32px; /* Points plus espacés = plus aéré */
  }
}

/* ── 4. Aurora orbes : allégées sur mobile ──────────────────────── */
@media (pointer: coarse) {
  body::before { opacity: 0.55; filter: blur(60px) !important; }
  body::after  { opacity: 0.55; filter: blur(50px) !important; }
}

/* ── 5. Spotlight card : inutile sur tactile, on coupe ──────────── */
@media (pointer: coarse) {
  .tilt-card.p-spot-on::after { display: none !important; }
}

/* ── 6. Scroll reveal : 0 délai sur mobile (1 colonne = pas de stagger) */
@media (pointer: coarse) {
  .p-reveal { transition-delay: 0ms !important; }
}

/* ── 7. Safe area insets — iPhone notch / Dynamic Island ────────── */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
  footer {
    padding-bottom: calc(1.5rem + env(safe-area-inset-bottom)) !important;
  }
  /* Back-to-top au dessus de la zone safe area */
  #back-top {
    bottom: calc(90px + env(safe-area-inset-bottom, 0px));
  }
}

/* ── 8. Touch targets min 44px (Apple HIG / WCAG 2.5.5) ───────── */
@media (pointer: coarse) {
  app-header nav a, app-header nav button {
    min-height: 44px;
    min-width: 44px;
    display: inline-flex;
    align-items: center;
  }
  /* CTAs principaux : encore plus généreux */
  a[class*="from-brand"],
  a[href*="calendly"],
  .plus-cta,
  #back-top {
    min-height: 48px !important;
  }
}

/* ── 9. Ticker plus-encore : vitesse ajustée mobile ─────────────── */
@media (pointer: coarse) {
  .ticker-track--fwd  { animation-duration: 20s !important; }
  .ticker-track--back { animation-duration: 16s !important; }
}

/* ── 10. Lisibilité mobile : meilleur line-height paragraphes ───── */
@media (pointer: coarse) {
  main p { line-height: 1.75 !important; }
  main li { line-height: 1.7 !important; }
}

/* ── 11. Hero h1 : casser proprement sur petits écrans ─────────── */
@media (max-width: 390px) {
  main > section:first-child h1,
  main > section:first-child h2 {
    hyphens: auto;
    word-break: break-word;
  }
}

/* ── 12. Plus-encore quote block : marge safe sur mobile ───────── */
@media (max-width: 390px) {
  .plus-quote-block { margin: 0 1rem !important; }
}

/* ── 13. Scroll progress bar : z-index au dessus de tout ───────── */
@media (pointer: coarse) {
  .scroll-progress { z-index: 99999 !important; }
}

/* ── 14. Active state tactile sur les boutons ───────────────────── */
@media (pointer: coarse) {
  a[class*="from-brand"]:active,
  a[href*="calendly"]:active,
  .plus-cta:active {
    transform: scale(0.97) !important;
    transition: transform 0.1s ease !important;
  }
  #back-top:active { transform: scale(0.92) !important; }
}

/* ── 15. Loader : taille adaptée mobile ─────────────────────────── */
@media (pointer: coarse) {
  #pg-loader { gap: 20px; }
  .loader-wordmark { font-size: 1.25rem; }
  .loader-track { width: 100px; }
}

/* ════════════════════════════════════════════════════════════════
   MOBILE VISUAL PREMIUM — Ultra look & feel
   ════════════════════════════════════════════════════════════════ */

/* ── Back-to-top masqué sur mobile (sticky bar le remplace) ─────── */
@media (pointer: coarse) {
  #back-top { display: none !important; }
}

/* ── Nav mobile : nettoyage complet ─────────────────────────────── */
@media (pointer: coarse) {
  /* Cache le gros CTA de la nav — la sticky bar fait ce travail */
  app-header nav a[class*="from-brand"],
  app-header nav a[class*="bg-gradient-to-r"][class*="from-brand"] {
    display: none !important;
  }
  /* Pill toggle : caché sur mobile — remplacé par #mobile-theme-btn */
  app-header nav button[class*="rounded-full"] {
    display: none !important;
  }
  /* Réduction de la hauteur de la nav */
  app-header nav {
    padding-top: 6px !important;
    padding-bottom: 6px !important;
  }
}

/* ── Mini theme toggle — mobile uniquement ──────────────────────── */
#mobile-theme-btn { display: none; }
@media (pointer: coarse) {
  #mobile-theme-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 10px;
    background: transparent;
    border: none;
    cursor: pointer;
    color: #64748b;
    padding: 0;
    transition: background 0.18s ease, color 0.18s ease, transform 0.12s ease;
    flex-shrink: 0;
  }
  html.dark #mobile-theme-btn {
    color: #94a3b8;
  }
  #mobile-theme-btn:active {
    transform: scale(0.84) !important;
    background: rgba(99, 102, 241, 0.08) !important;
    color: #6366f1 !important;
  }
}

/* ── Hero typographie : plus grande, plus impactante sur mobile ──── */
@media (pointer: coarse) and (max-width: 767px) {
  main > section:first-child h1,
  main > section:first-child h2 {
    font-size: clamp(2.1rem, 8.5vw, 2.9rem) !important;
    line-height: 1.05 !important;
    letter-spacing: -0.045em !important;
  }
}

/* ── Stats : chiffres massifs et percutants ─────────────────────── */
@media (pointer: coarse) {
  main > section:first-child [class*="text-4xl"]:not(h1):not(h2):not(h3),
  main > section:first-child [class*="text-5xl"]:not(h1):not(h2):not(h3) {
    font-size: 3.4rem !important;
    font-weight: 900 !important;
    letter-spacing: -0.04em !important;
  }
}

/* ── Cards mobile : depth + retour tactile premium ──────────────── */
@media (pointer: coarse) {
  .tilt-card {
    box-shadow:
      0 2px 18px rgba(99,102,241,0.10),
      0 1px 4px rgba(0,0,0,0.05) !important;
    border: 1px solid rgba(99,102,241,0.10) !important;
    transition: transform 0.18s ease, box-shadow 0.18s ease !important;
    /* Pas de tilt 3D sur touch, mais feedback immédiat */
  }
  .tilt-card:active {
    transform: scale(0.982) !important;
    box-shadow:
      0 1px 10px rgba(99,102,241,0.07),
      0 1px 3px rgba(0,0,0,0.04) !important;
    transition: transform 0.08s ease !important;
  }
}

/* ── Accent line gradient sous les titres de section ────────────── */
@media (pointer: coarse) {
  main > section:not(:first-child) > div > h2,
  main > section:not(:first-child) > div > div > h2 {
    padding-bottom: 1rem !important;
  }
  main > section:not(:first-child) > div > h2::after,
  main > section:not(:first-child) > div > div > h2::after {
    content: '';
    display: block;
    width: 32px; height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--p-indigo), var(--p-cyan));
    margin: 0.85rem auto 0;
  }
}

/* ── Plus-encore quote block : fond plus riche sur mobile ───────── */
@media (pointer: coarse) {
  .plus-quote-block {
    background: linear-gradient(
      135deg,
      rgba(99,102,241,0.08) 0%,
      rgba(139,92,246,0.05) 50%,
      rgba(6,182,212,0.04) 100%
    ) !important;
    border-color: rgba(99,102,241,0.16) !important;
    box-shadow:
      0 8px 40px rgba(99,102,241,0.10),
      0 2px 8px rgba(0,0,0,0.06) !important;
  }
}

/* ── Sticky CTA bar ─────────────────────────────────────────────── */
#mobile-cta-bar { display: none; }

@media (pointer: coarse) {
  #mobile-cta-bar {
    display: block;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
    background: rgba(255, 255, 255, 0.86);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-top: 1px solid rgba(99, 102, 241, 0.12);
    box-shadow:
      0 -8px 32px rgba(99, 102, 241, 0.10),
      0 -1px 0 rgba(255, 255, 255, 0.80);
    z-index: 9980;
    transform: translateY(110%);
    transition: transform 0.44s cubic-bezier(0.34, 1.56, 0.64, 1);
  }
  html.dark #mobile-cta-bar {
    background: rgba(9, 9, 25, 0.88);
    border-top-color: rgba(99, 102, 241, 0.18);
    box-shadow: 0 -8px 32px rgba(99, 102, 241, 0.14), 0 -1px 0 rgba(255,255,255,0.04);
  }
  #mobile-cta-bar.mbar-visible {
    transform: translateY(0);
  }

  .mbar-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: 100%;
    padding: 15px 20px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--p-indigo) 0%, var(--p-violet) 60%, var(--p-cyan) 140%);
    color: white !important;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    text-decoration: none;
    box-shadow:
      0 4px 20px rgba(99, 102, 241, 0.40),
      0 1px 4px rgba(0, 0, 0, 0.10);
    position: relative;
    overflow: hidden;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
  }
  /* Shimmer sur le bouton */
  .mbar-btn::before {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(
      105deg,
      transparent 30%,
      rgba(255, 255, 255, 0.24) 50%,
      transparent 70%
    );
    transform: translateX(-100%);
    animation: btn-shimmer 3.5s ease infinite 0.8s;
    pointer-events: none;
  }
  .mbar-btn:active {
    transform: scale(0.97) !important;
    box-shadow: 0 2px 10px rgba(99, 102, 241, 0.28) !important;
    transition: transform 0.08s ease !important;
  }

  /* ── Bouton fermer (×) ──────────────────────────────────────── */
  .mbar-close {
    position: absolute;
    top: 50%; right: 8px;
    transform: translateY(-50%);
    width: 28px; height: 28px;
    border-radius: 50%;
    background: rgba(99, 102, 241, 0.10);
    border: 1px solid rgba(99, 102, 241, 0.15);
    color: rgba(99, 102, 241, 0.65);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    flex-shrink: 0;
    transition: background 0.2s ease, transform 0.2s ease;
    z-index: 2;
  }
  html.dark .mbar-close {
    background: rgba(99,102,241,0.15);
    border-color: rgba(99,102,241,0.25);
    color: rgba(165,180,252,0.80);
  }
  .mbar-close:active {
    background: rgba(99,102,241,0.22) !important;
    transform: translateY(-50%) scale(0.90) !important;
  }
  /* Espace pour que le bouton CTA ne soit pas coupé par la croix */
  #mobile-cta-bar .mbar-btn {
    padding-right: 20px;
  }
  /* Position relative pour le container (nécessaire pour la croix absolute) */
  #mobile-cta-bar {
    display: flex !important;
    align-items: center;
    gap: 8px;
  }
  #mobile-cta-bar .mbar-btn {
    flex: 1;
  }
  /* Override la position absolue — inline flex plus propre */
  .mbar-close {
    position: relative !important;
    top: unset !important; right: unset !important;
    transform: none !important;
    flex-shrink: 0;
  }
  .mbar-close:active {
    transform: scale(0.88) !important;
  }
}

/* ── Smart Host — injections de contenu ─────────────────────────── */

/* Note "Nouveaux PMS ajoutés régulièrement" */
#sh-pms-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 28px;
  font-size: 0.78rem;
  font-weight: 500;
  color: #64748b;
  letter-spacing: 0.01em;
}
html.dark #sh-pms-note { color: #94a3b8; }
#sh-pms-note svg { color: var(--p-indigo); }
#sh-pms-note a {
  color: var(--p-indigo);
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.2s ease;
}
#sh-pms-note a:hover { opacity: 0.75; text-decoration: underline; }

/* Note "Bob peut être renommé" — dans step 2 */
#sh-rename-note {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--p-indigo);
  background: rgba(99,102,241,0.07);
  border: 1px solid rgba(99,102,241,0.14);
  border-radius: 8px;
  padding: 5px 10px;
  line-height: 1.4;
}
html.dark #sh-rename-note {
  background: rgba(99,102,241,0.10);
  border-color: rgba(99,102,241,0.20);
}

/* ── Carte "Votre agent, votre identité" — pleine largeur, fine, centrée */
#sh-identity-card {
  grid-column: 1 / -1 !important;
  border-radius: 20px !important;
}
#sh-identity-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 22px 40px;
  text-align: center;
  flex-wrap: wrap;
}
#sh-identity-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, #8b5cf6, #6366f1);
  box-shadow: 0 6px 20px rgba(139, 92, 246, 0.28);
  flex-shrink: 0;
}
#sh-identity-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  max-width: 620px;
}
#sh-identity-text h3 { margin: 0; }
#sh-identity-text p  { margin: 0; }