/* ---- FONTS ---- */
@font-face {
  font-family: "campton-light";
  src: url('../font/Campton-Light.ttf') format("truetype");
}
@font-face {
  font-family: "campton-semibold";
  src: url('../font/Campton-SemiBold.ttf') format("truetype");
}
@font-face {
  font-family: "campton-bold";
  src: url('../font/Campton-Bold.ttf') format("truetype");
}

/* ---- UTILITIES ---- */
:root {
  --mainPurple: #2B2C5B;
  --mainLightPurple: #8C94BD;
  --mainTeal: #009A98;
  --mainDarkTeal: #007C7B;
  --mainRed: #FEF0EE;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
}

html,
body {
  height: 100%;
}



body {
  font-family: "campton-light", system-ui, -apple-system, sans-serif;
  margin: 0;
  color: var(--mainPurple);
  background-image: url('../img/fond-image-quiz.webp');
}


main {
  display: flex;
  align-content: center;
  justify-content: center;
  align-items: center;
  min-height: calc(100vh - 6.875rem);
  padding: 2rem;
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
}

img {
  vertical-align: middle;
}

h1{
  font-family: "campton-semibold";
  font-size: 4.5rem;
  color: var(--mainTeal);
  letter-spacing: 2px;
  text-transform: uppercase;
}

h2{
  font-weight: bold;
  font-size: 24px;
  color: #fff;
}

.justify-center{
  justify-content: center!important;
}

.p-1{
  padding: 1rem;
}

.px-1{
  padding-right: 1rem;
  padding-left: 1rem;
}
      
.text-home{
  max-width: 28rem;
  margin: 0 auto;
  font-size: 1.875rem;
}

.text-home2{
  max-width: 28rem;
  margin: 0 auto;
  font-family: "campton-semibold";
  margin-bottom: 2rem;
  font-size: 1.5625rem;
  color: var(--mainTeal);
}

.btn-home{
  border: none;
  background: none;
  cursor: pointer;
  display: block;
  margin: 0 auto;
}

.arrow{
  width: 40%;
}

.rouge{
  color: #EC5764;
}

.orange{
 color: #F39200;
}

.jaune{
 color: #f3d700;
}

.vert{
  color: #B3B515;
}

.indigo{
  color: #2B5EAA;
}

.option-container.disabled .link {
  pointer-events: auto;
  cursor: pointer !important;
}

.quiz-card {
  position: relative;
  background: rgba(255, 255, 255, 1);
  padding: 3rem;
  border-radius: 1rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(209, 213, 219, 0.5);
  max-width: 75rem;
  width: 100%;
  margin: auto;
  text-align: center;
}


.question-counter {
  font-size: 1rem;
  color: var(--mainPurple);
  font-family: "campton-semibold";
  margin-bottom: 0.5rem;
  font-weight: 500;
  text-align: left;
  text-transform: uppercase;
  position: relative;
  left: -7.9%;
}

.question-mark{
  width: 4.875rem;
  margin-right: 1rem;
}

.question {
  font-size: 1.875rem;
  color: var(--mainTeal);
  font-weight: 600;
  margin-bottom: 1rem;
  max-width: 75%;
  margin: auto;
  letter-spacing: -1px;
}

.wave{
  margin: 1rem 0;
  width: 30%;
}

.options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3.5rem;
  text-align: left;
  margin-top: 4rem;
}

.option-number {
  width: 50px;
  height: 50px;
  position: absolute;
  top: 0; 
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
}

.option-container {
  display: flex;
  flex-direction: column;
  border: 5px solid var(--mainLightPurple); 
  outline: 3px solid var(--mainPurple);
  border-radius: 0.75rem;
  transition: all 0.2s;
  height: 100%;
  min-height: 420px;
  cursor: pointer;
  padding: 0.75rem;
  position: relative;
}

.option-container.disabled {
  pointer-events: none;
  cursor: not-allowed!important;
}

.option-container:hover:not(.disabled) {
  border-color: var(--mainTeal);
  transform: scale(1.02);
}

.option {
  padding: 0.5rem 1rem;
  transition: all 0.2s;
  text-align: left;
  font-size: 1.125rem;
  background: none;
  width: 100%;
  border: none;
  flex: 0 0 auto;
}

.tag{
  background-color: #EBF5F6;
  border: 1px solid var(--mainDarkTeal) ;
  font-family: "campton-bold";
  padding: 0rem 0.2rem;
  border-radius: 4px;
}

.option:disabled {
  cursor: not-allowed;
}


.option-container.incorrect .option-content {
  border: none;
  background-color: var(--mainRed);
}

.option-content{
  border: 2px solid var(--mainPurple);
  height: 100%;
  padding-top: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.gap{
  gap: 7rem;
  justify-content: start;
}

.space-between{
  justify-content: space-between!important;
}

.option-content:has(.explanation){
  justify-content: start;
  gap: 0;
}

.explanation{
  padding: 1.5rem;
}

.option-image {
  width: 100%;
  object-fit: cover;
}

.arrow-right {
  width: 1rem;
  margin-right: 4px;
}

.status{
  padding-bottom: 1rem;
}

.status img{
  width: inherit;
  max-height: 2rem;
  padding-right: 0.5rem;
}

.btn {
  background-color: var(--mainTeal);
  color: white;
  padding: 0.75rem 2rem;
  border-radius: 1.75rem;
  font-weight: 500;
  letter-spacing: 1px;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s;
}

.btn:hover {
  background-color: var(--mainDarkTeal);
}

.text-center {
  text-align: center;
}

.score {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.next-button {
  display: inline-block;
  margin-top: 2rem;
  text-decoration: none;
}

 
/* ---- FOOTER ---- */ 
footer {
  
  background-color: #fff;
  text-align: center;
  padding: 1.275rem;
  
}

.wrap{

  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: space-evenly;
  align-items: center;
}

footer .wrap div{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}

footer p {
  font-family: "Lato", Arial, Helvetica, sans-serif;
  color: #2b2b5a;
  font-size: 1rem;
  text-align: left;
}


.logo-footer {
  max-width: 6rem;
}



@media (max-width: 599px){
  h1{
    font-size: 2rem;
  }
  .text-home{
    font-size: 1.5rem;
  }
  .text-home2{
    font-size: 1.4rem;
  }

  .question{
    font-size: 1.3rem;
    max-width: 100%;
  }

  .logo-home{
    width: 100%;
  }

}