/* modules/head.php [1] */
:root {
  --blue: #014f9d;
  --light-blue: #ebf1f7;

  --green: #008000;
  --light-green: #d9ecd9;

  --black: #1d1d1f;
  --grey: #6e6e73;

  --red: #de1f1f;

  --alt-blue: #2567ab;

  --border-color: #6491bf;
  --alt-border-color: #e1e1e1;

  --header-height: 60px;
  --footer-height: 70px;

  --box-shadow: 0px 1px 3px 1px #00000033;
  --box-shadow-bottom: 0px 2px 3px -1px #00000033;

  --transition: 120ms;
  --font-size: 16px;

  --max-width: 1200px;
  --padding: 0px clamp(10px, 3vw, 25px);

  --gap: clamp(10px, 3vw, 25px);

  --background-color: #ffffff;
}

* {
  border: none;
}

*,
:after,
:before {
  box-sizing: border-box;
}

body {
  font-family: Poppins;
  font-size: var(--font-size);
  color: var(--black);
  fill: var(--grey);
  line-height: 1.4em;
  background-color: var(--background-color);
  -webkit-tap-highlight-color: transparent;
  overflow-y: auto;
}

h1,
h2,
h3 {
  line-height: 1.1em;
  font-weight: 700;
  color: var(--blue);
  margin: 0;
  padding: 0 !important;
}

h1 {
  font-size: 30px;
  margin: 0 !important;
}

h2 {
  font-size: 23px;
  margin: 0 !important;
}

ul {
  margin: 0;
}

body,
html {
  padding: 0;
  margin: 0;
}

html {
  scroll-behavior: smooth;
}

a,
button,
input,
option,
select,
textarea,
div {
  font-family: inherit;
  font-size: inherit;
  font-style: inherit;
  font-weight: inherit;
  outline: 0;
  margin: 0;
  background: none;
  line-height: inherit;
}

input,
button,
select,
textarea,
optgroup,
option {
  font-family: inherit;
  font-size: inherit;
  font-style: inherit;
  font-weight: inherit;
  color: inherit;
}

button {
  touch-action: manipulation;
}

button,
[data-click-event],
summary {
  cursor: pointer;
}

a {
  text-decoration: none;
  color: inherit;
}

#footer-center-box > a:hover {
  text-decoration: underline;
}

::placeholder {
  color: var(--grey);
}

svg {
  height: 14px;
  width: 14px;
  flex-shrink: 0;
}

.logo {
  font-size: 24px;
  color: white;
  cursor: pointer;
  font-weight: 700;
  white-space: nowrap;
}

.box {
  padding: 20px;
  background-color: white;
  border-radius: 3px;
  box-shadow: var(--box-shadow);
}

input[type="text"],
select,
input[type="number"] {
  border: 1px solid var(--alt-border-color);
  border-radius: 3px;
  padding: 10px;
  background-color: white;
}

main {
  margin-top: var(--header-height);
  max-width: var(--max-width);
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding: var(--padding);
  padding-top: 30px;
  padding-bottom: 30px;
  min-height: calc(100% - var(--header-height) - var(--footer-height));
}

.layer {
  position: absolute;
  z-index: 10;
  top: 0;
  left: 0;
  width: fit-content;
  height: fit-content;
  display: flex;
  flex-direction: column;
  box-shadow: var(--box-shadow);
  transition: transform 200ms ease, opacity 200ms ease;
  transform-origin: top center;
}

.layer.layer-opening {
  opacity: 0;
  transform: translateY(-10px);
}

.layer.layer-opening.layer-opening-active {
  opacity: 1;
  transform: translateY(0);
}

.layer.layer-closing {
  opacity: 1;
  transform: translateY(0);
}

.layer.layer-closing.layer-closing-active {
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
}

@media (min-width: 801px) {
  [data-device="desktop"] {
    display: flex !important;
  }

  [data-device="mobile"] {
    display: none !important;
  }

  table[data-device] {
    display: table !important;
  }

  .page-test-main {
    min-height: calc(100vh - var(--header-height) - var(--footer-height));
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  #test {
    max-width: 900px;
    margin: 0 auto;
  }

  /* pages/verify.php [2] */
  #verify {
    max-width: 900px;
    margin: 0 auto;
  }
}

@media (max-width: 800px) {
  [data-index-element="right-box"] {
    padding: 0px !important;
  }

  [data-certificate-element="badge"] {
    width: 60px !important;
    height: 60px !important;
  }

  [data-certificate-element="footer"] {
    flex-wrap: wrap;
  }

  [data-index-element="iq-stats-tables"] {
    grid-template-columns: 1fr !important;
  }

  tr[data-device="mobile"] {
    display: table-row !important;
  }

  [data-device="mobile"] {
    display: flex !important;
  }

  [data-device="desktop"] {
    display: none !important;
  }

  #footer-center-box,
  [data-footer-element="content"] {
    flex-direction: column;
    align-items: center;
    flex-wrap: nowrap !important;
    padding-top: 5px !important;
    padding-bottom: 5px !important;
  }

  [data-footer-element="content"] {
    padding-top: 15px !important;
    padding-bottom: 15px !important;
  }

  [data-test-element="content"] {
    flex-direction: column;
  }

  :root {
    --footer-height: 190px;
  }

  [data-element="test-details"] {
    grid-template-columns: 1fr 1fr !important;
    grid-template-rows: 1fr 1fr !important;
  }

  [data-element="test-details"] > div:nth-child(2) {
    border-right: none;
  }

  [data-stats-element="age-sex-content"] {
    flex-direction: column;
  }

  [data-stats-element="world-countries"] {
    grid-template-columns: 1fr 1fr !important;
    justify-content: space-between;
  }

  #test {
    margin: var(--padding);
    margin-top: calc(var(--header-height) + var(--gap)) !important;
    margin-bottom: calc(var(--header-height) + var(--gap)) !important;
    width: calc(100% - var(--gap) * 2) !important;
  }

  #test h1 {
    margin-top: 0px !important;
  }

  main {
    padding: 0px !important;
    display: flex;
    flex-direction: column;
  }

  .box {
    border-radius: 0px;
  }

  [data-mobile-column] {
    flex-direction: column !important;
  }

  /* pages/verify.php [3] */
  #verify {
    width: 100%;
    /* mirror test page spacing to avoid header overlap and footer crowding */
    margin-top: calc(var(--header-height) + var(--gap));
    margin-bottom: calc(var(--header-height) + var(--gap));
    box-sizing: border-box;
    padding: 20px; /* ensure inner spacing on mobile */
  }
  /* Keep footer at bottom and center verify content vertically on mobile */
  .page-verify-main {
    min-height: calc(100vh - var(--header-height) - var(--footer-height));
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  body.page-verify {
    overflow-x: hidden;
  }
}

/* pages/verify.php [final mobile override] */
@media (max-width: 800px) {
  .page-verify-main {
    min-height: calc(100vh - var(--header-height) - var(--footer-height));
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
}

@keyframes shake {
  0% {
    transform: translateX(-10px);
  }

  25% {
    transform: translateX(10px);
  }

  50% {
    transform: translateX(-10px);
  }

  100% {
    transform: translateX(0px);
  }
}

.shake {
  animation: shake 0.2s ease-in-out 0s 2;
}

.green-box,
.orange-box,
.red-box {
  margin: 0 auto;
  border: 1px solid var(--green);
  border-radius: 3px;
  color: var(--green);
  padding: 6px 18px;
  background: var(--light-green);
  display: block;
  width: fit-content;
}

.orange-box {
  border: 1px solid orange;
  color: orange;
  background: rgb(255, 243, 221);
}

strong {
  font-weight: 600;
}

.red-box {
  border: 1px solid var(--red);
  color: var(--red);
  background: #ffecec;
}

/* modules/head.php [2] */
.overflow-y-hidden {
  overflow-y: hidden !important;
}

/* modules/header.php [1] */
#header-center-box a {
  color: white;
  text-transform: uppercase;
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0px 12px;
  font-weight: 500;
  white-space: nowrap;
}

#header-center-box a:hover {
  background: var(--alt-blue);
}

#header-menu a {
  transition: background-color 180ms ease, color 180ms ease;
}

#header-menu a:hover,
#header-menu a:focus,
#header-menu a:active {
  background: white;
  color: var(--blue);
}

.red-trigger,
.blue-trigger {
  background-color: var(--red);
  color: white;
  border-radius: 3px;
  padding: 6px 12px;
  font-size: var(--font-size);
  font-weight: 500;
  width: fit-content;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.blue-trigger {
  background-color: var(--blue);
}

.red-trigger:hover {
  background: #ab1e1e;
}

.blue-trigger:hover {
  background: #00356a;
}

.opacity-trigger,
a,
.brightness-trigger {
  transition: var(--transition);
}

.opacity-trigger:hover {
  opacity: 0.8;
}

.disabled-trigger {
  opacity: 0.5 !important;
  pointer-events: none !important;
}

.brightness-trigger:hover {
  filter: brightness(0.9);
}

/* modules/header.php [2] */
#header-menu > * {
  color: white;
  text-align: center;
  padding: 10px 5px;
  border-top: 1px solid var(--border-color);
  text-transform: uppercase;
}

.center-layer {
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  margin: auto;
  width: fit-content;
  height: fit-content;
}

/* modules/header.php [3] */
.display-none {
  display: none !important;
}

/* modules/footer.php [1] */
#footer-center-box a {
  color: white;
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0px 8px;
  text-transform: uppercase;
  font-weight: 500;
}

/* pages/test.php [1] */
.page-test-main {
  min-height: auto;
}

@media (min-width: 801px) {
  .page-test-main {
    min-height: calc(100vh - var(--header-height) - var(--footer-height));
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  #test {
    max-width: 900px;
    margin: 0 auto;
  }

  /* pages/verify.php [2] */
  #verify {
    max-width: 900px;
    margin: 0 auto;
  }
}

/* pages/test.php [2] */
@media (max-width: 800px) {
  body.page-test {
    overflow-x: hidden;
  }

  #test {
    width: 100%;
    margin: var(--gap) 0;
    box-sizing: border-box;
  }

  /* pages/verify.php [3] */
  #verify {
    width: 100%;
    /* mirror test page spacing to avoid header overlap and footer crowding */
    margin-top: calc(var(--header-height) + var(--gap));
    margin-bottom: calc(var(--header-height) + var(--gap));
    box-sizing: border-box;
    padding: 20px; /* ensure inner spacing on mobile */
  }
  /* Keep footer at bottom and center verify content vertically on mobile */
  .page-verify-main {
    min-height: calc(100vh - var(--header-height) - var(--footer-height));
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  h1 {
    text-align: center;
  }

  [data-click-event="previousQuestion"] {
    font-size: 16px !important;
  }

  [data-click-event="previousQuestion"] svg {
    width: 14px !important;
  }
}

/* pages/test.php [3] */
.urgent-countdown {
  color: var(--red) !important;
  fill: var(--red);
}

/* pages/test.php [4] */
[data-test-element="left-box"],
[data-test-element="right-box"] {
  background: #ececec;
  flex: 1;
  font-size: 50px;
  font-weight: 500;
  color: var(--blue);
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  overflow: hidden;
  gap: 10px;
}

[data-test-element="right-box"] {
  background-color: white;
  padding: 0px;
}

[data-test-element="left-box"] > div {
  display: flex;
  align-items: center;
  justify-content: center;

  font-weight: 500;
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 100%;
}

[data-test-element="left-box"] > div > span {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  margin: auto;
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
}

[data-test-element="right-box"] > * {
  /* border: 2px solid #B5CCE2; */
  position: relative;
  font-weight: 500;

  width: 100%;
  height: 0;
  padding-bottom: 100%;
}

[data-click-event="answer"] {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  margin: auto;
  border: 2px solid #b5cce2;
  border-radius: 3px;
  color: var(--blue);
  padding: 22px;
}

[data-test-element="right-box"] > *:nth-child(1) [data-click-event="answer"],
[data-test-element="right-box"] > *:nth-child(2) [data-click-event="answer"],
[data-test-element="right-box"] > *:nth-child(3) [data-click-event="answer"] {
  margin-top: 0px;
}

[data-test-element="right-box"] > *:nth-child(4) [data-click-event="answer"],
[data-test-element="right-box"] > *:nth-child(5) [data-click-event="answer"],
[data-test-element="right-box"] > *:nth-child(6) [data-click-event="answer"] {
  margin-bottom: 0px;
}

[data-test-element="right-box"] > *:nth-child(1) [data-click-event="answer"],
[data-test-element="right-box"] > *:nth-child(4) [data-click-event="answer"] {
  margin-left: 0px;
}

[data-test-element="right-box"] > *:nth-child(3) [data-click-event="answer"],
[data-test-element="right-box"] > *:nth-child(6) [data-click-event="answer"] {
  margin-right: 0px;
}

[data-test-element="question-mark"] {
  color: var(--red);
}

[data-test-element="right-box"] img {
  width: 100%;
  height: 100%;
}

/*display: grid;grid-template-columns: 1fr 1fr 1fr;grid-template-rows: 1fr 1fr;flex: 1;*/

/* pages/test.php [5] */
.opacity-0 {
  opacity: 0 !important;
}

[data-test-element="content"][type="image"]
  [data-test-element="left-box"]
  > div {
  display: none !important;
}

[data-test-element="content"][type="image"] [data-test-element="left-box"] {
  display: flex !important;
}

[data-click-event="answer"] > span:first-child {
  position: absolute;
  top: 5px;
  left: 5px;
  font-size: var(--font-size);
}

/* pages/result.php [1] */
.grey-trigger {
  border: 1px solid #a5a5a5;
  color: #7f8086;
  padding: 6px 12px;
  border-radius: 3px;
}

/* pages/result.php [3] */
#result[data-faq-question-displayed-results="false"]
  [data-result-element="get-qi-box"] {
  display: flex !important;
}

#result[data-faq-question-displayed-results="false"]
  [data-result-element="iq-result"],
#result[data-faq-question-displayed-results="false"]
  [data-result-element="iq-age"],
#result[data-faq-question-displayed-results="false"]
  [data-result-element="iq-graduation"],
#result[data-faq-question-displayed-results="false"]
  [data-result-element="iq-job"],
#result[data-faq-question-displayed-results="false"]
  [data-result-element="iq-country"],
#result[data-faq-question-displayed-results="false"]
  [data-result-element="iq-certificate"],
#result[data-faq-question-displayed-results="false"]
  [data-result-element="iq-summary"] {
  filter: blur(6px);
  pointer-events: none;
  user-select: none;
}

#result[data-faq-question-displayed-results="false"] > .box:first-child p {
  margin-bottom: 0px;
}

#result[data-faq-question-displayed-results="false"]
  [data-result-element="iq-summary"]
  strong {
  color: var(--black) !important;
}

#result[data-faq-question-displayed-results="false"] .green-box,
#result[data-faq-question-displayed-results="false"] .orange-box,
#result[data-faq-question-displayed-results="false"] .red-box {
  display: none !important;
}

/* pages/result.php [4] */
body.page-result #header-right-box [href="/test"] {
  display: none !important;
}

body.page-result #header-right-box [data-layer-selector="#pay-layer"] {
  display: block !important;
}

/* pages/result.php [5] */
@media (max-width: 800px) {
  [data-result-element="iq-graph-position"] > span {
    bottom: -19px !important;
  }
}

/* pages/result.php [6] */
.red {
  color: var(--red);
}

.orange {
  color: orange;
}

.green {
  color: green;
}

/* pages/result.php [7] */
.checked-trigger {
  color: var(--blue) !important;
  border-color: var(--blue) !important;
}

/* pages/result.php [8] */
.return-trigger {
  cursor: pointer;
  box-shadow: var(--box-shadow);
  border-radius: 50px;
  width: 26px;
  height: 26px;
  padding: 7px;
}

/* pages/result.php [9] */
/* MEDIA QUERY pour mobile : pop-up paiement 100% plein écran */
@media (max-width: 800px) {
  /* ou 600px selon vos préférences */

  #pay-layer.center-layer.fullscreen-layer {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    transform: none !important;
    width: 100vw !important;
    height: 100vh !important;
    max-width: 100vw !important;
    max-height: 100vh !important;
    border-radius: 0 !important;
    margin: 0 !important;
    overflow-y: auto !important;
  }
}

/* pages/index.php [1] */
.info-text {
  color: var(--grey);
  font-size: 13px;
}

.user-test:last-of-type {
  border-bottom: none !important;
}

.blog-post:hover img {
  transform: scale(1.07);
  filter: brightness(0.8);
}

.blog-post {
  cursor: pointer;
  border-radius: 3px;
  overflow: hidden;
  flex: 1;
  max-height: 300px;
  display: flex;
  background: white;
}

[data-blog-post-element="image-container"] {
  height: 100%;
  width: 60%;
  overflow: hidden;
}

.blog-post img {
  height: 100%;
  object-fit: cover;
  width: 100%;
  transition: 300ms;
}

.ellipsis {
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  display: block;
}

[data-blog-post-element="infos-container"] {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 15px 20px;
}

[data-blog-post-element="keyword"] {
  text-transform: uppercase;
  color: var(--grey);
  font-weight: 500;
  font-size: 13px;
}

[data-blog-post-element="infos-container"] h2 {
  margin-top: 4px;
  color: var(--black);
}

[data-blog-post-element="date"] {
  color: var(--grey);
  font-size: 13px;
  font-weight: 500;
  margin-top: auto;
}

.blog-posts-list {
  display: flex;
  gap: var(--gap);
  flex-wrap: wrap;
}

.blog-posts-list .blog-post {
  flex-direction: column;
  max-height: 450px;
}

.blog-posts-list .blog-post [data-blog-post-element="image-container"] {
  width: 100%;
  height: 50%;
}

.map-location {
  position: absolute;
  width: 15px;
  height: 15px;
  border: 2px solid var(--blue);
  z-index: 2;
  border-radius: 50%;
  background: radial-gradient(var(--blue) 45%, transparent 55%);
  display: flex;
  justify-content: center;
}

.map-location::after {
  content: attr(data-location-text);
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #333;
  border-radius: 3px;
  padding: 5px 8px;
  color: white;
  width: fit-content;
  position: absolute;
  bottom: calc(100% + 6px);
  white-space: nowrap;
  opacity: 0;
  transition: var(--transition);
}

.map-location:hover::after {
  opacity: 1;
}

.location-foreground {
  z-index: 3 !important;
}

[data-stats-element="world-countries"] img {
  width: 14px;
  height: 14px;
}

[data-stats-element="world-countries"] span {
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  overflow: hidden;
}

[data-stats-element="world-countries"] strong {
  font-weight: 600;
}

.faq-container > div {
  display: flex;
  flex-direction: column;
}

.faq-container button {
  padding: 16px 6px;
  text-align: left;
  border-top: 1px solid #d3d3d3;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.faq-question-container:last-child {
  border-bottom: 1px solid #d3d3d3;
}

.faq-question-container svg {
  transition: var(--transition);
}

.faq-question-container[data-faq-question-displayed="true"] svg {
  transform: rotate(180deg);
  fill: var(--blue);
}

.faq-answer {
  height: 0px;
  overflow: hidden;
  transition: 150ms;
  padding: 0px 6px;
}

.faq-answer p {
  margin: 0;
}

.faq-answer > *:last-child {
  padding-bottom: 16px;
}

[data-faq-question-displayed="true"] [data-click-event="toggleFAQQuestion"] {
  color: var(--blue);
}

/* pages/index.php [2] */
[data-element="test-details"] > div {
  border-right: 1px solid var(--border-color);
  color: white;
  display: flex;
  align-items: center;
  gap: 3px;
  justify-content: center;
}

[data-element="test-details"] > div:last-child {
  border: none;
}

#background-layer {
  background: #00000033;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* pages/verify.php [1] */
.page-verify-main {
  min-height: auto;
}

@media (min-width: 801px) {
  .page-verify-main {
    min-height: calc(100vh - var(--header-height) - var(--footer-height));
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
}
