/* CSS Document */
/* Import de la police */
@font-face {
    font-family: "Exo";
    src:
      url("fonts/Exo-Regular.ttf");
  }
@font-face {
    font-family: "ExoMedium";
    src:
      url("fonts/Exo-Medium.ttf");
  }

/* variables couleurs et typo*/
:root {
    --plie-rouge: #DD4439;
    --plie-orange: #E77C34;
    --plie-jaune: rgb(238, 197, 50);
    --plie-vert: #37B4A7;
    --plie-vert-2: rgb(0, 129, 116);
    --plie-bleu: #2670AA;
    --europe-bleu: #003399;
    --europe-or: #FFCC00;
    --bg-gris: #efefef;
    --line-border-fill: var(--plie-jaune);
    --line-border-empty: #e0e0e0;
    --font-family: 'Exo', sans-serif;
    --font-family-medium: 'ExoMedium', sans-serif;
}
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Global */
html, body {
    font-size: 100%;
    font-family: var(--var-font-family);
    color: var(--plie-bleu);
    max-height: 100vh;
}
body {
    display: grid;
    grid-template-rows: minmax(2.5rem, 10vh) 1fr minmax(2.5rem, 10vh);
    height:100vh;
    background-color: var(--bg-gris);
    background-image: url(img/bg-triangles.png), url(img/bg-triangles-reverse.png);
    background-size:cover, cover;
    background-position: left bottom, left top;
    background-repeat: no-repeat;
}

header {
    background-color: rgba(238,197,50,0.8);
}
footer {
    background-color: rgba(38,112,170,0.8);
    display: flex;
    justify-content: center;
    align-items: center;
}
.content {
    display: flex;
    flex-direction: column;
    margin: auto 0;
    align-items: center;
}

/* Typographie */
h1 {
    font-family: var(--font-family-medium);
    font-size: 2.2rem;
    font-weight: 600;
    color: var(--plie-bleu);
}
h2 {
    font-family: var(--font-family-medium);
    font-size: 1.6rem;
    font-weight: 400;
    color: var(--plie-orange);
}
h2 .col-vert {
    color: var(--plie-vert);
}
h2 .col-rouge {
    color: var(--plie-rouge);
}
h2 .col-bleu {
    color: var(--plie-bleu);
}
h3 {
    font-family: var(--font-family-medium);
    font-size: 1.2rem;
    font-weight: 300;
    color: var(--plie-bleu);
    margin-bottom: 1.25rem;
}
.undscr {
    text-decoration: underline;
}
/* BLOCS DU DESIGN */
.innerHeader {
    height:100%;
    margin:0 auto;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    padding: 0.25rem;
    width: 80%;
}
.innerFooter {
    height:100%;
    margin:0 0 0 12.5rem;;
    padding: 0.25rem;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
    width: 100%;
}
.partners {
    display: flex;
    justify-content: space-around;
    align-items: center;
    width:100%;
}
.mentions   {
    font-size: 0.7rem;
    color: #fff;
    font-family: var(--font-family);
    text-align: center;
    margin: 0 auto;
    padding: 0.5rem;
}
.mentions a, .mentions a:hover {
    text-decoration: none;
    color: var(--plie-jaune);
}
.titleContainer{
    flex : 0 1 auto;
    margin: auto 0;
}
.logoContainer img {
    max-height: 5rem;
    height: auto;
}
.partners img {
    max-height: 3rem;
    height: auto;
}
.introContainer {
    background-color: #fff;
    width: 90%;
    max-width: 47rem;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: #666 0px 0px 20px;
    text-align: center;
}
.introContainer h2, .quiz h2 {
    margin-bottom: 1.25rem; /* 20px*/
    border-bottom: 2px solid var(--plie-orange);
    padding-bottom: 1,25rem; /* 20px*/
}
.quiz h2 {
    text-align: left;
}
.introContainer p {
    font-size: 1.1rem;
    line-height: 1.6rem;
    font-family: var(--font-family);
    font-weight: 300;
    color: var(--plie-bleu);
    margin-bottom: 1.25rem; /* 20px*/
}

.eurmai {
    width: 12.5rem;
    position:absolute;
    left: 0;
    bottom: 0;
    overflow:visible;
}
h2 > img {
    height: 1.8rem; /* 20px*/
}

/* boutons */
.start-btn {
    background: var(--plie-vert);
    color: #fff;
    font-family: var(--font-family);
    font-weight: 700;
    text-decoration: none;
    width: 100%; /* Les boutons prennent la largeur de leur cellule */
    max-width: 12.5rem; /* Optionnel pour éviter qu'ils deviennent trop grands */
    border: none;
    padding: 1rem;
    margin: 1.5rem auto 0;
    text-align: center;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    display: block;
}
.start-btn:hover:not([disabled]) {
    background: var(--plie-jaune);
    color: var(--plie-vert);
}
.btn-bleueur {
    background-color: var(--europe-bleu);
    color: var(--europe-or);
    padding: 1%;
    border-radius: 10px;
    font-size: 1.5rem;
    text-decoration: none;
}
/* boutons de réponse */
.app {
    background-color: #fff;
    width: 90%;
    max-width: 47rem;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: #666 0px 0px 20px;
    text-align: center;
}
.quiz {
    padding: 0;
}

#answer-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 colonnes */
    gap: 0.6rem;
    margin: 0 auto;
    padding: 0.25rem;
}
.btn {
    background: var(--bg-gris);
    color: var(--plie-bleu);
    font-weight: 500;
    font-size: 1rem;
    width: 100%; /* Les boutons prennent la largeur de leur cellule */
    max-width: 14rem; /* Optionnel pour éviter qu'ils deviennent trop grands */
    border: 1px solid #666;
    padding: 10px;
    margin: 0.25rem auto;
    text-align: center;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}
.btn:hover:not([disabled]) {
    background: var(--plie-bleu);
    color: var(--bg-gris);
}
.btn.disabled {
    cursor: not-drop;
}
#next-btn {
    background: var(--europe-bleu);
    color: var(--europe-or);
    font-weight: 500;
    font-size: 1rem;
    width: 12.5rem;
    max-width: 13.75rem;
    border: 0;
    padding: 0.6rem;
    margin: 1.5rem auto 0;
    text-align: center;
    border-radius: 4px;
    cursor: pointer;
    display: none; /* cacher le bouton */
    transition: all 0.3s ease;
}
#next-btn:hover:not([disabled]) {
    background: var(--plie-bleu);
}
#next-btn > a {
    color: var(--europe-or);
    text-decoration: none;
}

.btn > img {
    max-height: 6.25rem;
    max-width: 7.5rem;
    margin: 0 auto;
    padding: 0px;
    background: none;
    z-index: -1;
    vertical-align: middle;
}
.correct{
    background: var(--plie-vert);
    color: white;
    animation: blinkopacitysmooth linear 1s infinite alternate;
}
@keyframes blinkopacitysmooth {   
    0% { opacity: 1; } 
    100% { opacity: 0.2; }  
}
.incorrect, .btn > img.incorrect {
    background: var(--plie-rouge);
    color: white;
}
.correct > img, .incorrect > img {
    background: none !important;
    color: none !important;
}
.justif {
    font-size: 1rem;
    font-family: var(--font-family);
    color: var(--plie-vert-2);
    font-weight: 200;
    margin: 0.6rem auto;
    padding: 0 0.6rem;
    text-align: justify;
}
.justif > img {
    max-height: 3.2rem;
    margin: 0 auto;
    padding: 0;
    display: inline-block;
}



/* Progress bar */
.bubble {
    text-align: center;
}
.bubble-container {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-bottom: 30px;
    width: 100%;
}
.bubble-container::before {
    content:"";
    background-color: var(--line-border-empty);
    position:absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    height: 3px;
    width: 100%;
    /*z-index: -1;*/
    transition: 0.4s ease;
}
.bubbleBar {
    background-color: var(--line-border-fill);
    position:absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    height: 3px;
    width: 0%;
    /*z-index: -1;*/
    transition: 0.4s ease;
}
.bubbleCircle {
    background-color: #fff;
    color: #999;
    border-radius: 50%;
    height: 15px;
    width: 15px;
    border: 3px solid var(--line-border-empty);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.4s ease;
}
.bubbleCircle {
    z-index: 1;
}
.bubbleCircle.active {
    border-color: var(--line-border-fill);
    background-color: var(--line-border-fill);
}