<xsl:template match="client">
	<div class="page__wrap page__wrap__{$ccf/@id}" data-js="page-{$ccf/@id}" data-circle-class="Circle_canvas">
		<!-- sksmooth attributes -->
		<xsl:attribute name="data-sksmooth">page-content</xsl:attribute>
		<xsl:attribute name="data-model"><xsl:value-of select="$ccf/@model"/></xsl:attribute>
		<xsl:attribute name="data-uid"><xsl:value-of select="$ccf/@uid"/></xsl:attribute>
		<!-- /sksmooth attributes -->
		<section class="mw client__bloc__a">
			<h2 class="titre-a client__bloc__a__titre"><xsl:value-of select="$ccf/@name"/></h2>
			<div class="titre-a client__bloc__a__sstitre"><xsl:value-of select="$ccf/text/item/sstitre"/></div>
			<div class="txt client__bloc__a__sssstitre">
				<xsl:apply-templates select="$ccf/text/item/sssstitre/node()"/>
			</div>
			<div class="txt client__bloc__a__txt">
				<xsl:apply-templates select="$ccf/text/item/txt/node()"/>
			</div>
		</section>
		<xsl:if test="$ccf/text/item/bandosml/i[1]">
			<section class="client__bloc__b">
				<div class="client__bloc__b__img" style="background-image:url({concat($pc, $ccf/text/item/bandosml/i[1])});">
					<img src="{concat($pc, $ccf/text/item/bandosml/i[1])}" class="inv" data-asset="page"/>
					<xsl:if test="$ccf/text/item/bandosmllogo/i[1]">
						<div class="client__bloc__b__logo" style="background-image:url({concat($pc, $ccf/text/item/bandosmllogo/i[1])});"></div>
						<img src="{concat($pc, $ccf/text/item/bandosmllogo/i[1])}" class="inv" data-asset="page"/>
					</xsl:if>
				</div>
			</section>
		</xsl:if>
		<section class="mw client__bloc__c">
			<xsl:apply-templates select="$ccf/text/item/parags/subitem" mode="client-media"/>
		</section>
		<div class="sep"></div>
		<section>
			<div class="mw home__bloc__e">
				<h2 class="titre-a home__bloc__e__titre"><xsl:apply-templates select="$ccf/../text/item/titreproj/node()"/></h2>
				<ul class="clients__bloc__a__items">
					<xsl:apply-templates select="$ccf/text/item/meaproj/si" mode="homemea"/>
					<!-- <xsl:apply-templates select="$ccf//cat" mode="clients-items"/> -->
				</ul>
				<div class="clients__grille__cta__wrap">
					<a href="{$cr//cat[@id='clients']/@mainwu}" class="clients__grille__cta">PLUS</a>
				</div>
			</div>
		</section>
	</div> <!-- page__wrap -->
</xsl:template>

<xsl:template match="subitem" mode="client-media">
	<xsl:choose>
		<xsl:when test="./@model = 'visuel'">
			<div class="client__bloc__c__media client__bloc__c__img">
				<img src="{concat($pc, ./paragsphotos/i[1])}" class="client__bloc__c__img__img" data-asset="page"/>
			</div>
		</xsl:when>
		<xsl:otherwise>
			<div class="client__bloc__c__media client__bloc__c__vid">
				<xsl:apply-templates select="php:function('xslVidpro', ./paragsvideo/v, false, 920, 518)/node()"/>
			</div>
		</xsl:otherwise>
	</xsl:choose>
</xsl:template>



<xsl:template match="subitem" mode="clients-item">

	<li class="about__bloc__b__item clients__item">
		<xsl:value-of select="./clientsnom"/>
	</li>

</xsl:template>

<xsl:template match="subitem" mode="presses-item">

	<li>
		<article itemscope="itemscope" itemtype="http://schema.org/Article">
			<a href="{./pressesurl}" target="_blank" class="about__bloc__c__item news__item" itemprop="url">
				<h3 class="news__titre" itemprop="headline">
					<xsl:apply-templates select="./pressetitre/node()"/>
				</h3>
				<!-- <div class="news__thumb">
					<img src="{concat($ci,'rcm_270_120/',./pressethumb/i[1])}" data-asset="page"/>
				</div> -->
				<div class="news__sstitre" itemprop="publisher" itemscope="itemscope" itemtype="http://schema.org/Organization">
					<span itemprop="name"><xsl:value-of select="./pressesstitre"/></span>
				</div>
				<div class="news__date">
					<span itemprop="datePublished"><xsl:value-of select="./pressesdate"/></span>
				</div>
			</a>
		</article>
	</li>

</xsl:template>

<xsl:template match="i" mode="prog-thumbs-item">

	<img src="{concat($pc, .)}" data-asset="page"/>

</xsl:template>
