/* Polices et mise en page texte */
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap');
.center {
    text-align: center;
}


/* Couleurs et backgrounds */
.white {
    color: #ffffff;
}
.white-bg {
    background-color: #ffffff;
}
.green-bg {
    background-color: #408944;
}

/* Marges et padding */
.pt-5 {
    padding-top: 4rem;
}
.pb-5 {
    padding-bottom: 4rem;
}
/* Règles générales */
body {
    font-family: 'Open Sans', sans-serif;
    font-size: 1.125rem;
    color: #000000;
    background-color: #ffffff;
    margin: 0;
    padding: 0;
}

.wrapper {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}

h1, h2, h3 {
    font-family: 'Open Sans', sans-serif;
    font-weight: 700;
    margin: 0;
}

h1 {
    margin-bottom: 1rem;
    font-size: 3rem;
    color: #000000;
}

h2 {
    margin-bottom: 2rem;
    font-size: 2rem;
    color: #408944  ;
}

h3 {
    font-size: 1.125rem;
    color: #1D5A20;
}

p {
    margin: 0;
}

/* Contenus */
#header {
    position: absolute;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 30;
    border-top: 5px solid #408944;
}

.header-content {
    display: flex;
    flex-wrap: nowrap;
    width: 100%;
    max-width: 75rem;
    align-items: center;
    margin-right: auto;
    margin-left: auto;
    padding-top: .25rem;
}

.header-content .encis-logo {
    width: 260px;
    height: auto;
    padding-top: .5rem;
    padding-bottom: .5rem;
}

#hero-section {
    padding: 11rem 0;
    background-image: url("img/bg-header-20ans-encis.jpg");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
}
.hero-section-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    position: relative;
    max-width: 75rem;
    width: 100%;
    margin-right: auto;
    margin-left: auto;
}
#hero-section p.white {
    font-size: 1.5rem
}

#main .transparency-logo {
    position: absolute;
    bottom: -40rem;
    left: -33rem;
    width: 40rem;
    height: 40rem;
    background-image: url("img/logo-encis-declinaison-deco.png");
    background-repeat: no-repeat;
    background-size: contain;
}
.reglement-text {
  margin-top: 1rem;
}
.reglement-link{
  font-size: 1rem;
  margin-top: 1rem;
}
.reglement-link a {
  color: #408944;
  text-decoration: underline;
  font-weight: bold;
}

.associations-logos {
    display: flex;
    gap: 3rem;
    justify-content: center;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}

.associations-logos .logo {
    height: 50px;
    padding: 1rem;
}

.quiz-selection {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 16px;
    max-width: 60rem;
    margin-right: auto;
    margin-left: auto;
}

.quiz-card {
    margin: 1rem;
    box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
    position: relative;
}

.quiz-card:hover {
    box-shadow: 0 0 25px 0 rgba(0, 0, 0, 0.25);
    transform: scale(1.07);
}

.quiz-headline {
    display: block;
    position: relative;
    padding: 1rem 3rem 1rem 1rem;
    min-height: 3rem;
}

.quiz-headline::before {
    content: "";
    position: absolute;
    top: 1rem;
    left: -3px;
    width: 0;
    border-left: 3px solid #7bad3a;
    display: block;
    padding-left: 1rem;
    font-size: 1.4rem;
    color: #7bad3a;
    height: 2rem;
}


.quiz-thumbnail {
    max-width: 300px;
    height: auto;
}

.quiz-thumbnail img {
    display: block;
    width: 100%;
}

.quiz-card .outgrow-l {
  font-size: 14px;
  color: #ffffff;
  background-color: #FF23B6;
  border-radius: 50px;
  padding: .5rem 1.75rem;
  width: 5rem;
  text-align: center;
  margin: -3rem auto 0 auto;
  display: block;
  position: relative;
  z-index: 1;
}

#footer {
    padding: 1rem 0;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-headline {
    font-size: 18px;
    font-weight: 700;
    color: #408944;
}

.menu-footer-buttons {
    display: flex;
    gap: 16px;

    list-style: none inside;
}

.footer-buttons-anchor {
    display: inline-flex;

    font-size: 14px;
    font-weight: 600;

    background-color: #408944;
    padding: 16px 28px;
    border-radius: 50px;

    color: #ffffff;
    text-transform: uppercase;
    text-decoration: none;
}

/* IFrames */
iframe{
    width: 80%;
}


/* Responsive design */
@media screen and (max-width: 768px) {
    .pt-5 {
        padding-top: 2rem;
    }
    .pb-5 {
        padding-bottom: 2rem;
    }
    h1 {
        font-size: 2.2rem;
        line-height: 1.2;
    }

    h2 {
        margin-bottom: 2rem;
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.125rem;
        color: #1D5A20;
    }
    .header-content .encis-logo {
        padding-left: 1rem;
    }
    #hero-section {
        padding: 8rem 1rem;
    }
    #main .transparency-logo {
        display: none;
    }
    .associations-logos {
        flex-direction: column;
        align-items: center;
        gap: 0;
    }
    .quiz-selection {
        grid-template-columns: 1fr;
        grid-gap: 0;
    }
    .quiz-thumbnail {
        max-width: 100%;
    }
    #footer {
        padding: 2rem;
    }
    .footer-content {
        flex-direction: column;
    }
    .menu-footer-buttons {
        flex-direction: column;
        align-items: center;
        padding-left: 0;
    }
    iframe {
        width: 95%
    }
}


/* Animations CSS */
.slide-right {
	-webkit-animation: slide-right 0.5s cubic-bezier(0.250, 0.460, 0.450, 0.940) 5000ms both;
	        animation: slide-right 0.5s cubic-bezier(0.250, 0.460, 0.450, 0.940) 5000ms both;
}
@-webkit-keyframes slide-right {
    0% {
      -webkit-transform: translateX(0);
              transform: translateX(0);
    }
    100% {
      -webkit-transform: translateX(100px);
              transform: translateX(100px);
    }
  }
  @keyframes slide-right {
    0% {
      -webkit-transform: translateX(0);
              transform: translateX(0);
    }
    100% {
      -webkit-transform: translateX(100px);
              transform: translateX(100px);
    }
  }
