    <div class="main__container">
        <div class="cta__container">
            <div>
                <a 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 id="cta__url" 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>Going out with friends</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">One of your friends celebrates their birthday. Before heading out for the evening, you greet your partner. </p>
                        <div class="complement__container">
                            <div class="complement">
                                <p>Pouting is the person’s attempt to manipulate the feelings of their partner, who may be tempted to accommodate, in an effort to put an end to the behaviour. Repeated use of this technique can lead to isolation and disinvestment in one’s other relationships. </p>
                                <p>Everyone should be free to do activities on their own or with friends, without a partner making them feel guilty. Relationships with family and friends are just as important to a person’s overall well-being as loving relationships, and can be a source of support and comfort.</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 class="choice__phone choice__cta" data-value="R">
                        <img src="https://sentourer.ca/en/wp-content/uploads/2023/09/Textos-Version-modifie-Red-flag.png" alt="">
                    </div>
                    <div class="choice__phone choice__cta" data-value="G">
                        <img src="https://sentourer.ca/en/wp-content/uploads/2023/09/Textos-Version-modifiee-green-flag.png" alt="">
                    </div>
                    <div id="aChoice" class="choice__cta hover" data-value="G">
                        <p id="first__flag" class="situation__choice">They tell you: “I will miss you tonight, but I am happy that you are seeing your friends. I can’t wait for you to tell me all the gossip!” </p>
                        <div class="border"></div>
                    </div>
                    <div id="bChoice" class="choice__cta hover" data-value="R">
                        <p id="second__flag" class="situation__choice">You start to feel bad because your partner is pouting. Your partner thinks you are leaving them out. This happens every time you go out. </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/sortie-entre-amis1.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 = [
                "G",
                "R",
                "R",
                "G"
            ]
            // valeur des réponses du 2e cta
            let dataValue2 = [
                "R",
                "G",
                "G",
                "R"
            ]
            // 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 = [
                "They tell you: “I will miss you tonight, but I am happy that you are seeing your friends. I can’t wait for you to tell me all the gossip!”",
                "“What you’re wearing is way too provocative. I’m not comfortable letting you go out dressed like that.” ",
                "",
                "Your partner asks your friends questions and shows curiosity about your evening. ",
            ]
            // texte du second flag
            let secondCtaArray = [
                "You start to feel bad because your partner is pouting. Your partner thinks you are leaving them out. This happens every time you go out. ",
                "“You’re very beautiful. This colour really suits you! Have fun!” ",
                "Have you arrived yet? Why aren’t you answering me? Your friends are not answering either. If you haven’t answered in the next 10 minutes, I’ll come and pick you up at the bar. You’d better have a good excuse! ",
                "Your partner ignores your friends and answers their questions very abruptly.",
            ]
            let mesText = document.querySelector(".situation__text")
            let mesTextArray = [
                "One of your friends celebrates their birthday. Before heading out for the evening, you greet your partner.",
                "Before leaving, you are keen to show off your outfit to your partner, as you think you look wonderful. They tell you : ",
                "As the evening unfolds, you take a glimpse at your cellphone, which you left in your pocket since you arrived. You see these messages from your partner :",
                "The evening has come to an end and your partner picks you up to take you home.  ",
            ]
            let complementContainer = document.querySelector(".complement__container")
            let complement = document.querySelector(".complement")
            let complementArray = [
                "<p>Pouting is the person’s attempt to manipulate the feelings of their partner, who may be tempted to accommodate, in an effort to put an end to the behaviour. Repeated use of this technique can lead to isolation and disinvestment in one’s other relationships.</p> <p>Everyone should be free to do activities on their own or with friends, without a partner making them feel guilty. Relationships with family and friends are just as important to a person’s overall well-being as loving relationships, and can be a source of support and comfort.</p>",
                "<p>Control is a form of psychological abuse: the partner seeks to dominate the other by deciding, for example, on their physical appearance. In this situation, such behaviour could conceal jealousy or insecurities (fear of infidelity, for example). However, the person could have addressed the matter with their partner directly, rather than trying to make them feel guilty about their clothing choice.</p>",
                "<p>The messages received display harassing behaviour (psychological abuse) and threatening behaviour (verbal abuse). Monitoring the other and insisting through text messages is another indication of the person’s desire to control their partner. Even in a romantic relationship, nobody is bound to account for their whereabouts.</p> <p>When trust between partners has been established, it becomes easier to deal with not hearing from the other for a few hours, and to assume that the latter will get in touch when they can. Moreover, showing availability to a partner to ensure their well-being or safety is a fine expression of consideration and respect.</p>",
                "<p>Not only does it make one’s partner’s friends uncomfortable and shows them disrespect, ignoring them entails that the person is solely focused on taking their significant other out of the social context they’re in (so as to isolate them). This could be a sign of implicit violence.</p> <p>Showing interest in the people who are part of a partner’s life is a sign of respect, not only towards the friends, but also towards the partner in question. This speaks of commitment to the relationship and of a drive to learn more about other spheres of a partner’s life.</p>"
            ]
            let imgSrcArray = [
                "https://sentourer.ca/en/wp-content/uploads/2023/09/sortie-entre-amis1.svg",
                "https://sentourer.ca/en/wp-content/uploads/2023/09/sortie-entre-amis2.svg",
                "",
                "https://sentourer.ca/en/wp-content/uploads/2023/09/sortie-entre-amis4-1.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")
            let phones = document.querySelectorAll(".choice__phone")
            let mainContent = document.querySelector(".main__content")

            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 === 2) {
                        mainContent.style.height = "150vh"
                    }
                    if (count === 3) {
                        nextMes.classList.remove('active')
                        replay.classList.add('active')
                    }
                })
            }

            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')
                    mainContent.style.height = "100%"
                }
                if (count === 2) {
                    firstFlagCta.classList.remove('active')
                    secondFlagCta.classList.remove('active')
                    firstFlagCta.style.display = "none"
                    secondFlagCta.style.display = "none"
                    mainContent.style.height = "100vh"
                    for (let phone of phones) {
                        phone.classList.add('active')
                    }  
                }
                if (count === 3) {
                    firstFlagCta.classList.add('active')
                    secondFlagCta.classList.add('active')
                    for (let phone of phones) {
                        phone.classList.remove('active')
                    }
                    mainContent.style.height = "100%"
                    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--
                console.log(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.classList.add('active')
                    secondFlagCta.classList.add('active')
                    firstFlagCta.setAttribute('data-value', dataValue1[count])
                    secondFlagCta.setAttribute('data-value', dataValue2[count])
                    mainContent.style.height = "100%"
                    for (let phone of phones) {
                        phone.classList.remove('active')
                    }
                }
                if (count === 2) {
                    firstFlagCta.classList.remove('active')
                    secondFlagCta.classList.remove('active')
                    mainContent.style.height = "100vh"
                    for (let phone of phones) {
                        phone.classList.add('active')
                    }
                    replay.classList.remove('active')
                }
                if (count === 3) {
                    firstFlagCta.classList.add('active')
                    secondFlagCta.classList.add('active')
                    mainContent.style.height = "100%"
                    for (let phone of phones) {
                        phone.classList.remove('active')
                    }
                    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":113,"date":"2023-09-25T15:16:21","date_gmt":"2023-09-25T19:16:21","guid":{"rendered":"https:\/\/sentourer.ca\/en\/?page_id=113"},"modified":"2023-09-25T15:16:21","modified_gmt":"2023-09-25T19:16:21","slug":"sentourer-sortie-entre-ami-es","status":"publish","type":"page","link":"https:\/\/sentourer.ca\/en\/sentourer-sortie-entre-ami-es\/","title":{"rendered":"S&rsquo;entourer &#8211; Sortie entre ami-es"},"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-113","page","type-page","status-publish","hentry"],"acf":[],"_links":{"self":[{"href":"https:\/\/sentourer.ca\/en\/wp-json\/wp\/v2\/pages\/113","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=113"}],"version-history":[{"count":1,"href":"https:\/\/sentourer.ca\/en\/wp-json\/wp\/v2\/pages\/113\/revisions"}],"predecessor-version":[{"id":114,"href":"https:\/\/sentourer.ca\/en\/wp-json\/wp\/v2\/pages\/113\/revisions\/114"}],"wp:attachment":[{"href":"https:\/\/sentourer.ca\/en\/wp-json\/wp\/v2\/media?parent=113"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}