html {
    font-size: 62.5%;
}

* {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

@font-face {
    font-family: 'Kumbh Sans', sans-serif;
    src: url('https://fonts.googleapis.com/css2?family=Kumbh+Sans:wght@400;700&display=swap');
}


:root {
    --paragrapheColor: hsl(240, 6%, 50%);
    --titreAccordionColor: hsl(237, 12%, 33%);
    --dividersColor: hsl(240, 5%, 91%);
    --hoverColor: hsl(14, 88%, 65%);
}

body {
    margin: 0;
    padding: 0;
    font-size: 1.6rem;
}

html,
body {
    background-image: linear-gradient(hsl(273, 75%, 66%), hsl(240, 73%, 65%));
    width: 100%;
    height: 100%;
}


h1,
#faq button,
p {
    font-family: 'Kumbh Sans'
}

main {
    height: 100%;
    padding-bottom: 5rem;
}

#faq {
    width: 85%;
    height: 75%;
    margin: 15rem auto;
    background-color: #fff;
    border-radius: 3rem;
    box-shadow: 1px 20px 20px 0px rgba(0, 0, 0, 0.312);
}

.box,
#womanDesktop {
    display: none;
}

#image {
    height: 20%;
    background-image: url(../../ressources/tp-accordion-faq-main-card/bg-pattern-mobile.svg);
    background-position: top -3% right 50%;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    position: relative;

}

#woman {
    margin: 5rem;
    width: 80%;
    position: absolute;
    top: -16rem;
    left: -3rem;
}


h1 {
    text-align: center;
    margin-top: 2rem;
    margin-bottom: 0;
}

#faq details {
    border: none;

    padding: 2rem 0;
    width: 85%;
    background-color: #ffffff00;
    margin: 0 auto;
}

.accordion {
    border-bottom: 1px solid var(--dividersColor) !important;
}

summary:hover {
    color: var(--hoverColor);
}

summary {
    display: flex;
    flex-direction: row;
    /* pour séparer la flèche de la phrase dans le bouton */
    justify-content: space-between;
}

/* ajout de la flèche vers le bas des boutons  */
summary::after {
    content: url("../../ressources/tp-accordion-faq-main-card/icon-arrow-down.svg");
    transition: transform 0.3s ease;
}

summary+p {
    font-size: 1.2rem;
}

/* quand le détail s'ouvre, alors le summary fait : */
details:open>summary {
    font-weight: 700;
    color: black;
}

/* tourner la flèche à l'ouverture du détail */
details[open] summary::after {
    transform: rotate(180deg);
    position: -2px;
}


footer {
    display: flex;
}

.attribution {
    display: inline-block;
    /* margin: 1rem auto; */
    position: absolute;
    bottom: -15%;
    left: 15%;
}


/* version tablette */
@media screen and (min-width: 668px) {
    #faq {
        height: 90%;
    }

    #image {
        height: 20%;
        background-position: top 10% right 50%;
    }

    #woman {
        margin: 5rem;
        width: 40%;
        position: absolute;
        top: -15rem;
        left: 13rem;
    }

}

/* version desktop */
@media screen and (min-width: 1024px) {
    #woman {
        display: none;
    }

    #faq {
        display: flex;
        flex-direction: row;
        width: 70%;
        height: 75%;
        margin: 12rem auto;
    }

    #image,
    #texte {
        width: 50%;
    }

    .box,
    #womanDesktop {
        display: block;
    }

    .box {
        width: 46%;
        position: absolute;
        left: -23%;
        bottom: 19%;
    }

    #womanDesktop {
        object-position: -90px;
        width: 100%;
        margin-top: 4rem;
    }

    #image {
        height: 100%;
        background-image: url(../../ressources/tp-accordion-faq-main-card/bg-pattern-desktop.svg);
        background-position: top 70% right -20%;
    }

    #texte {
        padding: 2rem 10rem 2rem 0;
    }

    h1 {
        text-align: left;
        padding: 2rem;
    }

    .attribution {
        bottom: -0%;
        left: 40%;
    }
}