:root {
  --bleu-fonce: #155692;
  --bleu: #2792fa;
  --bleu-pale: #b1d9ff;
  --orange-jaune: #ffc000;
}

@font-face {
  font-family: "Big Shoulders Text";
  font-style: normal;
  font-weight: normal;
  src: url("../polices/Big_Shoulders_Text/static/BigShouldersText-Regular.ttf")
    format("truetype");
}

@font-face {
  font-family: "Big Shoulders Text ExtraBold";
  font-style: normal;
  font-weight: 800;
  src: url("../polices/Big_Shoulders_Text/static/BigShouldersText-ExtraBold.ttf")
    format("truetype");
}

@font-face {
  font-family: "Big Shoulders Text Bold";
  font-style: normal;
  font-weight: 700;
  src: url("../polices/Big_Shoulders_Text/static/BigShouldersText-Bold.ttf")
    format("truetype");
}

@font-face {
  font-family: "Helvetica Bold";
  font-style: normal;
  font-weight: 700;
  src: url("../polices/Helvetica/Helvetica-Bold.ttf") format("truetype");
}

@font-face {
  font-family: "Helvetica";
  font-style: normal;
  font-weight: normal;
  src: url("../polices/Helvetica/Helvetica-Regular.ttf") format("truetype");
}

@font-face {
  font-family: "Helvetica Oblique";
  font-style: oblique;
  font-weight: normal;
  src: url("../polices/Helvetica/Helvetica-Oblique.ttf") format("truetype");
}
* {
  margin: 0;
  padding: 0;
}

body {
  color: white;
  background-color: var(--bleu-fonce);
  font-family: "Helvetica";
  font-size: 1.6rem;
}

#page {
  width: 1200px;
  margin-left: auto;
  margin-right: auto;
}
/* https://stackoverflow.com/questions/14218307/select-arrow-style-change*/

select {
  background: url("../images/select.svg") no-repeat white;
  -moz-appearance: none; /* Firefox */
  -webkit-appearance: none; /* Safari and Chrome */
  appearance: none;
  background-size: 1.5rem;
  background-position: calc(100% - 0.75rem) center;
}

main > div:first-of-type {
  display: flex;
  gap: 5rem;
}

main > div:first-of-type > * {
  flex-basis: 50%;
}
footer {
  margin: 5rem 0;
}

ul {
  font-family: "Helvetica Bold";
  list-style-type: none;
  margin-left: 10rem;
  margin-top: 4rem;
  margin-right: 7rem;
}

li {
  margin-top: 2rem;
  -webkit-hyphens: auto;
  -moz-hyphens: auto;
  -ms-hyphens: auto;
  hyphens: auto;
}

.fleche {
  background: url("../images/fleche.png") no-repeat left;
  background-size: 2.3rem;
  padding-left: 6rem;
  min-height: 34px;
}

header {
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

header .duree {
  /*color: var(--bleu-fonce);*/
  color: white;
  width: max-content;
  padding: 1rem;
  font-family: "Helvetica Bold";
  font-size: 2.3333rem;
  border-radius: 10px;
  margin-top: 1.5rem;
  margin-bottom: 5rem;
  margin-right: auto;
}

header .duree span {
  font-weight: 500;
}

.logo {
  width: 35rem;
  margin-top: 3rem;
  margin-bottom: 5rem;
}

img {
  width: 100%;
}
@media only screen and (min-width: 901px) {
  .img-temoin {
    width: 80%;
  }
  h1 {
    text-align: start;
  }
}
@media only screen and (max-width: 900px) and (min-width: 500px) {
  .img-temoin {
    width: 50%;
  }
}
@media only screen and (max-width: 500px) {
  .img-temoin {
    width: 100%;
  }
}

.img-badge {
  width: 85%;
}

h1 {
  font-family: "Big Shoulders Text Bold";
  font-size: 5rem;
  text-align: center;
}

h1 span {
  font-family: "Big Shoulders Text";
}

h2 {
  font-family: "Big Shoulders Text ExtraBold";
  font-size: 3.9292rem;
}

.offre-speciale {
  background-color: var(--bleu);
  width: max-content;
  padding: 3.5rem;
  padding-left: 8rem; /* Aligner avec le sous-titre */
  border-top-right-radius: 10px;
  border-bottom-right-radius: 10px;
}

.offre-speciale h2 {
  font-size: 4rem;
  color: white;
}

.offre-speciale > div {
  display: grid;
  grid-template-columns: repeat(2, auto);
}

.offre-speciale .ancient-prix {
  color: var(--bleu-pale);
  font-family: "Big Shoulders Text Bold";
  font-size: 6rem;
  text-decoration: line-through;
  margin-top: auto;
  margin-bottom: auto;
  margin-right: 2rem;
}

.offre-speciale .prix-reduit {
  color: var(--orange-jaune);
  font-size: 9rem;
}

.offre-speciale .participant {
  font-family: "Helvetica Bold";
  font-size: 2rem;
  grid-column: 2 / 2;
  margin-left: 0.5rem;
}

.inscription {
  background-color: var(--bleu);
  box-sizing: border-box;
  padding: 4rem;
  border-top-left-radius: 10px;
  border-bottom-left-radius: 10px;
  height: max-content;
}

.inscription h2 {
  margin-top: 3rem;
}

.inscription form {
  display: flex;
  flex-direction: column;
  font-size: 2.0064rem;
  margin-top: 5rem;
  gap: 0.5rem;
}

.inscription form label {
  font-family: "Helvetica Bold";
  margin-bottom: 1rem;
}

.inscription form > div {
  display: flex;
  gap: 2rem;
}

.inscription form input,
.inscription form select {
  border-radius: 5px;
  margin-bottom: 2rem;
  font-family: "Helvetica";
  font-size: 2.0064rem;
  border: 1px solid black;
  height: 4rem;
  padding-left: 1rem;
}

.inscription form button {
  color: white;
  background-color: var(--bleu-fonce);
  font-family: "Big Shoulders Text ExtraBold";
  font-size: 2.7588rem;
  border-radius: 10px;
  width: max-content;
  padding: 0.8rem 1rem;
  margin-top: 4rem;
  border: 0;
}
.obligatoire {
  color: #e30613;
}

.badges {
  margin-top: 4rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.badges div {
  width: 14rem;
  height: 14rem;
}

.badges div.competence img {
  width: 15rem;
}
.badges div.emploi img {
  width: 12rem;
}

.temoignages {
  margin-top: 9rem;
  display: grid;
  grid-template-columns: 52% 1fr;
  gap: 6rem;
}

.temoignages p {
  margin: 3rem 2rem 3rem 0;
  font-family: "Helvetica Oblique";
  -webkit-hyphens: auto;
  -moz-hyphens: auto;
  -ms-hyphens: auto;
  hyphens: auto;
}
@media (min-width: 901px) {
  .temoignages > div:nth-of-type(2) {
    margin-left: 9rem;
  }
}
/* https://dev.to/proticm/styling-html-checkboxes-is-super-easy-302o */

.inscription form .checkbox {
  position: relative;
}

.inscription form .checkbox > input {
  margin-top: 1rem;
  height: 3rem;
  width: 4rem;
  -webkit-appearance: none;
  -moz-appearance: none;
  -o-appearance: none;
  appearance: none;
  background-color: white;
  cursor: pointer;
}

.inscription form .checkbox > input:checked {
  border: 0;
  background-color: var(--bleu-fonce);
}

.inscription form .checkbox > input:checked + label::before {
  content: "\2713";
  display: block;
  text-align: center;
  color: white;
  position: absolute;
  left: 0.7rem;
  top: 1rem;
}

@media (min-width: 1701px) {
  html {
    font-size: 10px;
  }
}

@media (max-width: 1700px) {
  html {
    font-size: 9px;
  }
}

@media (max-width: 1500px) {
  html {
    font-size: 9px;
  }
}

@media (max-width: 1200px) {
  html {
    font-size: 9px;
  }
}

@media (max-width: 1050px) {
  html {
    font-size: 8px;
  }
}

@media (max-width: 900px) {
  main > div:first-of-type {
    flex-direction: column;
  }

  header {
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
  }

  header .duree {
    margin-top: 4rem;
    margin-right: auto;
  }

  .offre-speciale {
    margin-left: auto;
    margin-right: auto;
    border-radius: 10px;
  }

  .badges {
    margin-left: unset;
    justify-content: center;
  }

  ul {
    margin-right: 4rem;
  }

  .temoignages {
    grid-template-columns: 1fr;
    margin-left: 2rem;
    margin-right: 2rem;
    gap: 2rem;
  }

  .inscription {
    margin-left: 2rem;
    margin-right: 2rem;
    border-radius: 10px;
  }

  @media (max-width: 600px) {
    header .duree {
      width: unset;
    }

    ul {
      margin-left: 2rem;
    }

    .logo {
      padding-left: 5rem;
      width: 35rem;
    }
    .offre-speciale {
      padding-left: 2rem;
    }
  }

  @media (max-width: 500px) {
    .offre-speciale .prix-reduit {
      font-size: 7rem;
    }

    .offre-speciale .ancient-prix {
      font-size: 5rem;
    }

    .competence {
      margin-right: 4rem;
    }
  }
}

@media only screen and (min-width: 1201px) and (max-width: 1273px) {
  main > div:first-of-type {
    gap: 0;
  }

  .ul-list {
    margin-right: 10%;
  }
  header {
    max-width: 1200px;
  }
}

@media only screen and (min-width: 901px) and (max-width: 1274px) {
  header {
    margin-left: 5% !important;
  }
  h1{
    text-align: start;
  }
}

@media only screen and (min-width: 1274px) {
  h1 {
    font-size: 6.9rem;
  }
}
@media only screen and (min-width: 1200px) {
  main {
    width: 1200px !important;
    margin-left: auto;
    margin-right: auto;
  }
  header {
    width: 1200px !important;
    margin-left: auto;
    margin-right: auto;
  }
  h1{
    text-align: start;
  }
}
@media only screen and (min-width: 1201px) {
  header {
    margin-left: auto;
    margin-right: auto;
    width: 1200px;
  }
}
