    <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 id="cta__url" 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 dustup</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 tell your partner that it has been a long day and that you feel tired. But rather than listening to you, your partner raises their voice and tells you why their day was worse than yours. You would like to tell them that you feel sad and not listened to.</p>
                        <div class="complement__container">
                            <div class="complement">
                                <p>Not expressing your emotions out of fear of how your partner will react is a sign that your sense of security has been compromised. This in turn indicates an inequality in the relationship, since one of the two parties does not feel able to freely express their discomforts to the other. In an egalitarian relationship, both partners can genuinely speak their minds and resolve their conflicts.</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">You are nervous about having this conversation, fearing that your partner will lose their temper.</p>
                        <div class="border"></div>
                    </div>
                    <div id="bChoice" class="choice__cta hover" data-value="G">
                        <p id="second__flag" class="situation__choice">Although this kind of conversation is likely to be uncomfortable, you are confident that your partner can handle criticism.</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/prise-de-bec1.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",
                "G",
                "G",
                "R"
            ]
            // valeur des réponses du 2e cta
            let dataValue2 = [
                "G",
                "R",
                "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 = [
                "You are nervous about having this conversation, fearing that your partner will lose their temper.",
                "“Oh, I’m really sorry I raised my voice. I didn’t realize. I’ll be careful.”",
                "“You’re right, I didn’t mean to hurt you by behaving like this. I’m sorry.”",
                "“Well, you see your day wasn’t all that bad. You had one recently, too. Some people have it all.”",
            ]
            // texte du second flag
            let secondCtaArray = [
                "Although this kind of conversation is likely to be uncomfortable, you are confident that your partner can handle criticism.",
                "“Alright, I’ll keep it down. But I speak loudly because you won’t listen to me otherwise. I wanted to make sure that you heard me.”",
                "“You’re making a big fuss about it. I was only trying to explain that I had a big day too. Do you really think I wanted to hurt your feelings?”",
                "“That’s great! I’m really happy for you! We should throw a little party to celebrate.”",
            ]
            let mesText = document.querySelector(".situation__text")
            let mesTextArray = [
                "You tell your partner that it has been a long day and that you feel tired. But rather than listening to you, your partner raises their voice and tells you why their day was worse than yours. You would like to tell them that you feel sad and not listened to.",
                "Before telling your partner about what went wrong, you ask them to tone it down in order to have a calm discussion.",
                "You explain to your partner that you didn’t like it when they invalidated your feelings and changed the subject to make it all about them. You conclude by explaining that you would like them to be more attentive and careful:",
                "As the evening wears on, the dispute seems to fade. You tell your partner: “Although I didn’t have the best day, at least I got some good news: I’m about to be promoted at work!”",
            ]
            let complementContainer = document.querySelector(".complement__container")
            let complement = document.querySelector(".complement")
            let complementArray = [
                "<p>Not expressing your emotions out of fear of how your partner will react is a sign that your sense of security has been compromised. This in turn indicates an inequality in the relationship, since one of the two parties does not feel able to freely express their discomforts to the other. In an egalitarian relationship, both partners can genuinely speak their minds and resolve their conflicts.</p>",
                "<p>Addressing a partner by shouting or raising your voice is verbal abuse. This is symptomatic of trying to dominate the other person by diminishing their ability to self-express. Moreover, justifying violent behaviour (raising one’s voice) by accusing the other of not listening is an example of gaslighting (manipulation). As a result, the person’s perception of their own feelings is altered, drawing attention away from the problematic behaviour and placing the blame for the situation on them.</p> <p>Admitting one’s wrongs contributes to effective conflict resolution. The other person feels heard and understood. Also, by committing to not repeating a mistake, you help the other person feel safer, so they can express their feelings without fear of abuse.</p> <p class='question__relance'>❔ If the two people involved in the conflict are shouting, is that egalitarian? ❔</p> <p>No, because by shouting, both parties are trying to gain control over the other, which is not egalitarian. What’s more, reciprocating a violent gesture is equivalent to mutual violence. Instead of helping to resolve the conflict, the latter can lead to an escalation of the behaviours. It is therefore not an effective solution for ending the situation. ²</p> <p style='font-size:12px'>² Ministère de l’Éducation et de l’Enseignement supérieur (Mai 2020). Contenus obligatoires en éducation à la sexualité. Vie affective et amoureuse, 4ème secondaire. Page 7. </p>",
                "<p>Gaslighting is used here to alter the perception of the situation and invalidate what the other person believes or feels. This is a form of psychological abuse. Gaslighting is a way for the person who has committed an abusive act to absolve themself of responsibility, by trying to convince their partner that they gave them the wrong intentions.</p> <p>Reflecting on our behaviour and attitudes enables us to deal better with criticism and understand the other person’s point of view more effectively. A conflict is rarely one single person’s fault; everyone can, at one time or another, have made mistakes or behaved in a non-egalitarian way. Acknowledging one’s share of responsibility can help ease the discomfort of the other and improve communication between the two partners.</p>",
                "<p>In an egalitarian relationship, partners should be able to talk about their good deeds. One should never feel guilty for succeeding. Making your partner feel guilty is a form of psychological abuse. Such behaviour can undermine a person’s self-esteem and make them feel unworthy of that recognition.</p> <p class='question__relance'>❔ Is conflict a sign that the relationship is on the rocks? ❔</p> <p>No: Conflict is a normal part of any relationship. Each of us has our own opinions and values, which may differ from those of the people with whom we share our lives. However, it is important to manage conflicts without creating a power struggle between partners. When resolved with respect and fairness, these disputes can be beneficial to a couple, strengthening their bond.</p> <p class='question__relance'>❔ How to settle a conflict in a fair manner? ❔</p> <ul> <li><strong>Keep calm.</strong>  Opting for a calm tone of voice allows all partners to express themselves fairly and safely.</li> <li><strong>Don't accuse.</strong> It is better to name your emotions than to blame the other, even if the person has made a mistake: “I felt hurt and embarrassed when you did that.”</li> <li><strong>Fix the problem.</strong> There is no point in starting an argument unless you know what is expected. What should change? The goal is to agree on a solution and not to try to win. For example, this could take the form of a compromise between the partners.</li> <li><strong>Take a step back.</strong> When personalities are strong, it may be a good idea to take a break; This can help partners calm down and give them space to think about the situation.</li> <li><strong>Respect everyone’s points of view.</strong> Conflict resolution requires listening and being open to others. To find a solution that suits everyone, you must take the time to clearly understand the emotions experienced, the needs and expectations of each person. ³</li> </ul> <p style='font-size:12px'>³	Jeunesse, J’écoute (2023). « Relations saines versus relations malsaines ». <a style='font-size:12px' href='https://jeunessejecoute.ca/information/relations-saines-versus-relations-malsaines/' target='_blank'>https://jeunessejecoute.ca/information/relations-saines-versus-relations-malsaines/</a></p>",
            ]
            let imgSrcArray = [
                "https://sentourer.ca/en/wp-content/uploads/2023/09/prise-de-bec1.svg",
                "https://sentourer.ca/en/wp-content/uploads/2023/09/prise-de-bec2.svg",
                "https://sentourer.ca/en/wp-content/uploads/2023/09/prise-de-bec3.svg",
                "https://sentourer.ca/en/wp-content/uploads/2023/09/prise-de-bec4.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")
                })
            }

            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":13,"date":"2023-08-11T07:57:17","date_gmt":"2023-08-11T11:57:17","guid":{"rendered":"https:\/\/sentourer.ca\/en\/?page_id=13"},"modified":"2023-08-11T08:00:45","modified_gmt":"2023-08-11T12:00:45","slug":"sentourer-la-prise-de-bec","status":"publish","type":"page","link":"https:\/\/sentourer.ca\/en\/sentourer-la-prise-de-bec\/","title":{"rendered":"S&rsquo;entourer  &#8211; La prise de bec"},"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-13","page","type-page","status-publish","hentry"],"acf":[],"_links":{"self":[{"href":"https:\/\/sentourer.ca\/en\/wp-json\/wp\/v2\/pages\/13","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=13"}],"version-history":[{"count":2,"href":"https:\/\/sentourer.ca\/en\/wp-json\/wp\/v2\/pages\/13\/revisions"}],"predecessor-version":[{"id":15,"href":"https:\/\/sentourer.ca\/en\/wp-json\/wp\/v2\/pages\/13\/revisions\/15"}],"wp:attachment":[{"href":"https:\/\/sentourer.ca\/en\/wp-json\/wp\/v2\/media?parent=13"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}