<?php
// AVI_VERSION: 1.0.0 | section-dashboard-preview-btoc.php | 2026-04-30
// Section : Dashboard previews B2C (2 images) — à inclure dans local-business.php
// Images requises :
//   avision-dashboard/assets/images/premium-dashboard-logo.png
//   avision-dashboard/assets/images/growth-radar-chart.png
// Placement recommandé : après la section hero/features, avant la CTA finale
//
// Pour ajouter une image future → dupliquer un bloc .avi-db-preview
// et changer la classe --reverse / le contenu / l'image
?>

<!-- ═══ Section 1 : Dashboard principal — texte gauche, image droite ═══ -->
<section class="avi-db-preview" aria-label="Premium dashboard preview">
  <div class="avi-db-preview__inner">

    <div class="avi-db-preview__text">
      <span class="avi-db-preview__eyebrow">Your command center</span>
      <h2 class="avi-db-preview__title">
        Everything your<br>
        <em>local presence needs</em>
      </h2>
      <p class="avi-db-preview__desc">
        Your personalized dashboard gives you a clear view of your Google Business
        visibility score, active automations, and every action taken on your behalf —
        in real time.
      </p>
      <ul class="avi-db-preview__list">
        <li>
          <span class="avi-db-preview__check">✦</span>
          Visibility score tracked daily against competitors
        </li>
        <li>
          <span class="avi-db-preview__check">✦</span>
          Guardian monitors and responds to reviews automatically
        </li>
        <li>
          <span class="avi-db-preview__check">✦</span>
          Full activity log — nothing happens without you knowing
        </li>
      </ul>
      <div class="avi-db-preview__cta-wrap">
        <a href="/local-audit/" class="avi-db-preview__cta avi-db-preview__cta--primary">
          Audit my business free
        </a>
        <a href="/demo-dashboard/" class="avi-db-preview__cta avi-db-preview__cta--ghost">
          See live demo →
        </a>
      </div>
    </div>

    <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/premium-dashboard</span>
        </div>
        <div class="avi-db-preview__screen">
          <img
            src="<?php echo esc_url( AVISION_PLUGIN_URL . 'assets/images/premium-dashboard-logo.png' ); ?>"
            alt="Avision Premium Dashboard — local business visibility and Guardian automation"
            class="avi-db-preview__img"
            loading="lazy"
            width="900"
            height="560"
          />
        </div>
      </div>
      <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>
      <div class="avi-db-preview__badge" aria-label="Live product">
        <span class="avi-db-preview__badge-dot"></span>
        Live dashboard
      </div>
    </div>

  </div>
</section>

<!-- ═══ Section 2 : Radar de croissance — image gauche, texte droite ═══ -->
<section class="avi-db-preview avi-db-preview--reverse avi-db-preview--alt-bg" aria-label="Growth Radar preview">
  <div class="avi-db-preview__inner">

    <!-- Visual à gauche (via CSS order) -->
    <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 · Growth Radar</span>
        </div>
        <div class="avi-db-preview__screen">
          <img
            src="<?php echo esc_url( AVISION_PLUGIN_URL . 'assets/images/growth-radar-chart.png' ); ?>"
            alt="Avision Growth Radar — keyword ranking chart and local SEO performance"
            class="avi-db-preview__img"
            loading="lazy"
            width="900"
            height="560"
          />
        </div>
      </div>
      <div class="avi-db-preview__glow avi-db-preview__glow--accent" aria-hidden="true" style="top:-30px;left:-30px;right:auto;"></div>
      <div class="avi-db-preview__glow avi-db-preview__glow--primary" aria-hidden="true" style="bottom:20px;right:-20px;left:auto;"></div>
      <div class="avi-db-preview__badge avi-db-preview__badge--right" aria-label="Radar active">
        <span class="avi-db-preview__badge-dot avi-db-preview__badge-dot--radar"></span>
        Radar scanning
      </div>
    </div>

    <!-- Texte à droite -->
    <div class="avi-db-preview__text">
      <span class="avi-db-preview__eyebrow avi-db-preview__eyebrow--radar">Growth Radar</span>
      <h2 class="avi-db-preview__title">
        Know exactly where<br>
        <em class="avi-db-preview__title-em--radar">you rank locally</em>
      </h2>
      <p class="avi-db-preview__desc">
        Track up to 75 keywords per week. See which searches drive foot traffic to
        your location, spot missed opportunities, and watch your position climb as
        AVI optimizes your profile.
      </p>
      <ul class="avi-db-preview__list">
        <li>
          <span class="avi-db-preview__check avi-db-preview__check--radar">✦</span>
          Weekly keyword position tracking
        </li>
        <li>
          <span class="avi-db-preview__check avi-db-preview__check--radar">✦</span>
          Competitor gap analysis included
        </li>
        <li>
          <span class="avi-db-preview__check avi-db-preview__check--radar">✦</span>
          Automated keyword suggestions based on your sector
        </li>
      </ul>
      <div class="avi-db-preview__cta-wrap">
        <a href="/local-audit/" class="avi-db-preview__cta avi-db-preview__cta--primary avi-db-preview__cta--radar">
          Start free audit
        </a>
        <a href="/pricing/" class="avi-db-preview__cta avi-db-preview__cta--ghost">
          View Radar plans →
        </a>
      </div>
    </div>

  </div>
</section>

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

.avi-db-preview--alt-bg {
  background: #08081A;
}

/* Grille subtile */
.avi-db-preview::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(107,70,232,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(107,70,232,.045) 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;
}

/* Section inversée : visual à gauche */
.avi-db-preview--reverse .avi-db-preview__inner {
  direction: rtl;
}
.avi-db-preview--reverse .avi-db-preview__inner > * {
  direction: ltr;
}

/* ── 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__eyebrow--radar {
  color: #6B46E8;
  border-color: rgba(107,70,232,.3);
  background: rgba(107,70,232,.08);
}

.avi-db-preview__title {
  font-family: 'Sora', 'Segoe UI', sans-serif;
  font-size: clamp(26px, 3vw, 42px);
  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__title-em--radar {
  background: linear-gradient(90deg, #1DB88A, #6B46E8) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
}

.avi-db-preview__desc {
  font-size: 16.5px;
  line-height: 1.75;
  color: rgba(255,255,255,.6);
  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,.75);
}

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

.avi-db-preview__check--radar {
  color: #6B46E8;
}

.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: #1DB88A;
  color: #fff;
  box-shadow: 0 4px 20px rgba(29,184,138,.3);
}

.avi-db-preview__cta--primary:hover {
  background: #22d49f;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(29,184,138,.45);
  color: #fff;
}

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

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

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

.avi-db-preview__cta--ghost:hover {
  color: #fff;
  border-color: rgba(255,255,255,.3);
  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,.1);
  transform: perspective(1000px) rotateY(-3deg) rotateX(1.5deg);
  transition: transform .45s ease, box-shadow .45s ease;
}

.avi-db-preview--reverse .avi-db-preview__frame {
  transform: perspective(1000px) rotateY(3deg) rotateX(1.5deg);
}

.avi-db-preview__frame:hover,
.avi-db-preview--reverse .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,.18);
}

.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,.28);
  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: 260px;
  height: 260px;
  background: rgba(107,70,232,.16);
  top: -40px;
  right: -40px;
}

.avi-db-preview__glow--accent {
  width: 200px;
  height: 200px;
  background: rgba(29,184,138,.11);
  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--right {
  left: auto;
  right: 28px;
}

.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;
}

.avi-db-preview__badge-dot--radar {
  background: #6B46E8;
  animation-delay: .5s;
}

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

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

  /* Remettre l'ordre normal sur mobile */
  .avi-db-preview--reverse .avi-db-preview__inner {
    direction: ltr;
  }

  /* Sur mobile, texte toujours en premier */
  .avi-db-preview--reverse .avi-db-preview__text {
    order: -1;
  }

  .avi-db-preview__frame,
  .avi-db-preview--reverse .avi-db-preview__frame {
    transform: none;
  }

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

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

  .avi-db-preview__badge--right {
    right: auto;
    left: 28px;
  }
}
</style>
