/* Variables */
:root {
  --light-blue: #9dade4;
  --blue: #3e2b96;
  --red: #f63b00;
  --beige: #fff1e5;

  --scale-factor: 1.2;
  --fs-base: 16px;
  --fs-sm: calc(var(--fs-md) / var(--scale-factor));
  --fs-md: var(--fs-base);
  --fs-lg: calc(var(--fs-md) * var(--scale-factor));
  --fs-xl: calc(var(--fs-lg) * var(--scale-factor));
  --fs-2xl: calc(var(--fs-xl) * var(--scale-factor));
  --fs-3xl: calc(var(--fs-2xl) * var(--scale-factor));
  --fs-4xl: calc(var(--fs-3xl) * var(--scale-factor));
  --fs-5xl: calc(var(--fs-4xl) * var(--scale-factor));
}

@media screen and (max-width: 1023.98px) {
  :root {
    --fs-base: 13px;
  }
}

/* Resets */
html {
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
  font-size: 16px;
  font-size: var(--fs-md);
}

*,
*:before,
*:after {
  -webkit-box-sizing: inherit;
          box-sizing: inherit;
  color: inherit;
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
ol,
ul {
  font-weight: inherit;
}

ol,
ul {
  list-style: none;
}

a {
  -webkit-text-decoration: none;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
}

.wrapper {
  margin-left: auto;
  margin-right: auto;
  max-width: min(100vw - 4rem, 1120px);
}

/* Global */

html {
  color: #3e2b96;
  color: var(--blue);
  font-family: "Open Sans", sans-serif;
  text-align: center;
}

.color-red {
  color: #f63b00;
  color: var(--red);
}

h1,
h2 {
  font-size: calc(((((16px * 1.2) * 1.2) * 1.2) * 1.2) * 1.2);
  font-size: calc(calc(calc(calc(calc(16px * 1.2) * 1.2) * 1.2) * 1.2) * 1.2);
  font-size: var(--fs-4xl);
  font-weight: bolder;
  text-align: center;
}

h2 {
  margin-bottom: 1rem;
}

h3 {
  color: #f63b00;
  color: var(--red);
  font-weight: bold;
  text-align: center;
  font-size: calc((16px * 1.2) * 1.2);
  font-size: calc(calc(16px * 1.2) * 1.2);
  font-size: var(--fs-xl);
}

h1 {
  font-size: calc((((((16px * 1.2) * 1.2) * 1.2) * 1.2) * 1.2) * 1.2);
  font-size: calc(calc(calc(calc(calc(calc(16px * 1.2) * 1.2) * 1.2) * 1.2) * 1.2) * 1.2);
  font-size: var(--fs-5xl);
}

.columns {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: stretch;
      -ms-flex-align: stretch;
          align-items: stretch;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  gap: 2rem;
}

.columns > * {
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
}

@media screen and (max-width: 767.98px) {
  .columns {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    max-width: 375px;
    gap: 2rem;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
  }
}

.centered-col {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 1rem;
}

.smaller-font {
  font-size: 16px;
  font-size: var(--fs-md);
}

.card {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 1rem;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}

.card .bordered {
    border-radius: 2rem;
  }

.card .img-big-screen {
    display: block;
  }

.card .img-small-screen {
    display: none;
  }

@media screen and (max-width: 767.98px) {
  .card {
    gap: 0.5rem;
  }

    .card .img-big-screen {
      display: none;
    }

    .card .img-small-screen {
      display: block;
    }
}

.card--stretch {
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
}

.card--justified {
  -webkit-box-pack: top;
      -ms-flex-pack: top;
          justify-content: top;
}

.card--justified img {
    max-height: 10rem;
  }

.text-citation {
  font-weight: bold;
  font-size: calc(((16px * 1.2) * 1.2) * 1.2);
  font-size: calc(calc(calc(16px * 1.2) * 1.2) * 1.2);
  font-size: var(--fs-2xl);
  color: #9dade4;
  color: var(--light-blue);
}

.text-accent {
  font-weight: bold;
  font-size: calc(((16px * 1.2) * 1.2) * 1.2);
  font-size: calc(calc(calc(16px * 1.2) * 1.2) * 1.2);
  font-size: var(--fs-2xl);
  color: #f63b00;
  color: var(--red);
}

.btn-cta {
  font-weight: bold;
  text-transform: uppercase;
  color: #fff1e5;
  color: var(--beige);
  background-color: #f63b00;
  background-color: var(--red);
  border-radius: 2rem;
  padding-left: 2rem;
  padding-right: 2rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.btn-secondary {
  text-transform: uppercase;
  -webkit-text-decoration: underline;
  text-decoration: underline;

  color: #f63b00;

  color: var(--red);
}

.btn-secondary:hover {
  -webkit-text-decoration: underline;
  text-decoration: underline;
}

.text-uppercase {
  text-transform: uppercase;
}

.text-bold {
  font-weight: bold;
}

/* Header */

header {
  padding-top: 1rem;
  padding-bottom: 1rem;
  position: sticky;
  top: 0;
  width: 100%;
  background-color: white;
  z-index: 3;
  font-weight: bold;
}

header .header-content {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
        -ms-flex-pack: justify;
            justify-content: space-between;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
  }

header .header-content p {
      color: #f63b00;
      color: var(--red);
      font-size: calc((16px * 1.2) * 1.2);
      font-size: calc(calc(16px * 1.2) * 1.2);
      font-size: var(--fs-xl);
    }

header nav ul {
      list-style: none;
      display: -webkit-box;
      display: -ms-flexbox;
      display: flex;
      gap: 2rem;
      -webkit-box-pack: right;
          -ms-flex-pack: right;
              justify-content: right;
    }

header .burger {
    width: 2em;
    display: none;
  }

@media screen and (max-width: 1023.98px) {
    header nav {
      background-color: white;
      padding: 2rem 4rem 1rem 2rem;
      position: absolute;
      height: 100vh;
      top: 0;
      right: 0;
      -webkit-transform: translateX(100%);
              transform: translateX(100%);
      -webkit-transition: -webkit-transform 200ms ease;
      transition: -webkit-transform 200ms ease;
      transition: transform 200ms ease;
      transition: transform 200ms ease, -webkit-transform 200ms ease;
      display: none;
    }

      header nav ul {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
            -ms-flex-direction: column;
                flex-direction: column;
        text-align: left;
      }

    header nav.shown {
      display: block;
      -webkit-box-shadow: 0px 0px 15px 0px rgba(0, 0, 0, 0.5);
              box-shadow: 0px 0px 15px 0px rgba(0, 0, 0, 0.5);
      -webkit-transform: translateX(0);
              transform: translateX(0);
    }

    header .burger {
      display: block;
      cursor: pointer;
    }
}

/* Main */

main {
  background-color: #fff1e5;
  background-color: var(--beige);
  font-size: calc((16px * 1.2) * 1.2);
  font-size: calc(calc(16px * 1.2) * 1.2);
  font-size: var(--fs-xl);
}

section {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

section:nth-child(1) {
  height: 90vh;
}

@media screen and (max-width: 1023.98px) {
  section {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }

  section:nth-child(1) {
    height: 70vh;
  }
}

.beret {
  width: 80%;
}

.hero-illus {
  display: grid;
  grid-template-columns: 1fr;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  justify-items: center;
}

.hero-illus > * {
    grid-area: 1 / 1 / 1 / 1;
    max-height: 30rem;
  }

.hero-illus .eiffel {
    max-height: 20rem;
  }

@media screen and (max-width: 1023.98px) {
  .hero-illus {
    display: none;
  }
}

.qui-illus {
  position: relative;
}

.qui-illus .qui-illus-deco {
    z-index: 0;
    position: absolute;

    max-width: 20rem;
    max-height: 20rem;
  }

.qui-illus #deco-blue {
    bottom: 20%;
    left: -5%;
  }

.qui-illus #deco-red {
    bottom: -10%;
    right: 15%;
    -webkit-transform: rotate(-90deg);
            transform: rotate(-90deg);
  }

.qui-illus #deco-rose {
    top: 0%;
    right: 0%;
    -webkit-transform: rotate(-70deg);
            transform: rotate(-70deg);
  }

.qui-illus .jo-picture {
    z-index: 1;
    position: relative;
    border-radius: 500px;
  }

.qui-desc h2 {
    margin-bottom: 1rem;
  }

.bilingue-image {
  position: relative;
}

.bilingue-image img {
    position: absolute;
    max-width: 5rem;
    left: 50%;
    -webkit-transform: translateX(-50%) rotate(30deg);
            transform: translateX(-50%) rotate(30deg);
  }

.bilingue-image .bilingue-image--bottom {
    bottom: 0;
    -webkit-transform: translateX(-50%) rotate(-30deg);
            transform: translateX(-50%) rotate(-30deg);
  }

@media screen and (max-width: 767.98px) {
  .bilingue-image {
    display: none;
  }
}

/* Footer */

footer {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

/* Animations */

.anim-bounce {
  scale: 1;
  opacity: 0;
  -webkit-animation: anim-bounce 300ms linear forwards 200ms;
          animation: anim-bounce 300ms linear forwards 200ms;
}

@-webkit-keyframes anim-bounce {
  0% {
    opacity: 1;
    scale: 0.7;
  }
  30% {
    scale: 1.4;
  }

  50% {
    scale: 0.9;
  }
  60% {
    scale: 1;
  }
  100% {
    opacity: 1;
    scale: 1;
  }
}

@keyframes anim-bounce {
  0% {
    opacity: 1;
    scale: 0.7;
  }
  30% {
    scale: 1.4;
  }

  50% {
    scale: 0.9;
  }
  60% {
    scale: 1;
  }
  100% {
    opacity: 1;
    scale: 1;
  }
}
@media not (prefers-reduced-motion) {
  .anim-enter {
    opacity: 0;
    -webkit-transform: translate(0, 100px);
            transform: translate(0, 100px);
  }
}

.show-scroll {
  opacity: 1;
  -webkit-transform: translate(0, 0);
          transform: translate(0, 0);
  -webkit-transition: opacity 1000ms ease, -webkit-transform 1000ms ease;
  transition: opacity 1000ms ease, -webkit-transform 1000ms ease;
  transition: opacity 1000ms ease, transform 1000ms ease;
  transition: opacity 1000ms ease, transform 1000ms ease, -webkit-transform 1000ms ease;
}
