
    <div class="main__container">
        <div class="cta__container">
            <div>
                <a id="cta__url" class="cta" href="https://sentourer.ca/en/sentourer-tete-a-tete">The first date</a>
                <a class="cta" href="https://sentourer.ca/en/sentourer-la-prise-de-bec">The dustup</a>
            </div>
            <div>
                <a class="cta" href="https://sentourer.ca/en/sentourer-sortie-entre-ami-es">Going out with friends</a>
                <a class="cta" href="https://sentourer.ca/en/sentourer-entre-deux-draps">Under the sheets</a>
            </div>
        </div>
        <div class="intro__container">
            <div class="intro__content">

                <h2>Get your flags ready!</h2>
                <p>⚠️ TRIGGER WARNING : This game covers sensitive topics that might trigger or upset some people. If you need to talk to someone, don't hesitate to reach out to a close one or someone you trust.</p>
                <p>AIMS OF THE GAME : </p>
                <li>Properly identify the outbreaks of violence in the featured scenarios (red flags).</li>
                <li>Reflect on the behaviours and attitudes we should foster in order to build and nurture egalitarian relationships (green flags).</li>

                <p><strong>RED FLAG</strong> OR <strong>GREEN FLAG</strong>?</p>
                <p>The term “red flag” is an indicator that the relationship is not meeting a person’s needs and limits. This is a sign that a person tends to display unequal and/or violent behaviours or attitudes. A red flag can take many forms, such as a lack of respect or trust between partners. These signs can be a decisive factor in ending a relationship. Some red flags are easy to spot, while others can go unnoticed, especially when romantic feelings are involved. Sometimes, they are referred to as an intuition or a little inner voice that warns us something is wrong. Green flags, on the other hand, are indicators that the relationship is caring, egalitarian and safe.</p>
            </div>
            <div class="play__container">
                <div class="play__content">
                    <button id="play">LET'S PLAY!</button>
                </div>
                <p>In each of the following scenarios, point out the red flag.</p>
            </div>
        </div>
        <div class="main__content">
            <div class="h1__title__container">
                <h1><span>The first date</span></h1>
            </div>
            <div class="infos__container">
                <div class="info__text__container">
                    <p class="situation__order">SCENARIO <span id="start">1</span> OF 4</p>
                    <div class="situation__container">
                        <p class="situation__text">You are on a first date in a restaurant with a friend of one of your friends. You ask the person how they act when in a relationship. The person answers...</p>
                        <div class="complement__container">
                            <div class="complement">
                                <p>Anyone can experience the emotion of jealousy. It might be a sign that you care about the other person. Yet when it becomes too pervasive in our lives and thoughts, it can easily lead to controlling behaviours.</p>

                                <p>Here are a few warning signs of controlling behaviour: scrutinizing the other on social media, constantly wanting to know what the other is doing, or wanting to manage the other person’s activities.</p>

                                <p>When the relationship is built on trust, then each person can fully embrace their autonomy. There’s a balance created between time spent together and time spent apart. By taking time for yourself, you nurture your personal interests and enrich your relationships. After being separated for a bit, the partners are happy to reunite. ¹</p>

                                <p style="font-size:12px">¹ Brouard, P. et Gélinas, F (réalis.) et Durand, C-A et Viger, S. (aut.). (2019). On parle de sexe – Dépendance
                                    affective (Saison 2, Épisode 19) [Épisode de série documentaire]. Dans Télé-Québec
                                    <a style="font-size:12px" href='https://video.telequebec.tv/player/32004/stream?assetType=episodes' target='_blank'>https://video.telequebec.tv/player/32004/stream?assetType=episodes</a>
                                </p>
                                <p class="question__relance">❔ What should you do if you feel that your jealousy is reaching the boiling point? ❔</p>
❔
                                <p>First of all, you have to admit that you’re feeling jealous. You have to figure out what makes you feel that way. Often, jealousy is just a mask for insecurities or a lack of confidence in your partners or in yourself. You may address your concerns with your partners and try to work out solutions you are comfortable with.</p>
                            </div>
                        </div>
                        <p id="next__mes">NEXT <i class="fa fa-arrow-right" aria-hidden="true"></i></p>
                        <p id="last__mes"><i class="fa fa-arrow-left" aria-hidden="true"></i> BACK</p>
                        <p id="replay">RESTART <i class="fa fa-rotate-right" aria-hidden="true"></i></p>
                    </div>
                </div>
                <div class="choice__container">
                    <div id="aChoice" class="choice__cta hover" data-value="R">
                        <p id="first__flag" class="situation__choice">“When I’m in a relationship, I get really jealous. I don’t understand how anyone could not be.”  </p>
                        <div class="border"></div>
                    </div>
                    <div id="bChoice" class="choice__cta hover" data-value="G">
                        <p id="second__flag" class="situation__choice">“Even when I’m with someone, I believe it’s important to take time for myself. It is imperative that we keep seeing our friends and families and pursuing our favourite hobbies.” </p>
                        <div class="border"></div>
                    </div>
                </div>
            </div>
            <div class="situation__img__container active">
                <img src="https://sentourer.ca/en/wp-content/uploads/2023/09/tete-a-tete1.svg" alt="">
                <div class="wave__container">
                    <div class="wave"></div>
                </div>
            </div>
        </div>
    </div>

    <script>
        start_game();
        flags_game();

        function start_game() {
            let playCta = document.querySelector("#play")
            let intro = document.querySelector(".intro__container")
            let mainContent = document.querySelector(".main__content")

            playCta.addEventListener("click", e => {
                intro.style.opacity = "0"
                document.querySelector("html").style.overflow = "hidden"
                mainContent.style.display = "block"
                setTimeout(() => {
                    intro.style.display = "none"
                    mainContent.style.opacity = "1"
                }, 500);
                setTimeout(() => {
                    document.querySelector("html").style.overflow = "auto"
                }, 1000);
            })
        }

        function flags_game() {
            // count selon length du nombre de mises en situation
            let count = 0
            // valeur des réponses du 1er cta
            let dataValue1 = [
                "R",
                "R",
                "G",
                "R"
            ]
            // valeur des réponses du 2e cta
            let dataValue2 = [
                "G",
                "G",
                "R",
                "G"
            ]
            // span 'MISE EN SITUATION X DE 4'
            let start = document.querySelector("#start")
            // Bouton des flags
            let flags = document.querySelectorAll(".choice__cta")
            // textes du premier flag
            let firstCtaArray = [
                "“When I’m in a relationship, I get really jealous. I don’t understand how anyone could not be.”",
                "“All my relationships ended badly. My exes were all crazy.”",
                "“Are you sure? I don’t mind paying the bill.” You reply that you’d really rather pay your share. “No problem, I understand.”",
                "“Already? The evening is just getting started! I figured we could wind up at my place and continue getting to know each other. You’re not going to leave me, are you?!”",
            ]
            // texte du second flag
            let secondCtaArray = [
                "“Even when I’m with someone, I believe it’s important to take time for myself. It is imperative that we keep seeing our friends and families and pursuing our favourite hobbies.”",
                "“My exes and I are not close anymore, but I’m still on good terms with them. Although we’re not together anymore, I think they’re good people.”",
                "“No, no. It’s on me, non-negotiable.” You say you feel uncomfortable and insist on paying your share. “I’m not giving you a choice. It’s my treat.”",
                "“Alright, I understand. I thought you might like to come and watch a movie at my place, but let’s do that another time.”",
            ]
            let mesText = document.querySelector(".situation__text")
            let mesTextArray = [
                "You are on a first date in a restaurant with a friend of one of your friends. You ask the person how they act when in a relationship. The person answers...",
                "Back to the restaurant, the conversation goes on. Your date starts talking about former relationships.  ",
                "The evening continues and the conversation flows. The waitress brings the bill and you specify that it will be two separate bills ",
                "You pay and leave the restaurant. You tell your date that you had a great time, but that you need to go home because you have plans the next morning. They reply: ",
            ]
            let complementContainer = document.querySelector(".complement__container")
            let complement = document.querySelector(".complement")
            let complementArray = [
                "<p>Anyone can experience the emotion of jealousy. It might be a sign that you care about the other person. Yet when it becomes too pervasive in our lives and thoughts, it can easily lead to controlling behaviours.</p> <p>Here are a few warning signs of controlling behaviour: scrutinizing the other on social media, constantly wanting to know what the other is doing, or wanting to manage the other person’s activities.</p> <p>When the relationship is built on trust, then each person can fully embrace their autonomy. There’s a balance created between time spent together and time spent apart. By taking time for yourself, you nurture your personal interests and enrich your relationships. After being separated for a bit, the partners are happy to reunite. ¹</p> <p style='font-size:12px'>¹ Brouard, P. et Gélinas, F (réalis.) et Durand, C-A et Viger, S. (aut.). (2019). On parle de sexe – Dépendance affective (Saison 2, Épisode 19) [Épisode de série documentaire]. Dans Télé-Québec <a href='https://video.telequebec.tv/player/32004/stream?assetType=episodes' target='_blank'>https://video.telequebec.tv/player/32004/stream?assetType=episodes</a></p><p class='question__relance'>What should you do if you feel that your jealousy is reaching the boiling point?</p> <p>First of all, you have to admit that you’re feeling jealous. You have to figure out what makes you feel that way. Often, jealousy is just a mask for insecurities or a lack of confidence in your partners or in yourself. You may address your concerns with your partners and try to work out solutions you are comfortable with.</p>",
                "<p>Comments like that about your ex are just disrespectful. Moreover, the way a person goes about their exes can lead one to expect their attitude towards their future partners.</p> <p>Our past relationships can shape the way we behave today, no matter how they ended. Among other things, they help us realize what values we hold dear, recognize and express our emotions, learn to communicate our needs and limits, and so on. These learnings shape our choice of future dating partners.</p>",
                "<p>The desire to pay the other person’s bill at all costs can leave the impression that the person is generous. Yet denying the other person the freedom to choose is a form of control (psychological abuse) which could compromise the other person’s autonomy.</p> <p class='question__relance'>❔ If your date pays for you, do you owe them something in return? ❔</p> <p>No: whether or not your date pays for the activity, they still can’t coerce you into giving them something or doing something that you feel uncomfortable with in return (such as spoiling them in return, or getting intimate, for example). The generosity of your love interest is not genuine if the intention is to receive some kind of payback.</p>",
                "<p>The person is trying to make the other one feels guilty for ending the date. This type of behaviour is a demonstration of manipulation. This behaviour, tantamount to psychological abuse, creates inequality between partners. By causing guilt, one person tries to make the other feel uncomfortable in order to convince them to join in the proposed activity. Wanting to please their partner, the other person may feel forced to accept.</p>"
            ]
            let imgSrcArray = [
                "https://sentourer.ca/en/wp-content/uploads/2023/09/tete-a-tete1.svg",
                "https://sentourer.ca/en/wp-content/uploads/2023/09/tete-a-tete2.svg",
                "https://sentourer.ca/en/wp-content/uploads/2023/09/tete-a-tete3.svg",
                "https://sentourer.ca/en/wp-content/uploads/2023/09/tete-a-tete4.svg",
            ]
            let firstFlagCta = document.querySelector('#aChoice')
            let secondFlagCta = document.querySelector('#bChoice')
            let firstFlagCtaHTML = document.querySelector('#first__flag')
            let secondFlagCtaHTML = document.querySelector('#second__flag')
            let nextMes = document.querySelector("#next__mes")
            let lastMes = document.querySelector("#last__mes")
            let replay = document.querySelector("#replay")
            let infosContainer = document.querySelector(".infos__container")
            let imgSrcContainer = document.querySelector(".situation__img__container")
            let imgSrc = document.querySelector(".situation__img__container img")


            for (let flag of flags) {
                flag.addEventListener("click", f => {
                    if (f.currentTarget.getAttribute('data-value') === 'R') {
                        f.currentTarget.classList.add('red__flag')
                    }
                    if (f.currentTarget.getAttribute('data-value') === 'G') {
                        f.currentTarget.classList.add('green__flag')

                    } else {
                        f.currentTarget.classList.add('red__flag')
                    }
                    flags.forEach((el) => {
                        el.classList.add('disabled')
                        el.classList.remove('hover')
                    })
                    complementContainer.classList.add('active')
                    infosContainer.classList.add("open")
                    nextMes.classList.add('active')
                    if (count === 3) {
                        nextMes.classList.remove('active')
                        replay.classList.add('active')
                    }
                    complementContainer.classList.add("active")
                    complement.scrollTop = 0
                })
            }

            nextMes.addEventListener("click", nextEv => {
                count++
                start.innerHTML = [count + 1].toString();
                for (let flag of flags) {
                    flag.classList.remove('green__flag')
                    flag.classList.remove('red__flag')
                    flag.classList.remove('disabled')
                }
                // complementContainer.classList.remove('active')
                mesText.innerHTML = mesTextArray[count]
                complement.innerHTML = complementArray[count]
                firstFlagCtaHTML.innerHTML = firstCtaArray[count]
                secondFlagCtaHTML.innerHTML = secondCtaArray[count]
                imgSrc.src = imgSrcArray[count]
                if (count === 1) {
                    firstFlagCta.setAttribute('data-value', dataValue1[count])
                    secondFlagCta.setAttribute('data-value', dataValue2[count])
                    lastMes.classList.add('active')
                }
                if (count === 2) {
                    firstFlagCta.setAttribute('data-value', dataValue1[count])
                    secondFlagCta.setAttribute('data-value', dataValue2[count])
                }
                if (count === 3) {
                    firstFlagCta.setAttribute('data-value', dataValue1[count])
                    secondFlagCta.setAttribute('data-value', dataValue2[count])
                }

                complementContainer.classList.remove('active')
                infosContainer.classList.remove('open')
                nextMes.classList.remove('active')
                complement.scrollTop = 0
            })
            lastMes.addEventListener("click", lastEv => {
                count--
                start.innerHTML = [count + 1].toString();
                for (let flag of flags) {
                    flag.classList.remove('green__flag')
                    flag.classList.remove('red__flag')
                    flag.classList.remove('disabled')
                }
                // complementContainer.classList.remove('active')
                mesText.innerHTML = mesTextArray[count]
                complement.innerHTML = complementArray[count]
                firstFlagCtaHTML.innerHTML = firstCtaArray[count]
                secondFlagCtaHTML.innerHTML = secondCtaArray[count]
                imgSrc.src = imgSrcArray[count]
                if(count === 0) {
                    lastMes.classList.remove('active')
                }
                if (count === 1) {
                    firstFlagCta.setAttribute('data-value', dataValue1[count])
                    secondFlagCta.setAttribute('data-value', dataValue2[count])
                }
                if (count === 2) {
                    firstFlagCta.setAttribute('data-value', dataValue1[count])
                    secondFlagCta.setAttribute('data-value', dataValue2[count])
                    replay.classList.remove('active')
                }
                if (count === 3) {
                    firstFlagCta.setAttribute('data-value', dataValue1[count])
                    secondFlagCta.setAttribute('data-value', dataValue2[count])
                }

                complementContainer.classList.remove('active')
                infosContainer.classList.remove('open')
                nextMes.classList.remove('active')
                complement.scrollTop = 0
            })
    

            replay.addEventListener("click", function() {
                count = 0
                complementContainer.classList.remove('active')
                infosContainer.classList.remove('open')
                start.innerHTML = [count + 1].toString();
                for (let flag of flags) {
                    flag.classList.remove('green__flag')
                    flag.classList.remove('red__flag')
                    flag.classList.remove('disabled')
                }
                mesText.innerHTML = mesTextArray[count]
                complement.innerHTML = complementArray[count]
                firstFlagCtaHTML.innerHTML = firstCtaArray[count]
                secondFlagCtaHTML.innerHTML = secondCtaArray[count]
                imgSrc.src = imgSrcArray[count]
                replay.classList.remove('active')
                lastMes.classList.remove('active')
                complement.scrollTop = 0
            })

        }
    </script>
{"id":115,"date":"2023-09-25T15:16:44","date_gmt":"2023-09-25T19:16:44","guid":{"rendered":"https:\/\/sentourer.ca\/en\/?page_id=115"},"modified":"2023-09-25T15:16:44","modified_gmt":"2023-09-25T19:16:44","slug":"sentourer-tete-a-tete","status":"publish","type":"page","link":"https:\/\/sentourer.ca\/en\/sentourer-tete-a-tete\/","title":{"rendered":"S&rsquo;entourer &#8211; T\u00eate-\u00e0-t\u00eate"},"content":{"rendered":"\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_acf_changed":false,"inline_featured_image":false,"footnotes":""},"class_list":["post-115","page","type-page","status-publish","hentry"],"acf":[],"_links":{"self":[{"href":"https:\/\/sentourer.ca\/en\/wp-json\/wp\/v2\/pages\/115","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sentourer.ca\/en\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/sentourer.ca\/en\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/sentourer.ca\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/sentourer.ca\/en\/wp-json\/wp\/v2\/comments?post=115"}],"version-history":[{"count":1,"href":"https:\/\/sentourer.ca\/en\/wp-json\/wp\/v2\/pages\/115\/revisions"}],"predecessor-version":[{"id":116,"href":"https:\/\/sentourer.ca\/en\/wp-json\/wp\/v2\/pages\/115\/revisions\/116"}],"wp:attachment":[{"href":"https:\/\/sentourer.ca\/en\/wp-json\/wp\/v2\/media?parent=115"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}