<section class="container">
    <div class="flex flex-col gap-6 sm:gap-10 md:gap-20">
        <h2 class="bordered text-black w-fit">Toute une équipe pour vous servir</h2>
        <div class="flex flex-col gap-6">
            <h3 class="italic text-black">Recrutement</h3>
            <div class="flex flex-col md:grid grid-cols-2 gap-y-6 gap-x-12">
                <?php echo $__env->make('cabinet.card-team', ['firstname' => 'Arnaud', 'lastname' => 'Bogillot', 'title' => 'Consultant recrutement', 'tel' => '06 74 95 04 29', 'email' => 'arnaud.bogillot@lcrh.fr'], array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?>
                <?php echo $__env->make('cabinet.card-team', ['firstname' => 'Xavier', 'lastname' => 'Bogillot', 'title' => 'Consultant recrutement', 'tel' => '06 38 64 80 09', 'email' => 'xavier.bogillot@lcrh.fr'], array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?>
                <?php echo $__env->make('cabinet.card-team', ['firstname' => 'Valentine', 'lastname' => 'Minguet', 'title' => 'Consultante recrutement', 'tel' => '06 40 21 70 11', 'email' => 'valentine.minguet@lcrh.fr'], array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?>
                <?php echo $__env->make('cabinet.card-team', ['firstname' => 'Romane', 'lastname' => 'Bordier', 'title' => 'Consultante recrutement', 'tel' => '06 40 21 53 63', 'email' => 'romane.bordier@lcrh.fr'], array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?>
                <?php echo $__env->make('cabinet.card-team', ['firstname' => 'Pierre', 'lastname' => 'Gros', 'title' => 'Consultant recrutement', 'tel' => '06 02 07 73 87', 'email' => 'pierre.gros@lcrh.fr'], array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?>
            </div>
        </div>

        <div class="flex flex-col gap-6">
            <h3 class="italic text-black">Commerce</h3>
            <div class="flex flex-col md:grid grid-cols-2 gap-y-6 gap-x-12">
                <?php echo $__env->make('cabinet.card-team', ['firstname' => 'Guillaume', 'lastname' => 'Deschamps-Frilley', 'title' => 'Responsable commercial', 'tel' => '06 16 22 84 84', 'email' => 'guillaume.deschamps@lcrh.fr'], array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?>
                <?php echo $__env->make('cabinet.card-team', ['firstname' => 'Alexis', 'lastname' => 'Vergnet', 'title' => 'Ingénieur d\'affaires', 'tel' => '06 88 69 08 97', 'email' => 'alexis.vergnet@lcrh.fr'], array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?>
            </div>
        </div>
    </div>
</section>
<script>
    document.addEventListener('click', function (event) {
        const link = event.target.closest('.js-mail-reveal-copy');

        if (!link) {
            return;
        }

        const email = link.dataset.email;
        const label = link.querySelector('.js-mail-label');
        const address = link.querySelector('.js-mail-address');

        if (label) {
            label.classList.add('hidden');
        }

        if (address) {
            address.classList.remove('hidden');
        }

        copyTextToClipboard(email);

        const originalTitle = link.getAttribute('title');

        link.setAttribute('title', 'Adresse copiée');

        setTimeout(function () {
            if (originalTitle) {
                link.setAttribute('title', originalTitle);
            } else {
                link.removeAttribute('title');
            }
        }, 2000);

        // Important : on ne fait PAS preventDefault()
        // Comme ça, le mailto tente quand même d'ouvrir le client mail.
    });

    function copyTextToClipboard(text) {
        if (navigator.clipboard && window.isSecureContext) {
            navigator.clipboard.writeText(text).catch(function () {
                fallbackCopyText(text);
            });

            return;
        }

        fallbackCopyText(text);
    }

    function fallbackCopyText(text) {
        const textarea = document.createElement('textarea');
        textarea.value = text;
        textarea.setAttribute('readonly', '');
        textarea.style.position = 'fixed';
        textarea.style.left = '-9999px';
        textarea.style.top = '-9999px';

        document.body.appendChild(textarea);
        textarea.select();

        try {
            document.execCommand('copy');
        } catch (e) {}

        document.body.removeChild(textarea);
    }
</script>
<?php /**PATH /var/www/html/lcrh_v2/resources/views/cabinet/section4.blade.php ENDPATH**/ ?>