{% extends 'base.html.twig' %}
{% block title %}{{ setting.siteName }} : notre différence{% endblock %}
{% block body %}
{% for diff in diffs %}
<div class="hoverimage mt-4" style="position: relative; height: clamp(142px, 28vw, 75%);">
<div class="offices-color container-fluid mt-5" data-aos="fade-right" data-aos-duration="2500" style="position: absolute; height: 100%; width: 100%; background-size: cover; background-repeat: no-repeat; background-position: center; background-image: url('{{ asset('assets/img/difference/hero/' ~ diff.heroImagebleu)|imagine_filter('herodifference') }}')">
</div>
<div class="offices-color nodisplay mt-5" style="position: absolute; height: 100%; width: 100%; background-size: cover; background-repeat: no-repeat; background-position: center; background-image: url('{{ asset('assets/img/difference/hero/' ~ diff.heroImage)|imagine_filter('herodifference') }}')">
</div>
</div>
{# <div class="offices-color" data-aos="flip-left" data-aos-duration="2500" style="position: absolute; width: 100%; height: 100%; background-size: cover; background-repeat: no-repeat; background-position: center; background-image: linear-gradient(to right bottom, #007bb05d, #007cb05d), url('{{ asset('assets/img/offices/' ~ office.image)|imagine_filter('offices') }}')">
</div>
<div class="offices-color nodisplay" style="position: absolute; width: 100%; height: 100%; background-size: cover; background-repeat: no-repeat; background-position: center; background-image: url('{{ asset('assets/img/offices/' ~ office.image)|imagine_filter('offices') }}')">
</div> #}
<section class="container py-4 mt-5">
<div class="row pt-3">
<div class="col">
{# Breadcrumbs #}
<div class="row">
<div class="col small">
<nav style="--bs-breadcrumb-divider: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8'%3E%3Cpath d='M2.5 0L1 1.5 3.5 4 1 6.5 2.5 8l4-4-4-4z' fill='%236c757d'/%3E%3C/svg%3E");"
aria-label="breadcrumb">
<ol class="breadcrumb small">
<li class="breadcrumb-item"><a href="{{ path('app_home') }}"
class="text-decoration-none text-dark">Accueil</a></li>
<li class="breadcrumb-item active" aria-current="page">Notre différence</li>
</ol>
</nav>
</div>
</div>
<div class="row mt-3">
<div class="col text-center">
<h1 style="line-height: 0.9;" class="color1 fw-700 text-uppercase" data-aos="fade-down" data-aos-duration="2000">{{ diff.titre1 }}</h1>
<h1 style="line-height: 0.9;" class="color1 fw-700 text-uppercase" data-aos="fade-down" data-aos-duration="2500">{{ diff.titre2 }}</h1>
<h1 style="line-height: 0.9;" class="color2 text-uppercase" data-aos="fade-down" data-aos-duration="2800">{{ diff.titre3 }}</h1>
</div>
</div>
<div class="row my-5">
<div class="col">
{{ diff.intro|replace({'<div>': '', '</div>': '',})|raw }}
<p class="mt-4 text-center">
<a class="button-contact-footer text-decoration-none" data-bs-toggle="collapse" href="#collapseExample" role="button" aria-expanded="false" aria-controls="collapseExample">
{{ diff.buttonContent }}
</a>
{# <button class="btn btn-primary" type="button" data-bs-toggle="collapse" data-bs-target="#collapseExample" aria-expanded="false" aria-controls="collapseExample">
Button with data-bs-target
</button> #}
</p>
<div class="collapse" id="collapseExample">
<div class="card card-body">
{{ diff.content|replace({'<div>': '', '</div>': '',})|raw }}
</div>
</div>
</div>
</div>
</div>
</div>
</section>
<div class="img-stylo">
<img src="{{ asset('assets/img/stylo.png') }}" alt="{{ setting.siteName }}">
</div>
<section class="container-fluid py-5" style="background-color: #0a4b74;">
<div class="container">
<div class="row">
<div class="col text-center">
<h1 class="text-white fw-700 text-uppercase">{{ diff.titreLabel1 }}</h1>
<h1 class="text-white fw-700 text-uppercase">{{ diff.titreLabel2 }}</h1>
</div>
</div>
<div class="row mt-5">
<div class="col text-center grayscale-img zoom-img">
{% for label in labels %}
<a href="{{ label.url }}" class="text-decoration-none">
<img src="{{ asset('assets/img/labels/' ~ label.image ) }}" alt="{{ label.titre }}" class="img-fluid" style="width: 100px;
height: 100px; border-radius: 50%; -webkit-border-radius:50%; -moz-border-radius:50%; margin-right: 35px; margin-top: 15px;">
</a>
{% endfor %}
</div>
</div>
<div class="row mt-5">
<div class="col">
<p style="text-align: center; color: white; padding-bottom: 20px;">
{{ diff.contentLabel|replace({
'<div>': '<span>',
'</div>': '</span>',
'<p>': '<br><br>',
'</p>': '</span>',
})|raw }}
</p>
<p class="text-center">
<a href="{{ diff.buttonUrl }}" class="text-decoration-none">
<span class="button-contact-footer text-uppercase">{{ diff.buttonText }}</span>
</a>
</p>
</div>
</div>
</div>
</section>
{% endfor %}
<script>
let imageContainer = document.querySelectorAll('.hoverimage');
imageContainer.forEach(container => {
container.addEventListener('mouseover', function() {
let bgImage = container.children[1];
if (bgImage.classList.contains('nodisplay') != false)
{
bgImage.classList.remove('nodisplay');
}
})
container.addEventListener('mouseleave', function() {
let bgImage = container.children[1];
if (bgImage.classList.contains('nodisplay') == false)
{
bgImage.classList.add('nodisplay');
}
})
})
</script>
{% endblock %}