* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-family: sans-serif;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
}

body {
  margin: 0;
}

img {
  max-width: 100%;
}

article,
aside,
details,
figcaption,
figure,
footer,
header,
main,
menu,
nav,
section,
summary {
  display: block;
}

audio,
canvas,
progress,
video {
  display: inline-block;
  vertical-align: baseline;
}

audio:not([controls]) {
  display: none;
  height: 0;
}

[hidden],
template {
  display: none;
}

a {
  background-color: transparent;
}

a:active,
a:hover {
  outline: 0;
}

abbr[title] {
  border-bottom: 1px dotted;
}

b,
strong {
  font-weight: bold;
}

dfn {
  font-style: italic;
}

h1 {
  margin: 0;
}

mark {
  background: #ff0;
  color: #000;
}

small {
  font-size: 80%;
}

sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sup {
  top: -0.5em;
}

sub {
  bottom: -0.25em;
}

img {
  border: 0;
}

svg:not(:root) {
  overflow: hidden;
}

hr {
  box-sizing: content-box;
  height: 0;
}

pre {
  overflow: auto;
}

button,
input,
optgroup,
select,
textarea {
  color: inherit;
  font: inherit;
  margin: 0;
}

button {
  overflow: visible;
}

button,
select {
  text-transform: none;
}

button,
html input[type=button],
input[type=reset],
input[type=submit] {
  -webkit-appearance: button;
  cursor: pointer;
}

button[disabled],
html input[disabled] {
  cursor: default;
}

button::-moz-focus-inner,
input::-moz-focus-inner {
  border: 0;
  padding: 0;
}

input {
  line-height: normal;
}

input[type=checkbox],
input[type=radio] {
  box-sizing: border-box;
  padding: 0;
}

input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
  height: auto;
}

input[type=search] {
  -webkit-appearance: textfield;
  box-sizing: content-box;
}

input[type=search]::-webkit-search-cancel-button,
input[type=search]::-webkit-search-decoration {
  -webkit-appearance: none;
}

fieldset {
  border: 1px solid #c0c0c0;
  margin: 0 2px;
  padding: 0.35em 0.625em 0.75em;
}

legend {
  border: 0;
  padding: 0;
}

textarea {
  overflow: auto;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* FONT FACE */
/* Imports des fonts */
@font-face {
  font-family: "Poppins";
  src: url("../fonts/Poppins/Poppins-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
}
@font-face {
  font-family: "Poppins";
  src: url("../fonts/Poppins/Poppins-Light.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
}
@font-face {
  font-family: "Poppins";
  src: url("../fonts/Poppins/Poppins-Medium.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
}
@font-face {
  font-family: "Poppins";
  src: url("../fonts/Poppins/Poppins-Bold.ttf") format("truetype");
  font-weight: 800;
  font-style: normal;
}
@font-face {
  font-family: "Poppins";
  src: url("../fonts/Poppins/Poppins-Italic.ttf") format("truetype");
  font-weight: 400;
  font-style: italic;
}
@font-face {
  font-family: "StingerFitTrial";
  src: url("../fonts/stinger-fit-trial/StingerFitTrial-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
}
/* VARIABLES */
/*********
* GLOBAL *
*********/
body {
  overflow-x: hidden;
  scroll-behavior: smooth;
  color: #1D1D1B;
  font-family: "Poppins", sans-serif;
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
  color: #1D1D1B;
  transition: 0.3s;
}
a:hover {
  color: #1D1D1B;
}

img {
  max-width: 100%;
}

p {
  line-height: 1.4;
}
p:not(:last-of-type) {
  margin-bottom: 0.625rem;
}

strong {
  font-weight: 800;
}

/* Global */
h1,
h2 {
  font-family: "StingerFitTrial", sans-serif;
  margin-bottom: 1rem;
  font-weight: 400;
  position: relative;
  z-index: 2;
}
h1 strong,
h2 strong {
  position: relative;
  display: inline-block;
  color: #1D1D1B;
}
h1 strong::before,
h2 strong::before {
  content: "";
  position: absolute;
  left: -0.5rem;
  right: -0.5rem;
  bottom: -10%;
  height: 110%;
  background-color: #EDE259;
  transform: rotate(-1deg);
  z-index: -1;
}

h1 {
  font-size: 2.25rem;
  line-height: 1.1;
}

h2 {
  font-size: 1.75rem;
  line-height: 1.1;
}

.btn {
  background-color: #2E4995;
  padding: 0.5rem 1.25rem;
  display: block;
  color: #fff;
  width: -moz-fit-content;
  width: fit-content;
  margin: 2rem 0;
  border: #2E4995 1px solid;
}
.btn:hover {
  background-color: #fff;
  color: #2E4995;
  border: #2E4995 1px solid;
}
.btn--blanc {
  background-color: #fff;
  color: #2E4995;
  border: #2E4995 1px solid;
}
.btn--blanc:hover {
  background-color: #2E4995;
  color: #fff;
  border: #fff 1px solid;
}

section,
main,
footer {
  padding: 4rem 10%;
}

/* Responsive desktop */
@media (min-width: 1170px) {
  section,
  main,
  footer {
    padding: 6rem 10%;
  }
  h2 {
    font-size: 2rem;
  }
}
@media (min-width: 1500px) {
  section,
  main,
  footer {
    padding: 6rem 15%;
  }
  h1 {
    font-size: 3rem;
  }
  h2 {
    font-size: 2.5rem;
  }
}
.flex {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
  justify-content: center;
}
@media (min-width: 970px) {
  .flex {
    flex-direction: row;
    justify-content: space-between;
    gap: 7rem;
    align-items: stretch;
  }
  .flex .container {
    width: 55%;
    align-self: center;
  }
  .flex .image {
    width: 45%;
    -o-object-fit: cover;
       object-fit: cover;
  }
  .flex--reverse {
    flex-direction: row-reverse;
  }
}

.hero .image {
  max-width: 100%;
  -o-object-fit: contain;
     object-fit: contain;
}
@media (min-width: 1170px) {
  .hero {
    padding-top: 10rem;
  }
}

@media (min-width: 1170px) {
  .header-decale ~ .hero {
    padding-top: 12rem;
  }
}

/*********
* HEADER *
*********/
.header {
  width: 100vw;
  position: fixed;
  z-index: 5;
  top: 0;
  display: flex;
}
.header .menu {
  min-height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: center;
  gap: 2rem;
  padding-bottom: 40vh;
  font-size: 1.125rem;
}
.header .menu > a {
  text-align: center;
}
.header .menu__logo {
  width: 100%;
  -o-object-fit: contain;
     object-fit: contain;
}
.header .menu__container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
  width: 70%;
}
.header .menu__container a {
  position: relative;
  display: inline-block;
}
.header .menu__container a:hover::before {
  content: "";
  position: absolute;
  left: -0.5rem;
  right: -0.5rem;
  bottom: -10%;
  height: 110%;
  background-color: #EDE259;
  transform: rotate(-1deg);
  z-index: -1;
}

.menu__reseaux {
  display: flex;
  gap: 2rem;
}

.checkbox {
  display: none;
}

/* Responsive desktop */
@media (min-width: 1170px) {
  .header {
    width: 100vw;
    position: fixed;
    background: rgba(255, 255, 255, 0);
    backdrop-filter: blur(0);
    transition: backdrop-filter 0.3s ease;
  }
  .header-decale {
    padding-top: 3rem;
  }
  .header.scrolled {
    backdrop-filter: blur(3px);
    background: rgba(255, 255, 255, 0.5);
  }
  .header.scrolled .menu__logo {
    height: 5rem;
  }
  .header .menu {
    flex-direction: row;
    min-height: initial;
    justify-content: space-between;
    align-items: center;
    gap: 5%;
    padding: 1rem 10%;
    padding-bottom: 0;
  }
  .header .menu__logo {
    height: 8rem;
    transition: 0.3s height;
    filter: none;
  }
  .header .menu__container {
    flex-direction: row;
    gap: 5%;
    align-items: center;
    width: 100%;
    justify-content: center;
  }
}
/* Menu burger mobile */
@media screen and (max-width: 1170px) {
  .checkbox {
    display: block;
    width: 40px;
    height: 32px;
    position: absolute;
    top: 1rem;
    left: 1rem;
    cursor: pointer;
    opacity: 0;
    z-index: 2;
    -webkit-touch-callout: none;
  }
  .burger {
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 1;
    background: #2E4995;
    padding: 0.5rem;
    border-radius: 50%;
    height: 45px;
    width: 45px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }
  .burger span {
    display: block;
    width: 100%;
    height: 4px;
    margin-bottom: 5px;
    position: relative;
    background: #fff;
    border-radius: 3px;
    z-index: 1;
    transform-origin: 4px 0px;
    transition: transform 0.5s cubic-bezier(0.77, 0.2, 0.05, 1), background 0.5s cubic-bezier(0.77, 0.2, 0.05, 1), opacity 0.55s ease;
  }
  .burger span:last-child {
    margin-bottom: 0;
  }
  .burger span:first-child {
    transform-origin: 0% 0%;
  }
  .burger span:nth-last-child(1) {
    transform-origin: 0% 100%;
  }
  /* Transformer le burger en croix */
  .header .checkbox:checked ~ .burger span {
    opacity: 1;
    transform: rotate(45deg) translate(2.5px, -4.5px);
    background: #fff;
  }
  .header .checkbox:checked ~ .burger span:nth-last-child(2) {
    opacity: 0;
    transform: rotate(0deg) scale(0.2, 0.2);
  }
  .header .checkbox:checked ~ .burger span:nth-last-child(1) {
    transform: rotate(-45deg) translate(4px, 3px);
  }
  .header .menu {
    position: absolute;
    top: 0;
    left: 0;
    transform-origin: 0% 0%;
    transform: translate(-100%, 0);
    transition: transform 0.5s cubic-bezier(0.77, 0.2, 0.05, 1);
    width: 50%;
    background-color: #fff;
  }
  .header .menu__logo {
    width: 8rem;
  }
  .header .menu__container li a {
    color: #1D1D1B;
    font-weight: 200;
    position: relative;
  }
  .header .menu__container > :not(:last-child)::after {
    position: absolute;
    content: "";
    background-color: #EDE259;
    width: 2rem;
    height: 2px;
    bottom: -0.5rem;
    left: 0;
  }
  .header .checkbox:checked ~ .menu {
    transform: none;
    padding-top: 2rem;
  }
}
@media screen and (max-width: 650px) {
  .header .menu {
    width: 100%;
  }
}
/*********
* FOOTER *
*********/
.footer {
  display: flex;
  flex-direction: column;
  position: relative;
  gap: 2rem;
  justify-content: center;
}
.footer h2 {
  font-size: 1.5rem;
  margin: 0;
}
.footer h3 {
  font-size: 1rem;
  font-style: italic;
  font-weight: 400;
}
.footer a {
  color: #1D1D1B;
}
.footer a:hover {
  color: #2E4995;
}
.footer > div:first-of-type {
  flex-direction: row;
  gap: 0.5rem 2rem;
  flex-wrap: wrap;
  align-items: center;
}
.footer > div:first-of-type span {
  display: block;
  font-size: 20px;
}
.footer__div {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: flex-start;
}
.footer__div > img {
  width: 22px;
  height: 22px;
  -o-object-fit: contain;
     object-fit: contain;
}
.footer__contact {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.footer__logo {
  width: 8rem;
}
.footer .reseaux-sociaux {
  margin-top: 0.5rem;
}
.footer__copyright {
  position: absolute;
  bottom: 2rem;
}
.footer > div:last-of-type p {
  font-size: 1.1rem;
}

/* Contexte page */
.defaut ~ .footer,
.erreur404 ~ .footer {
  background-color: #2E4995;
  color: #fff;
}
.defaut ~ .footer a,
.erreur404 ~ .footer a {
  color: #fff;
}
.defaut ~ .footer .reseaux-sociaux,
.erreur404 ~ .footer .reseaux-sociaux {
  filter: brightness(10);
}

/* Responsive */
@media (min-width: 770px) {
  .footer__contact {
    flex-direction: row;
    gap: 3rem;
  }
}
@media (min-width: 1170px) {
  .footer {
    flex-direction: row;
    gap: 3rem;
    justify-content: center;
  }
  .footer > .footer__div {
    flex: 1;
  }
  .footer__contact {
    flex: 2;
    justify-content: space-around;
  }
}
/*********
* PAGES PAR DEFAUT
*********/
.defaut__titre {
  margin-bottom: 3rem;
  position: relative;
  display: inline-block;
  left: 50%;
  transform: translateX(-50%);
}
.defaut__titre::before {
  content: "";
  position: absolute;
  left: -0.5rem;
  right: -0.5rem;
  bottom: -10%;
  height: 110%;
  background-color: #EDE259;
  transform: rotate(-1deg);
  z-index: -1;
}
.defaut h2 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}
.defaut a {
  text-decoration: underline;
}
.defaut a:hover {
  color: #2E4995;
}
.defaut ol,
.defaut ul {
  padding-left: 2rem;
  margin-bottom: 1rem;
}
.defaut ul {
  list-style: initial;
}

/* Responsive desktop */
@media (min-width: 1170px) {
  .defaut {
    padding-top: 15rem;
  }
}
/*********
* BADGE ECOINDEX
*********/
#ecoindex-badge {
  display: none;
}
@media (min-width: 1170px) {
  #ecoindex-badge {
    display: block;
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    z-index: 2;
  }
}

/*********
* BACK TO UP
*********/
.back-to-up {
  opacity: 0;
  position: fixed;
  bottom: 1.25rem;
  right: 1rem;
  text-align: center;
  border-radius: 5px;
  z-index: 3;
  transition: opacity 0.5s ease-in-out;
}
@media screen and (max-width: 650px) {
  .back-to-up > img {
    width: 2.5rem;
    right: 1rem;
  }
}

.qsm-results-page .qmn_image_option, .quiz_section .qmn_image_option {
  height: initial !important;
}

.qmn_quiz_container .qsm-pagination .qmn_btn, .qmn_quiz_container .qsm-pagination .btn {
  color: #fff !important;
  background: #2c4891 !important;
}

.qsm-page {
  padding: 0;
}
@media (min-width: 1170px) {
  .qsm-page {
    padding: 0 10%;
  }
}

@media (min-width: 1170px) {
  .qsm-results-page .qmn_image_option, .quiz_section .qmn_image_option {
    padding: 1rem 3rem !important;
  }
}