<?php
/**
 * Grille tarifaire B2C / B2B — shortcode [avision_pricing_tables].
 *
 * Variables attendues (définies par avision_render_pricing_tables_shortcode) :
 * - string $avi_pricing_url_premium URL checkout / landing Premium (filtrable).
 * - string $avi_pricing_url_agency  URL checkout / landing Agency (filtrable).
 * - string $avi_pricing_extra_class Classes additionnelles sur le wrapper (sanitisées).
 *
 * @package Avision
 */

if ( ! defined( 'ABSPATH' ) ) {
	exit;
}

$avi_pricing_url_premium = isset( $avi_pricing_url_premium ) ? (string) $avi_pricing_url_premium : ( defined( 'AVISION_PRICING_STRIPE_URL_PREMIUM' ) ? AVISION_PRICING_STRIPE_URL_PREMIUM : '#' );
$avi_pricing_url_agency  = isset( $avi_pricing_url_agency ) ? (string) $avi_pricing_url_agency : ( defined( 'AVISION_PRICING_STRIPE_URL_AGENCY' ) ? AVISION_PRICING_STRIPE_URL_AGENCY : '#' );
$avi_pricing_extra_class = isset( $avi_pricing_extra_class ) ? (string) $avi_pricing_extra_class : '';
?>
<div class="avi-pricing avi-pricing--tables<?php echo $avi_pricing_extra_class !== '' ? ' ' . esc_attr( $avi_pricing_extra_class ) : ''; ?>">
	<div class="avi-pricing__grid" role="list">
		<article class="avi-pricing__card avi-pricing__card--premium" role="listitem">
			<p class="avi-pricing__eyebrow"><?php echo esc_html__( 'Indépendants & PME', 'avision-dashboard' ); ?></p>
			<h3 class="avi-pricing__title"><?php echo esc_html__( 'Premium SEO', 'avision-dashboard' ); ?></h3>
			<p class="avi-pricing__pitch"><?php echo esc_html__( 'Une fiche Google, un coach dédié et un radar de visibilité locale pour dominer votre quartier.', 'avision-dashboard' ); ?></p>
			<div class="avi-pricing__price-row" aria-label="<?php echo esc_attr__( 'Tarif mensuel', 'avision-dashboard' ); ?>">
				<span class="avi-pricing__amount">49</span>
				<span class="avi-pricing__currency">€</span>
				<span class="avi-pricing__period"><?php echo esc_html__( '/ mois', 'avision-dashboard' ); ?></span>
			</div>
			<ul class="avi-pricing__list">
				<li><?php echo esc_html__( '1 établissement / fiche Google Business Profile', 'avision-dashboard' ); ?></li>
				<li><?php echo esc_html__( 'Parcours guidé & Radar de croissance locale', 'avision-dashboard' ); ?></li>
				<li><?php echo esc_html__( 'Coach AVI (conseils Maps / fiche)', 'avision-dashboard' ); ?></li>
				<li><?php echo esc_html__( 'Mode Gardien & signaux clés de la fiche', 'avision-dashboard' ); ?></li>
			</ul>
			<a class="avi-pricing__cta avi-btn-checkout-premium" href="<?php echo esc_url( $avi_pricing_url_premium ); ?>">
				<?php echo esc_html__( 'Choisir Premium', 'avision-dashboard' ); ?>
			</a>
		</article>

		<article class="avi-pricing__card avi-pricing__card--agency" role="listitem">
			<span class="avi-pricing__badge" aria-hidden="true"><?php echo esc_html__( 'Le plus demandé', 'avision-dashboard' ); ?></span>
			<p class="avi-pricing__eyebrow"><?php echo esc_html__( 'Agences & multi-sites', 'avision-dashboard' ); ?></p>
			<h3 class="avi-pricing__title"><?php echo esc_html__( 'Agency / Helicopter', 'avision-dashboard' ); ?></h3>
			<p class="avi-pricing__pitch"><?php echo esc_html__( 'Pilotez plusieurs fiches clients depuis un cockpit pensé pour les équipes et la récurrence.', 'avision-dashboard' ); ?></p>
			<div class="avi-pricing__price-row" aria-label="<?php echo esc_attr__( 'Tarif mensuel', 'avision-dashboard' ); ?>">
				<span class="avi-pricing__amount">149</span>
				<span class="avi-pricing__currency">€</span>
				<span class="avi-pricing__period"><?php echo esc_html__( '/ mois', 'avision-dashboard' ); ?></span>
			</div>
			<ul class="avi-pricing__list">
				<li><?php echo esc_html__( 'Plusieurs fiches & vue portefeuille', 'avision-dashboard' ); ?></li>
				<li><?php echo esc_html__( 'Workflows agence (onboarding, suivi)', 'avision-dashboard' ); ?></li>
				<li><?php echo esc_html__( 'Priorité sur les évolutions produit', 'avision-dashboard' ); ?></li>
				<li><?php echo esc_html__( 'Accès cockpit agence dédié', 'avision-dashboard' ); ?></li>
			</ul>
			<a class="avi-pricing__cta avi-btn-checkout-agency" href="<?php echo esc_url( $avi_pricing_url_agency ); ?>">
				<?php echo esc_html__( 'Passer en Agency', 'avision-dashboard' ); ?>
			</a>
		</article>
	</div>
</div>
