<?php
// AVI_VERSION: 1.0.0 | section-dashboard-preview-btob.php | 2026-04-30
// Section : Dashboard preview B2B — à inclure dans home.php
// Image requise : avision-dashboard/assets/images/agency-fleet-gris.png
// Placement recommandé : après la section features, avant la section pricing/CTA
?>

<section class="avi-db-preview avi-db-preview--btob" aria-label="Agency dashboard preview">
  <div class="avi-db-preview__inner">

    <!-- Texte gauche -->
    <div class="avi-db-preview__text">
      <span class="avi-db-preview__eyebrow">Fleet Command Center</span>
      <h2 class="avi-db-preview__title">
        Manage every client location<br>
        <em>from a single cockpit</em>
      </h2>
      <p class="avi-db-preview__desc">
        Your agency dashboard gives you real-time visibility across your entire portfolio.
        Monitor Guardian status, Radar scores, and review alerts — all without switching tabs.
      </p>
      <ul class="avi-db-preview__list">
        <li>
          <span class="avi-db-preview__check">✦</span>
          Live KPIs across all client profiles
        </li>
        <li>
          <span class="avi-db-preview__check">✦</span>
          Automated Guardian responses in your name
        </li>
        <li>
          <span class="avi-db-preview__check">✦</span>
          Weekly Radar reports delivered to your inbox
        </li>
        <li>
          <span class="avi-db-preview__check">✦</span>
          <strong>AVI</strong> — your fleet intelligence engine,
          guiding your agency toward the highest-impact actions
          across every client profile, every day.
        </li>
      </ul>
      <div class="avi-db-preview__cta-wrap">
        <a href="/agency-pricing/" class="avi-db-preview__cta avi-db-preview__cta--primary">
          See agency plans
        </a>
        <a href="/how-it-works/" class="avi-db-preview__cta avi-db-preview__cta--ghost">
          How it works →
        </a>
      </div>
    </div>

    <!-- Image droite -->
    <div class="avi-db-preview__visual">
      <div class="avi-db-preview__frame" aria-hidden="true">
        <div class="avi-db-preview__bar">
          <span class="avi-db-preview__dot"></span>
          <span class="avi-db-preview__dot"></span>
          <span class="avi-db-preview__dot"></span>
          <span class="avi-db-preview__url">avision.org/agency-dashboard</span>
        </div>
        <div class="avi-db-preview__screen">
          <img
            src="<?php echo esc_url( AVISION_PLUGIN_URL . 'assets/images/agency-fleet-gris.png' ); ?>"
            alt="Avision Agency Fleet Dashboard — multi-location management interface"
            class="avi-db-preview__img"
            loading="lazy"
            width="900"
            height="560"
          />
        </div>
      </div>
      <!-- Glows décoratifs -->
      <div class="avi-db-preview__glow avi-db-preview__glow--primary" aria-hidden="true"></div>
      <div class="avi-db-preview__glow avi-db-preview__glow--accent" aria-hidden="true"></div>
      <!-- Badge live -->
      <div class="avi-db-preview__badge" aria-label="Live product">
        <span class="avi-db-preview__badge-dot"></span>
        Live product
      </div>
    </div>

  </div>
</section>

<style>
/* ─── Section Dashboard Preview — B2B ─────────────────────────────────── */
.avi-db-preview {
  position: relative;
  background: #060612;
  padding: 100px 24px;
  overflow: hidden;
}

/* Grille subtile en fond */
.avi-db-preview::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(107,70,232,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(107,70,232,.05) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

.avi-db-preview__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

/* ── Texte ── */
.avi-db-preview__eyebrow {
  display: inline-block;
  font-family: 'DM Mono', 'Courier New', monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #1DB88A;
  margin-bottom: 18px;
  padding: 6px 14px;
  border: 1px solid rgba(29,184,138,.25);
  border-radius: 100px;
  background: rgba(29,184,138,.07);
}

.avi-db-preview__title {
  font-family: 'Sora', 'Segoe UI', sans-serif;
  font-size: clamp(28px, 3.2vw, 44px);
  font-weight: 700;
  line-height: 1.15;
  color: #fff;
  margin: 0 0 20px;
  letter-spacing: -.02em;
}

.avi-db-preview__title em {
  font-style: normal;
  background: linear-gradient(90deg, #6B46E8, #1DB88A);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.avi-db-preview__desc {
  font-size: 17px;
  line-height: 1.7;
  color: rgba(255,255,255,.62);
  margin: 0 0 28px;
  max-width: 440px;
}

.avi-db-preview__list {
  list-style: none;
  margin: 0 0 36px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.avi-db-preview__list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  color: rgba(255,255,255,.78);
  line-height: 1.4;
}

.avi-db-preview__check {
  color: #1DB88A;
  font-size: 13px;
  flex-shrink: 0;
}

.avi-db-preview__cta-wrap {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}

.avi-db-preview__cta {
  display: inline-flex;
  align-items: center;
  padding: 13px 26px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: all .2s ease;
}

.avi-db-preview__cta--primary {
  background: #6B46E8;
  color: #fff;
  box-shadow: 0 4px 20px rgba(107,70,232,.35);
}

.avi-db-preview__cta--primary:hover {
  background: #7d5af0;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(107,70,232,.5);
  color: #fff;
}

.avi-db-preview__cta--ghost {
  color: rgba(255,255,255,.65);
  border: 1px solid rgba(255,255,255,.15);
  background: transparent;
}

.avi-db-preview__cta--ghost:hover {
  color: #fff;
  border-color: rgba(255,255,255,.35);
  background: rgba(255,255,255,.05);
}

/* ── Visual / Frame ── */
.avi-db-preview__visual {
  position: relative;
}

.avi-db-preview__frame {
  position: relative;
  background: #0e0e22;
  border: 1px solid rgba(107,70,232,.28);
  border-radius: 14px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(255,255,255,.04),
    0 30px 70px rgba(0,0,0,.55),
    0 0 60px rgba(107,70,232,.12);
  transform: perspective(1000px) rotateY(-3deg) rotateX(1.5deg);
  transition: transform .4s ease, box-shadow .4s ease;
}

.avi-db-preview__frame:hover {
  transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
  box-shadow:
    0 0 0 1px rgba(255,255,255,.06),
    0 40px 90px rgba(0,0,0,.6),
    0 0 80px rgba(107,70,232,.2);
}

/* Barre navigateur */
.avi-db-preview__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: #13132a;
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.avi-db-preview__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.avi-db-preview__dot:nth-child(1) { background: #ff5f57; }
.avi-db-preview__dot:nth-child(2) { background: #ffbd2e; }
.avi-db-preview__dot:nth-child(3) { background: #28c840; }

.avi-db-preview__url {
  margin-left: 10px;
  font-family: 'DM Mono', monospace;
  font-size: 10.5px;
  color: rgba(255,255,255,.3);
  letter-spacing: .04em;
}

.avi-db-preview__screen {
  display: block;
  line-height: 0;
}

.avi-db-preview__img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Glows */
.avi-db-preview__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
  z-index: -1;
}

.avi-db-preview__glow--primary {
  width: 280px;
  height: 280px;
  background: rgba(107,70,232,.18);
  top: -40px;
  right: -40px;
}

.avi-db-preview__glow--accent {
  width: 200px;
  height: 200px;
  background: rgba(29,184,138,.12);
  bottom: 20px;
  left: -20px;
}

/* Badge */
.avi-db-preview__badge {
  position: absolute;
  bottom: -16px;
  left: 28px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  background: rgba(10,10,28,.92);
  border: 1px solid rgba(29,184,138,.3);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 500;
  color: rgba(255,255,255,.8);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(0,0,0,.4);
}

.avi-db-preview__badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #1DB88A;
  animation: avi-pulse-badge 2s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes avi-pulse-badge {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .5; transform: scale(1.3); }
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .avi-db-preview__inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .avi-db-preview__frame {
    transform: none;
  }

  .avi-db-preview__frame:hover {
    transform: none;
  }

  .avi-db-preview__title {
    font-size: 28px;
  }

  .avi-db-preview {
    padding: 64px 20px;
  }
}

@media (max-width: 480px) {
  .avi-db-preview {
    padding: 48px 16px;
  }
  .avi-db-preview__inner {
    gap: 36px;
  }
}
</style>
