    <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 class="cta" href="https://sentourer.ca/en/sentourer-sortie-entre-ami-es">Going out with friends</a>
                <a id="cta__url" 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>Under the sheets</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 and your partner are watching a movie cuddled up in bed. You start to get closer and undress. Before going any further, you ask if they have a condom. </p>
                        <div class="complement__container">
                            <div class="complement">
                                <p>Everyone is responsible for their own sexual health. The responsibility for acquiring contraception or protection, and the related costs, should be equally shared by all partners. This is the concept of “shared responsibility”. Efforts must be shared fairly.</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="G">
                        <p id="first__flag" class="situation__choice">“Unfortunately, I haven’t thought about buying any, but we could split the costs for next time?”</p>
                        <div class="border"></div>
                    </div>
                    <div id="bChoice" class="choice__cta hover" data-value="R">
                        <p id="second__flag" class="situation__choice">“No, and why should I be the one buying it? You’ve got money too.” </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/entre-deux-draps1.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",
                "G",
                "R",
                "G"
            ]
            // valeur des réponses du 2e cta
            let dataValue2 = [
                "R",
                "R",
                "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 = [
                "“Unfortunately, I haven’t thought about buying any, but we could split the costs for next time?”",
                "Oh great, you actually had one! It’s not very comfortable, but it’s super important until we get tested.” ",
                "“Come on... We started, we could at least finish. It’s sucks to stop like that. Your partner sighs, rolls their eyes and puts the movie back on.”",
                "“I was on Insta and saw that you’re still following your ex. I mean, I know nothing’s going on, but it makes me a little insecure.” "
            ]
            // texte du second flag
            let secondCtaArray = [
                "“No, and why should I be the one buying it? You’ve got money too.” ",
                "“Do you really want us to wear condoms? Don’t you trust me? I swear I’m clean. I don’t have any pimples. Besides, I don’t feel anything with it on.” ",
                "“That’s okay, would you like to cuddle instead?”. You accept and you cuddle up while finishing the movie. ",
                "“I went through your phone and saw that you’re still following your ex on Insta. Can you explain why?” "
            ]
            let mesText = document.querySelector(".situation__text")
            let mesTextArray = [
                "You and your partner are watching a movie cuddled up in bed. You start to get closer and undress. Before going any further, you ask if they have a condom. ",
                "You keep making out and pull a condom out of your bag. Your partner says :  ",
                "You start having protected sex. After a while, you don’t feel like it anymore. You tell your partner that you would prefer to continue the movie : ",
                "The movie ends and you decide to shower. As you return, you notice that your partner seems to be bothered by something. You ask them what’s going on : "
            ]
            let complementContainer = document.querySelector(".complement__container")
            let complement = document.querySelector(".complement")
            let complementArray = [
                "<p>Everyone is responsible for their own sexual health. The responsibility for acquiring contraception or protection, and the related costs, should be equally shared by all partners. This is the concept of “shared responsibility”. Efforts must be shared fairly.</p>",
                "<p>Asking your partner to use a condom during sexual intercourse is not a matter of trust. This shows the mutual importance given to sexual health. There should be no need to negotiate or justify your choice of contraceptive or protection method.</p> <p class='question__relance'>❔ What to tell someone who says they “don’t feel anything” with a condom on? ❔</p> <p>The condom may slightly reduce sensitivity. The key to maximizing sensations is to find the right condom for the right experience. Here are a few possible answers :</p> <ul> <li>“Do you have a favourite brand of condoms?”</li> <li>“It’s better to have sex with protection than not to have sex at all, right?”</li> </ul> <p class='question__relance'>❔ What to tell someone who says that “they are clean”? ❔</p> <p>Unless you have seen very recent test results and are certain that the person has not engaged in any sexual activity since then, there is no guarantee that there is no STBBI.</p> <ul> <li>“Just because you don’t have any symptoms doesn’t mean you don’t have an STBBI. They may be asymptomatic. Unless you have medical confirmation, protection is always the best option.”</li> <li>“I trust you, but my sexual health is very important to me. I don’t negotiate the use of condoms, take it or leave it.”</li> </ul>",
                "<p>The fact that sexual intercourse has been initiated does not mean that it must be continued. Everyone has the right to express their desire to stop, at any time. Also, once the limits of one of the people involved are no longer respected, the consent is no longer valid. In this case, the person puts pressure on their partner to maintain the sexual intercourse by creating a guilt feeling. This goes against the partner’s consent and is a form of sexual abuse.</p> <p style='text-align: center;text-decoration: underline;'>What makes sexual consent valid?</p> <p>Consent can be withdrawn at any time before or during the sexual intercourse. Consent can also be given for some practices and not for others.</p> <ul> <li><strong><i>Free</i></strong> : Each individual is free to give of their own free will, meaning that the person does not feel obligated or manipulated or forced to take part in sexual activity.</li> <li><strong><i>Informed</i></strong> : Every individual must be able to give consent. She/he/they must have all the capacity to consent. For example, a person who is asleep, unconscious or intoxicated cannot give consent. Other exceptions related to the age of the partners may also invalidate it.</li> <li> <strong><i>Enthusiastic</i></strong> : Each individual must demonstrate that he/she wants to participate in sexual activity. Enthusiasm is justified by all verbal and non-verbal behaviors.</li> </ul> <p>The legal age of consent is 16. From this age, it is possible to consent to sexual activities with an older person, regardless of age, provided that there is no relationship of dependence, authority or exploitation. towards the partner. There are exceptions for younger children:</p> <ul> <li>For 12-13 year olds: less than 2 years difference between partners. </li> <li>For 14-15 year olds: less than 5 years difference between partners.</li> <li>Young people aged 11 and under cannot consent to sexual activities.</li> </ul> <p>Consent can be withdrawn at any time before or during sexual activity. It is also possible to give consent to certain practices and not to others.</p>",
                "<p>Being in a relationship with someone doesn’t mean you have a say in everything. This means that no one can impose the removal or blocking of certain social media contacts upon a partner. They have to learn, slowly but surely, to trust the other person and accept their dating history. If trust is never established, it will be difficult to build a solid, mutual relationship.</p> <p>Being in a relationship involves showing vulnerability to your partner (e.g., naming your insecurities, needs and limits to the other person). Not only does it increase the feeling of intimacy in the relationship, it also gives the partners a chance to get to know and understand each other better.</p>"
            ]
            let imgSrcArray = [
                "https://sentourer.ca/en/wp-content/uploads/2023/09/entre-deux-draps1.svg",
                "https://sentourer.ca/en/wp-content/uploads/2023/09/entre-deux-draps2.svg",
                "https://sentourer.ca/en/wp-content/uploads/2023/09/entre-deux-draps3.svg",
                "https://sentourer.ca/en/wp-content/uploads/2023/09/entre-deux-draps4.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')
                    }
                })
            }

            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":111,"date":"2023-09-25T15:16:08","date_gmt":"2023-09-25T19:16:08","guid":{"rendered":"https:\/\/sentourer.ca\/en\/?page_id=111"},"modified":"2023-09-25T15:16:08","modified_gmt":"2023-09-25T19:16:08","slug":"sentourer-entre-deux-draps","status":"publish","type":"page","link":"https:\/\/sentourer.ca\/en\/sentourer-entre-deux-draps\/","title":{"rendered":"S&rsquo;entourer &#8211; Entre deux draps"},"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-111","page","type-page","status-publish","hentry"],"acf":[],"_links":{"self":[{"href":"https:\/\/sentourer.ca\/en\/wp-json\/wp\/v2\/pages\/111","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=111"}],"version-history":[{"count":1,"href":"https:\/\/sentourer.ca\/en\/wp-json\/wp\/v2\/pages\/111\/revisions"}],"predecessor-version":[{"id":112,"href":"https:\/\/sentourer.ca\/en\/wp-json\/wp\/v2\/pages\/111\/revisions\/112"}],"wp:attachment":[{"href":"https:\/\/sentourer.ca\/en\/wp-json\/wp\/v2\/media?parent=111"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}