{# BASE LOAD #}
{% extends 'base.html.twig' %}
{# TITLE TOP PAGE #}
{% block title %}CPI | Contact{% endblock %}
{# CSS #}
{% block stylesheet %}
<meta property="og:image" content="{{asset('img/industrialisation/expertise.png')}}">
<link rel="stylesheet" href="{{ asset('css/contact.css')}}">
{% endblock %}
{# BODY HOME PAGE #}
{% block body %}
<main>
<div class="accueil">
<div class="container text-light">
<div class="row pt-5" >
<div class="col-12">
<div class="row">
<h1 data-aos="fade-right" data-aos-duration="1000" class="opensans_bold_50">Contact</h1>
<div class="col-6">
<div class="traitBlanc"></div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="accueil2" style="padding-bottom:40px;">
<div class="container">
<div class="row">
<div class="col-12">
<div class="row py-5" >
<h1 data-aos="fade-right" data-aos-duration="1000" class="opensans_bold_40" style="color:#0048FF;">{% trans %}contact-sous-titre{% endtrans %}{% if app.user %}<a href="{{path('app_dictionnaire_edit',{'id':119})}}"><button type="button" style="margin-left:10px" class="btn btn-warning"><i class="fa-solid fa-pen"></i></button></a>{% endif %}</h1>
<br>
{% if app.request.get('send') == 'success' %}
<h4 style="color:green">{% if app.request.locale == 'fr' %}Votre message a bien été envoyé{% else %}Your message has been sent{% endif %}</h4>
{% endif %}
<form class="py-5" action="{{path('sendFormContact')}}" method="POST">
<div class="formulaire">
<div class="row my-4">
<div data-aos="fade-up" data-aos-duration="1000" class="col">
<p><b>{% trans %}form-nom{% endtrans %}{% if app.user %}<a href="{{path('app_dictionnaire_edit',{'id':97})}}"><button type="button" style="margin-left:10px" class="btn btn-warning"><i class="fa-solid fa-pen"></i></button></a>{% endif %}</b> <span style="color:red;">*</span></p>
<input type="text" id="nom" name="nom" required>
</div>
<div data-aos="fade-up" data-aos-duration="1500" class="col">
<p><b>{% trans %}form-prenom{% endtrans %}{% if app.user %}<a href="{{path('app_dictionnaire_edit',{'id':98})}}"><button type="button" style="margin-left:10px" class="btn btn-warning"><i class="fa-solid fa-pen"></i></button></a>{% endif %}</b> <span style="color:red;">*</span></p>
<input type="text" id="prenom" name="prenom" required>
</div>
</div>
<div class="row my-4">
<div data-aos="fade-up" data-aos-duration="1000" class=" col-12">
<p><b>{% trans %}form-societe{% endtrans %}{% if app.user %}<a href="{{path('app_dictionnaire_edit',{'id':99})}}"><button type="button" style="margin-left:10px" class="btn btn-warning"><i class="fa-solid fa-pen"></i></button></a>{% endif %}</b> <span style="color:red;">*</span></p>
<input type="text" id="societe" name="societe" required>
</div>
</div>
<div class="row my-4">
<div data-aos="fade-up" data-aos-duration="1000" class="col-md-2 col-6">
<p><b>{% trans %}form-bp{% endtrans %}{% if app.user %}<a href="{{path('app_dictionnaire_edit',{'id':100})}}"><button type="button" style="margin-left:10px" class="btn btn-warning"><i class="fa-solid fa-pen"></i></button></a>{% endif %}</b></p>
<input type="text" id="bp" name="bp">
</div>
<div data-aos="fade-up" data-aos-duration="1500" class="col-md-5 col-6">
<p><b>{% trans %}form-batiment{% endtrans %}{% if app.user %}<a href="{{path('app_dictionnaire_edit',{'id':101})}}"><button type="button" style="margin-left:10px" class="btn btn-warning"><i class="fa-solid fa-pen"></i></button></a>{% endif %}</b></p>
<input type="text" id="batiment" name="batiment">
</div>
<div data-aos="fade-up" data-aos-duration="1000"class="col-md-5 col-12">
<p><b>{% trans %}form-cp{% endtrans %}{% if app.user %}<a href="{{path('app_dictionnaire_edit',{'id':102})}}"><button type="button" style="margin-left:10px" class="btn btn-warning"><i class="fa-solid fa-pen"></i></button></a>{% endif %}</b></p>
<input type="text" id="cp" name="cp">
</div>
</div>
<div class="row my-4">
<div data-aos="fade-up" data-aos-duration="1500" class="col-md-6 col-8">
<p><b>{% trans %}form-ville{% endtrans %}{% if app.user %}<a href="{{path('app_dictionnaire_edit',{'id':103})}}"><button type="button" style="margin-left:10px" class="btn btn-warning"><i class="fa-solid fa-pen"></i></button></a>{% endif %}</b> <span style="color:red;">*</span></p>
<input type="text" id="ville" name="ville" required>
</div>
<div data-aos="fade-up" data-aos-duration="2000" class="col-md-6 col-12">
<p><b>{% trans %}form-Pays{% endtrans %}{% if app.user %}<a href="{{path('app_dictionnaire_edit',{'id':104})}}"><button type="button" style="margin-left:10px" class="btn btn-warning"><i class="fa-solid fa-pen"></i></button></a>{% endif %}</b><span style="color:red;">*</span></p>
<input type="text" id="pays" name="pays" required>
</div>
</div>
<div class="row mb-4">
<div data-aos="fade-up" data-aos-duration="1000" class="col-md-6 col-12">
<p><b>{% trans %}form-email{% endtrans %}{% if app.user %}<a href="{{path('app_dictionnaire_edit',{'id':105})}}"><button type="button" style="margin-left:10px" class="btn btn-warning"><i class="fa-solid fa-pen"></i></button></a>{% endif %}</b><span style="color:red;">*</span></p>
<input type="email" id="email" name="email" required>
</div>
<div data-aos="fade-up" data-aos-duration="1500" class="col-md-6 col-12">
<p><b>{% trans %}form-tel{% endtrans %}{% if app.user %}<a href="{{path('app_dictionnaire_edit',{'id':106})}}"><button type="button" style="margin-left:10px" class="btn btn-warning"><i class="fa-solid fa-pen"></i></button></a>{% endif %}</b> <span style="color:red;">*</span></p>
<input type="text" id="telephone" name="telephone" required>
</div>
</div>
<div class="row mb-4">
<div data-aos="fade-up" data-aos-duration="1000" class="col-12">
<p><b>{% trans %}form-message{% endtrans %}{% if app.user %}<a href="{{path('app_dictionnaire_edit',{'id':107})}}"><button type="button" style="margin-left:10px" class="btn btn-warning"><i class="fa-solid fa-pen"></i></button></a>{% endif %}</b></p>
<textarea id="message" name="message"></textarea>
</div>
</div>
</div>
<div class="d-flex flex-md-row flex-column">
<div class="col-md-6 col-12" data-aos="fade-up" data-aos-duration="1000">
<div class="g-recaptcha" data-sitekey="6Lf0RGEnAAAAAJcwFd-oTX1mAE4Rqr7ENpEHL70L"></div>
<div class="error-message">
{% if app.request.query.has('recaptcha_error') %}
<span style="color: red;">
{% if app.request.locale == 'fr' %}La vérification reCAPTCHA a échoué. Veuillez réessayer.{% else %}The reCAPTCHA check failed. Please try again.{% endif %}
</span>
{% endif %}
</div>
</div>
<div class="col-md-6 col-12 " data-aos="fade-up" data-aos-duration="1000" data-aos="fade-up" data-aos-duration="1000" >
<div class="form-check">
<input class="form-check-input" type="checkbox" id="flexCheckDefault" name="flexCheckDefault" required>
<label class="form-check-label" for="flexCheckDefault">
{% trans %}form-condition1{% endtrans %} {% if app.user %}<a href="{{path('app_dictionnaire_edit',{'id':108})}}"><button type="button" style="margin-left:10px;margin-right:10px" class="btn btn-warning"><i class="fa-solid fa-pen"></i></button></a>{% endif %}<a href="{{ path('politique',{'locale':app.request.locale})}}" target="_blank">{% trans %}form-condition2{% endtrans %}{% if app.user %}<a href="{{path('app_dictionnaire_edit',{'id':109})}}"><button type="button" style="margin-left:10px" class="btn btn-warning"><i class="fa-solid fa-pen"></i></button></a>{% endif %}</a>
</label>
</div>
</div>
</div>
<div class="col-12 ">
<div class="bouton-page-contact">
<button id="envoyer" type="submit" name="envoyer"> {% if app.request.locale == 'fr' %}Envoyer{% else %}Send{% endif %}</button>
</div>
</div>
</form>
<!-- Google reCAPTCHA script -->
<script src="https://www.google.com/recaptcha/api.js" async defer></script>
<script src="https://www.google.com/recaptcha/api.js?hl={{ app.request.locale == 'fr' ? 'fr' : 'en' }}"></script>
</div>
<div class="row">
{% for res in adresses %}
<div class="col-lg-6">
<div class="titre">
<p data-aos="fade-right" data-aos-duration="1000" > <b>{{res.nom}}</b> </p>
<img class="img-fluid" src="{{asset('img/contact/Ligne 25.svg')}}" alt="">
</div>
<img data-aos="fade-up" data-aos-duration="1000" class="img-fluid w-100" src="{{asset('uploads/adresses/'~res.image)}}" style="border-radius:20px" alt="{{res.nom}}">
<div data-aos="fade-up" data-aos-duration="1000" class="row py-5 noBottom">
<div class="col-12 col-lg-8">
<div class="map">
{{res.map|raw}}
</div>
</div>
<div class="col-12 col-lg-4">
<p style="line-height:24px;"> {% if app.request.locale == 'en' %}{{res.texte1En|raw}}{% else %}{{res.texte1Fr|raw}}{% endif %} </p>
</div>
</div>
<hr>
<div class="row">
<div class="infos">
<p data-aos="fade-up" data-aos-duration="1000" >{% if app.request.locale == 'en' %}{{res.texte2En|raw}}{% else %}{{res.texte2Fr|raw}}{% endif %}</p>
</div>
</div>
</div>
{% endfor %}
{% if app.user %}
<a href="{{path('app_adresses_index')}}"><button class="btn btn-success">Gestion des adresses</button><br><br></a>
{% endif %}
<div class="row" style="display:none;">
<div class="row py-5">
<h1>{% trans %}contact-sous-titre2{% endtrans %}{% if app.user %}<a href="{{path('app_dictionnaire_edit',{'id':120})}}"><button type="button" style="margin-left:10px" class="btn btn-warning"><i class="fa-solid fa-pen"></i></button></a>{% endif %}</h1>
</div>
<div class="col-4 col-lg-3">
<div class="carte">
<div class="image-carte">
<img class="img-fluid" src="img/contact/Contact.png" alt="">
</div>
<div class="texte-carte">
<p>Pascale Dine</p>
</div>
</div>
</div>
<div class="col-4 col-lg-3">
<div class="carte">
<div class="image-carte">
<img class="img-fluid" src="img/contact/Contact.png" alt="">
</div>
<div class="texte-carte">
<p>Alexandra Muser</p>
</div>
</div>
</div>
<div class="col-4 col-lg-3">
<div class="carte">
<div class="image-carte">
<img class="img-fluid" src="img/contact/Contact.png" alt="">
</div>
<div class="texte-carte">
<p>Mickael Bazelaire</p>
</div>
</div>
</div>
<div class="col-4 col-lg-3">
<div class="carte">
<div class="image-carte">
<img class="img-fluid" src="img/contact/Contact.png" alt="">
</div>
<div class="texte-carte">
<p>Julien Zins</p>
</div>
</div>
</div>
<div class="col-4 col-lg-3">
<div class="carte">
<div class="image-carte">
<img class="img-fluid" src="img/contact/Contact.png" alt="">
</div>
<div class="texte-carte">
<p>Caroline Delesalle</p>
</div>
</div>
</div>
</div>
{% if app.user %}
<a href="{{path('app_teams_index')}}"><button class="btn btn-warning">Gestion des membres de l'équipe</button></a>
{% endif %}
</div>
</div>
</div>
</div>
</div>
{# LES COLLABORATEURS - CSS LIGNE 120 DANS CONTACT.CSS #}
<section class="section-collaborateur" style="margin-bottom:100px">
<div class="container">
<div class="row">
<div class="col-12 col-xl-5">
<h1 data-aos="fade-right" data-aos-duration="1000" class="opensans_bold_40">{% trans %}contact-collaborateur{% endtrans %} {% if app.user %}<a href="{{path('app_dictionnaire_edit',{'id':127})}}"><button type="button" style="margin-left:10px" class="btn btn-warning"><i class="fa-solid fa-pen"></i></button></a>{% endif %}</h1>
</div>
</div>
<div class="row">
{% for res in teams %}
<div class="col-xl-3 col-12 col-md-6 carte-collaborateur">
<div class="carte-image" style="background: url('{{ asset('uploads/teams/'~res.photo) }}');">
<div class="carte-texte d-flex align-items-center justify-content-center">
<p>{% if app.request.locale == 'fr' %}{{res.titreFr|raw}}{% else %}{{res.titreEn|raw}}{% endif %}</p>
</div>
</div>
<p>{{res.prenom}} {{res.nom}}</p>
</div>
{% endfor %}
</div>
</div>
<script>
const carteImages = document.querySelectorAll('.carte-image');
carteImages.forEach(carteImage => {
// Fonction pour gérer l'affichage du texte
const toggleCarteTexte = () => {
const carteTexte = carteImage.querySelector('.carte-texte');
if (carteTexte.style.opacity === '0.7') {
carteTexte.style.opacity = '0';
carteTexte.style.transform = 'translateY(20px)';
} else {
carteTexte.style.opacity = '0.7';
carteTexte.style.transform = 'translateY(0)';
}
};
// Gestion des événements pour les ordinateurs
carteImage.addEventListener('mouseenter', () => {
const carteTexte = carteImage.querySelector('.carte-texte');
carteTexte.style.opacity = '0.7';
carteTexte.style.transform = 'translateY(0)';
});
carteImage.addEventListener('mouseleave', () => {
const carteTexte = carteImage.querySelector('.carte-texte');
carteTexte.style.opacity = '0';
carteTexte.style.transform = 'translateY(20px)';
});
// Gestion des événements pour les appareils tactiles
carteImage.addEventListener('touchend', (e) => {
e.preventDefault(); // Empêche le comportement par défaut du navigateur
toggleCarteTexte();
});
});
</script>
``
</section>
</main>
{% endblock %}