/* Reset */

*,
::before,
::after {
    margin : 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
}
    
/* Variables */
:root {
    --main-color-primary: #E3A730;
    --main-color-secondary: #D9919B;
    --gradient-color-primary-1: #EABC62;
    --gradient-color-primary-2: #F0CF8F;
    --gradient-color-primary-3: #F6E2BC;
    --gradient-color-primary-4: #FCF5E9;
    --gradient-color-secondary-1: #C45463;
    --gradient-color-secondary-2: #D17A86;
    --gradient-color-secondary-3: #DEA0A8;
    --gradient-color-secondary-4: #EBC6CB;
    --gradient-color-secondary-5: #F8ECEE;
    --other-color-1: #B7C99C;
    --other-color-2: #84B1C8;
    --other-color-3: #D9919B;
    --other-color-4: #E8BAAC;
    --cta-color: #BE4152;
    --white-color: #fff;
    --black-color: #000;
    --shadow-img-primary-left: -16px 16px 0 0 var(--gradient-color-primary-2);
    --shadow-img-primary-contact: 16px 16px 0 0 var(--gradient-color-secondary-3);
    --shadow-img-primary-hero: 16px 16px 0 0 var(--gradient-color-primary-3);
    --box-shadow: 6px 6px 8px 0 rgba(188, 188, 188, 0.45);
}

::-webkit-details-marker {
    display:none; 
}

/* Général */

html {
    scroll-behavior: smooth;
}

/* Type Fonts */

h1,
h2,
h3,
h4,
nav a,
.title__site,
.title__site--footer,
.btn,
.footer__sidebar__widget__title {
    font-family: 'luciole', Verdana, sans-serif;
}

p,
ul,
a,
label,
select,
textarea,
input,
summary,
.frm_description,
.frm_error {
    font-family:  Verdana, sans-serif;
}

/* Taille fonts Mobile */

h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 2rem;
    line-height: 48px;
    margin-bottom: 1.5rem;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 3.5rem;
}

h4,
.subtitle {
    font-size: 1.125rem;
}

a,
summary,
p,
ul,
button {
    font-size: 1rem;
    line-height: 27px;
}

.btn a {
    font-size: 1rem;
    color: var(--white-color);
}

.calltoaction__title {
    font-size: 1.75rem;
}

.btn:hover a{
    color: var(--black-color);
}

a,
summary {
    color: var(--gradient-color-secondary-1);
    text-decoration: none;
}

.services__title {
    font-size: 1.5rem;
}

.title__page {
    font-size: 1.75rem;
    margin: 6rem auto 2rem;
    max-width: 320px;
}
textarea {
    font-size: 0.8rem;
}

.hero__site h2 {
    font-size: 1.25em;
    font-weight: normal;
    line-height: 32px;
    max-width: 600px;
}

/* Header et navigation */

header {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.title__site {
    display: none;
}

nav {
    width: 100%;
}

.liste__nav {
    list-style-type: none;
    background-color: var(--white-color);
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: center;
}

.liste__nav a {
    font-size: 1.063rem;
    color: var(--black-color);
}

.liste__nav a:hover {
    color: var(--cta-color);
}

.liste__nav li {
    padding: 0;
    margin: 0 0.75rem;
}


/* Fond couleur section */

.emotional__section,
.about__site,
.tools__site,
input,
select,
textarea,
input[type='checkbox'] {
    background-color: var(--gradient-color-primary-4);
}

p.image__caption {
    color: grey;
    margin-top: 1rem;
    text-align: center;
    font-size: 0.825rem;
}

/* Ombre images */

.hero__site img,
.emotional__site img,
.about__wrapper img,
.contact__container img {
    border-radius: 5px;
}

.hero__site img {
    box-shadow: var(--shadow-img-primary-hero);
}

.emotional__site img,
.about__wrapper img {
    box-shadow: var(--shadow-img-primary-left);
}

.contact__container img{
    box-shadow: var(--shadow-img-primary-contact);
}

.calltoaction__site {
    background: linear-gradient(263.97deg, #F6E2BC 0%, #D9919B 100%) ;
    text-align : center;
}

.calltoaction__text {
    max-width: 75%;
    margin: 0 auto;
}

/* Marges et padding */

.hero__site,
.emotional__site,
.about__wrapper,
.contact__container  {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

section {
    padding: 7.5rem 1.25rem;
}

.services__container {
    padding-top: 0;
}

.resume__container{
    padding-top: 3.5rem;
    padding-bottom: 2rem;
    padding-right: 2rem;
}

.resume__container .widget_text {
    padding: 0 0 2rem 1.125rem;
}

.mentions__container {
    padding-top: 0;
    padding-bottom: 0;
}

.socials__container,
.coordonnees__container {
    padding-top: 0;
    padding-bottom: 2rem;
}

.coordonnees__container .footer__sidebar__widget {
    padding-left: 1.125rem;
}

.socials__container li a {
    font-size: 1.75rem;
}

ul {
    padding: 1rem 0;
}

.liste__nav {
    padding-top: 0;
}

li {
    margin: 0 0.5rem 0 1.5rem;
    padding: 0.75rem 0;
}

li:last-child {
    padding-bottom: 0;
}

.text__container,
.text__wrapper {
    margin-top: 4rem;
}

.services__subtitle,
.method__subtitle,
.tools__subtitle {
    margin-bottom: 7rem;
}

.services__chapo {
    margin: 0 1.5rem 3rem;
}

.contact__chapo {
    margin-bottom: 5rem;
}

.about__wrapper img {
    margin-top: 3.5rem;
    margin-bottom: 1.5rem;
}

.services__presentation {
    margin-bottom: 6rem;
}

.contact__container img {
    margin-bottom: 6rem;
}

select,
input {
    padding: 0 0.75rem;
}

textarea{
    padding: 0.75rem 0.25rem 0.25rem 0.75rem;
}

.title__nofound{
    margin: 6rem 2rem;
}

/* Alignement  */

h1 {
    text-align: center;
}

.resume__logo {
    display: flex;
    align-items: center;
}

.services__chapo,
.contact__chapo {
    text-align: center;
}

.services__presentation {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.main__nofound figure {
    text-align: center;
    margin-bottom: 4rem;
}

.main__nofound img {
    border-radius: 5px;
    box-shadow: var(--box-shadow);
}

.main__nofound figcaption {
    margin-top: 1rem;
    font-size: 0.825rem;
    color: gray;
}

.text__nofound {
    text-align: center;
}

/* Composant */
/* Bouton */
.btn {
    display: block;
    color: var(--white-color);
    margin: 4rem auto 0;
    padding: 1rem 0;
    max-width: 320px;
    background-color: var(--cta-color);
    border-radius: 20px;
    box-shadow: var(--box-shadow);
    text-align: center;
}

.btn:hover {
    background-color: var(--gradient-color-primary-3);
    color: var(--black-color);
}

.btn__hero,
.btn__nofound {
    margin-bottom: 8rem;
    max-width: 280px;
}

/* Cartes accueil */

.services__card:nth-child(1){
    background-color: var(--gradient-color-primary-2);
}

.services__card:nth-child(2){
    background-color: var(--other-color-1);
}

.services__card:nth-child(3){
    background-color: var(--gradient-color-secondary-3);
}

.services__card:nth-child(4){
    background-color: var(--other-color-2);
}

.services__card {
    padding: 6rem 2.5rem 4.5rem;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
    margin-bottom: 2rem;
}

.services__card h3 {
    text-align: center;
    margin-bottom: 2.5rem;
}

.services__card li {
    margin: 0;
}

/* Cartes témoignages */

.testimonials__site {
    padding-top: 3rem;
}

.testimonials__site h2,
.testimonials__site--home h2 {
    margin-bottom: 7rem;
}
.testimonial__card {
    border: 1px solid var(--gradient-color-secondary-1) ;
    border-radius: 5px;
    box-shadow: var(--box-shadow);
    margin: 0 auto 4rem;
    max-width: 332px;
    padding: 5rem 2.5rem 2rem;
}

.testimonial__card::before {
    content: "\275E";
    display: block;
    text-align: center;
    color: var(--gradient-color-secondary-1);
    font-size: 72px;
    margin-top: -7rem;
}

.testimonial__card p:first-child {
    padding-top: 2.5rem;
}

.testimonial__author {
    margin-top: 2rem;
    text-align: center;
}

/* Modal témoignages */

      .testimonial__box {
        border-radius: 0.5rem;
        border: 1px solid var(--gradient-color-secondary-1) ;
        width: 80%;
        position: fixed;
        left:10%;
        padding: 1.5rem 1.5rem 0 1.5rem;
      }

      /* Reset du bouton */
      .testimonial__box button,
      .testimonial__link {
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;

        background: none;
        border: none;
        padding: 0;
        /*margin: 0;  si tu veux gérer l'espacement ailleurs */
        color: inherit;
        /*font: inherit;  hérite la police et taille du parent */
        cursor: pointer;
        }

      .testimonial__link,
      .testimonial__box button {
        display: block;
        margin: 1rem auto;
        text-decoration: underline;
        color: var(--gradient-color-secondary-1);
      }

/* Carte d'outils */

.tools__card {
    text-align: center;
    margin: 0 auto 6rem;
    max-width: 332px;
    padding: 0 1.25rem;
}

.tools__card:last-child {
    margin-bottom: 0;
}

.tools__card h3 {
    margin-bottom: 2rem;
}

.tools__card  img{
    margin-bottom: 1rem;
}

.tools__card p {
    text-align: start;
}

/* Formulaire */

.contact__container {
    padding: 0 1.25rem;
}

form {
    margin-bottom: 5rem;
}

fieldset {
    border: none;
}

input,
textarea,
select {
    border: 1px solid var(--gradient-color-secondary-1);
    border-radius: 4px;
}

input,
select {
    height: 2rem;
}

select {
    -webkit-appearance: none;
}

.frm_form_field {
    display: flex;
    flex-direction: column;
    margin-top: 1.75rem;
}

label {
    font-size: 0.75rem;
    margin-bottom: 0.5rem;
}

.frm_description {
    font-size: 0.75rem;
    margin-top: 0.5rem;
}

.frm_required {
    color: var(--cta-color);
    font-weight: bold;
}

.frm_form_field.frm_left_container {
    display: flex;
    flex-direction: row;
}

input[type=checkbox]{
    -webkit-appearance: none;
    -moz-appearance: none;
    -ms-appearance: none;
}

input[type=checkbox] {
    border-radius: 4px;
    height: 23px;
    width: 23px;
    border: 1px solid var(--gradient-color-secondary-1);
    padding: 0;
}

input[type="checkbox"]:checked {
    position: relative;
}

input[type="checkbox"]:checked:before {
      content: "\2714";
      display: block;
      color: var(--black-color);
      font-size: 13px;
      position: absolute;
      margin-left: 2px;
}

.frm_submit {
    display: flex;
    justify-content: end;
}

.frm_button_submit {
    font-family: 'luciole', Arial, sans-serif;
    cursor: pointer;
    color: var(--white-color);
    margin-top: 2rem;
    padding: 0.75rem 3rem;
    background-color: var(--cta-color);
    border-radius: 16px;
    box-shadow: var(--box-shadow);
    text-align: center;
    border: none;
}

button:hover {
    color: var(--black-color);
    background-color: var(--gradient-color-primary-3);
}

.frm_message,
.frm_error_style {
    margin-bottom: 8rem;
    background-color: #5fad56a2;
    padding: 1rem;
    border: 1px solid var(--black-color);
    border-radius: 5px;
}

.frm_message {
    background-color: #5FAD56;
}

.frm_error_style {
    background-color: #FE5F55;
}


.after__line {
    margin: auto;
    width: 80%;
    border: solid 1px var(--gradient-color-primary-1);
}

/* Témoignages lien custom */

.testimonial__link:hover,
.testimonial__box button:hover {
    background: none;
}
/* Footer */

footer p,
.mentions__container a {
    font-size: 0.875rem;
}

.title__site--footer {
    font-size: 1.125rem;
}

.coordonnees__container > .widget_text {
    padding-bottom: 1rem;
}

.footer__sidebar__widget__title {
    font-size: 1.125rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.widget_text p > img {
    margin-left: 6px;
}

.simple-social-icons ul li a {
    font-size: 1.75rem;
}

.mentions__container hr {
    border: solid 1px var(--gradient-color-primary-1);
    margin: auto;
    width: 20%;
}

.mentions__container details {
    text-align: center;
    margin: 1rem 0;
    cursor: pointer;
}

.mentions__container details > summary {
    -webkit-appearance: none;
    list-style-type: none;
    padding-bottom: 1.5rem;
    font-size: 0.875rem;
}

.mentions__container p {
    padding-bottom: 1rem;
}

.coordonnees__container .column {
    display: flex;
}
.coordonnees__container img {
    padding-right: 0.5rem;
}

/* Responsive */

@media screen and (min-width: 450px) {

    .title__page {
        max-width: none;
        font-size: 2.5rem;
    }

    .services__title {
        font-size: 1.75rem;
    }
}

@media screen and (min-width: 768px) {
    /* Menu responsive */
    header {
        flex-direction: row;
    }

    nav {
        width: auto;
        margin-left: auto;
    }

    .liste__nav{
        flex-direction: row;
        padding: 0;
    }

    /* Marges */

    header {
        margin: 0 2.5rem;
    }

    .title__site {
        display: block;
        font-size: 1.125rem;
    }

    section,
    .testimonials__site,
    .testimonials__site--home {
        padding: 7.5rem 4rem;
    }

    .main {
        margin-top: 7rem;
    }

    .title__page {
        padding: 0 10rem;
    }

    .services__chapo {
        padding: 0 4rem;
        max-width: 80%;
        margin: 0 auto;
    }

    /* Alignement */
        /* Hero */

    .hero__site {
        padding-top: 12rem;
        flex-direction: row;
        column-gap: 24px;
    }

    .hero__site h1 {
        text-align: start;
        max-width: 500px;
    }

/*    .hero__site img {
        align-self: flex-start;
    }*/

    .hero__container {
        margin: 2rem 1.5rem 0 0;
    }

    .hero__site .btn {
        margin: 3rem 0;
    }
        /* Témoignages */

    .testimonial__box {
        top: 10%;
    }

        /* Presentation */

    .services__wrapper {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        grid-row-gap: 16px;
        grid-column-gap: 32px;
    }

        /* Services */

    .services__presentation img {
        margin-bottom: 1.5rem;
    }

    .services__wraptext h2 {
        text-align: center;
    }

        /* Formulaire */
    .contact__container {
        padding: 0 8rem;
    }

    /* Composants */

    .testimonials__wrapper,
    .method__container,
    .tools__container{
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .testimonial__card,
    .step__card,
    .tools__card {
        width: 20rem;
    }

    .btn-large {
        padding: 1rem;
    }

    input[type=checkbox] {
        height: 16px;
        width: 16px;
    }

    /* Footer */

    .footer__container {
        margin-top: 3.5rem;
        display: grid;
        grid-template-areas:    "foot1 foot2"
                                "foot4 foot4";
        grid-template-columns: 1fr 1fr;
    }

    .resume__container {
        grid-area: foot1;
        padding-top: 0;
    }

    .coordonnees__container {
        grid-area: foot2;
        padding-top: 2rem;
    }

    .mentions__container {
        grid-area: foot4;
    }

}

@media screen and (min-width: 1024px) {
        /* Marges */
    section {
        padding: 7.5rem 6.25rem;
    }

    .testimonials__site--home h2,
    .testimonials__site h2 {
        margin-left: 2rem;
    }

    .services__chapo {
        padding-bottom: 7rem;
    }

    .hero__container{
        margin-top: 4rem;
    }

        /* Presentation */

    .emotional__site,
    .about__wrapper,
    .testimonials__wrapper,
    .services__presentation,
    .tools__container,
    .method__container {
        flex-direction: row;
    }

    .services__presentation:nth-child(2), 
    .services__presentation:nth-child(4) {
        flex-direction: row-reverse;
    }

    .about__site img,
    .services__presentation img {
        align-self: flex-start;
        margin-right: 4rem;
    }

    .emotional__site img,
    .about__wrapper img {
        margin-top: 3rem;
    }

    .text__container {
        margin-left: 4rem;
    }

    .emotional__site > div {
        align-self: flex-start;
    }

    .services__presentation:nth-child(2) img,
    .services__presentation:nth-child(4) img {
        margin-right: 0;
        margin-left: 4rem
    }

    .services__wrapper {
        grid-template-columns: repeat(2, 1fr);
    }

    .services__card {
        padding-left: 3.5rem;
        padding-right: 3.5rem;
    }

    .services__card h3 {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    .testimonials__wrapper {
        justify-content: space-evenly;
        align-items: stretch;
    }

    .testimonial__card {
        padding: 3.5rem 2rem 2rem;
    }

    .testimonial__card::before {
        margin-top: -5rem;
    }

    /* Page Services */

    .title__page {
        font-size: 2.5rem;
        padding: 0 18rem;
    }

    .services__wraptext {
        margin-top: 42px;
    }
    .services__wraptext h2{
        text-align: start;
    }

    .tools__container,
    .method__container {
        align-items: stretch;
    }

    .tools__card,
    .step__card {
        margin-right: 1rem;
    }

    .tools__card:last-child,
    .step__card:last-child {
        margin-right: 0;
    }

    /* Page Contact */
    .contact__container img {
        margin-left: 4rem;
    }

    /* Footer */

    .footer__container {
        margin-left: 8rem;
        margin-right: 8rem;
        grid-template-areas:    "foot1 foot2"
                                "foot 4 foot4";
        grid-template-columns: repeat(2, 1fr);
    }

    .resume__container {
        padding: 0 2rem 2rem 0;
    }

    .mentions__container {
        padding: 2rem 0 0;
    }

    .coordonnees__container {
        padding: 2rem;
    }

    .socials__container {
        padding: 2rem 0 2rem 2rem;
    }
}

@media screen and (min-width: 1100px) {
    .contact__container {
        flex-direction: row;
    }
}

@media screen and (min-width: 1280px) {
    section {
        padding: 7.5rem 12rem;
    }

    .hero__container{
        margin-top: 5rem;
    }
}

@media screen and (min-width: 1440px) {

    .hero__container{
        margin-top: 5rem;
    }
}