*,
::before,
::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Fonts */
  --title-font: Archivo Narrow, sans-serif;
  --base-font: Roboto, sans-serif;
}
html{ 
  scroll-behavior: smooth;
  /* width: 1900px;   */
}

body {
  font-family: var(--base-font);
}

main {
  margin: 2vw;
  padding: 1vw;
  background-color: #dfd7c9;
  border-radius: 3.2rem;
  position: relative;
  overflow: hidden;
  z-index: 0;
}
.main-2 {
  padding: 1vw;
  display: flex;
  flex-direction: column;
}

.title {
  width: 100%;
  display: flex;
  flex-direction: column;
  padding-top: 60px;
}

.title img {
  height: 4vw;
  filter: grayscale();
}

.block-title {
  width: 87%; 
margin: 1vw auto;
  display: flex;
  align-items: center;
  border-bottom: 2px solid #3f3b37;
}

.main-title {
  font-family: var(--base-font);
  font-weight: 400;
  
  font-size: clamp(40px, 5vw, 130px); 
  color:#3f3b37;
}

.main-title span {
  font-style: italic;
}
.sub-title{
  font-family: var(--base-font);
  font-weight: 400;
  font-size: clamp(10px, 3vw, 30px);
  color: #3f3b37;
  text-transform: uppercase;
}

@media screen and (max-width: 750px) {
  .main-title {
    text-align: center;
  }

  .title img {
    display: none;
  }
}

/* Modal */

.modal-container {
  visibility: hidden;
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  transition: visibility 0.4s;
  z-index: 2;
}

.modal-container.active {
  visibility: visible;
}

.overlay {
  opacity: 0;
  position: absolute;
  width: 100%;
  height: 100%;
  margin-bottom: -6rem;
  background-color: #3f3b3777;
  border-radius: 3.2rem;
  transition: opacity 0.4s 0.2s ease-out;
}

.modal-container.active .overlay {
  opacity: 1;
  transition: opacity 0.4s ease-out;
}

.modal {
  opacity: 0;
  width: 20%;
  max-width: 500px;
  min-width: 150px;
  padding: 30px;
  background: #3f3b37;
  position: absolute;
  top: 45%;
  left: 55%;
  transition: opacity 0.4s ease-out;
}

.modal-container.active .modal {
  opacity: 1;
  transition: opacity 0.4s 0.2s ease-out;
}

.close-modal {
  padding: 9px 12px;
  border: none;
  font-size: 18px;
  font-weight: bold;
  position: absolute;
  top: 10px;
  right: 10px;
  cursor: pointer;
  background: #fdff77d2;
  color: #3f3b37;
}

.modal a {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  padding-top: 15px;
  padding-left: 15px;
  text-decoration: none;
  font-size: clamp(17px, 2vw, 40px);
  font-weight: 200;
  color: #ffffff;
  cursor: pointer;
}

.modal a:hover {
  text-decoration: underline;
  color: #fdff77d2;
} 

/* Modal FIN */

.block-cards {
  margin: auto;
  display: flex;
  flex-direction: column;
}

.block-title-card {
  width: 87%;
  margin: 2vw auto 2vw ;
  z-index: 1;
}

.block-title-card p {
font-family: var(--title-font);
font-size: clamp(30px, 3vw, 80px);
font-weight: 500;
color: #3f3b37;
}

.block-title-card p span {
  font-style: italic;
}

article-1{
  width: 87%;
  display: flex;
  margin: 1vw auto;

}
article-1 p{
  font-family: var(--title-font);
  font-size: 1.4em;
  line-height: 1.5;
  color: #3f3b37;
}

article h4 {
  font-size: 2em;
  font-weight: 400;
  margin-bottom: 1vw;
}

article span {
  font-size: 1.1em;
  font-weight: 500;
}

article ul {
  margin-top: 1vw;
  list-style-type: circle;
}

article li {
  margin: 5px 0 0 30px;
}

article-2{
  margin: 1vw auto;
  display: flex;
  width: 87%;
  justify-content: space-between;
  flex-wrap:wrap;
}

#apprenants{
  margin: 10px;
  padding: 10px;
}
#apprenants h3{
  font-family: var(--title-font);
  font-size: clamp(20px, 3vw, 40px);
  font-weight: 500;
  color: #3f3b37;
}
#apprenants li{
  font-family: var(--title-font);
  font-size: 1.2em;
  line-height: 1.5;
  color: #3f3b37;
  list-style-type: circle;
}
#prerequis{
  margin: 10px;
  padding: 10px;
}
#prerequis h3{
  font-family: var(--title-font);
  font-size: clamp(20px, 3vw, 40px);
  font-weight: 500;
  color: #3f3b37;
}
#prerequis li{
  font-family: var(--title-font);
  font-size: 1.2em;
  line-height: 1.5;
  color: #3f3b37;
  list-style-type: circle;
}
.contact{
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.block-contact{
 display: flex;
 margin-top: 35px;
}


#contact-icon{
  display: flex;
  margin: 5px;
  padding: 10px;
  background-color: #b2b2a8; 
}


#contact-icon span{
  /* width: 100%; */
  height: 20%;
  padding: 5px;
  font-size:3vw;
  color: #ffffff;
}
#contact-mail{
  display: flex;
  width: 100%;
  margin: 5px; 
  padding: 10px;
  background-color:#b2b2a8; 
}
#contact-mail p{
  margin: 5px;
  padding: 10px;
  font-family: var(--base-font);
    font-size: 1.2em;
  color: #ffffff;
  margin: auto;
}

.block-detail{
  display: flex;
  margin-bottom: 35px;
}

#detail-icon{
  display: flex;
  margin: 5px;
  padding: 10px;
  background-color: #E7AA2C;
  
}

@media screen and (max-width: 450px){
  #contact-icon{
    display: none;
  }
  #detail-icon{
   display: none;
  }
}
@media screen and (max-width: 400px){
  #contact-icon{
    display: none;
  }
  #detail-icon{
    display: none;
  }
}
#detail-icon span{
  padding: 5px;
  font-size:3vw;
  color: #3f3b37;
}
#detail-formation{
  display: flex;
  margin: 5px; 
  padding: 10px;
  background-color: #E7AA2C; 
}
#detail-formation p{
  padding: 5px;
  font-family: var(--base-font);
  font-size: 1.2em;
  color: #3f3b37;
 text-align: center;
}
#detail-formation p span-1{
  font-weight: 500;
}

article-3{
  margin: 1vw auto;
  display: flex;
  width: 87%;
  flex-direction: column;
}
article-3 h3{
  font-family: var(--title-font);
  font-size: clamp(20px, 3vw, 40px);
  font-weight: 500;
  color: #3f3b37;
}
#capable{
  margin: 10px;
  padding: 10px;
}
article-3 li{
  font-family: var(--title-font);
  font-size: 1.2em;
  line-height: 1.5;
  color: #3f3b37;
  list-style-type: circle;
}
.block-logo{
  display: flex;
  justify-content: space-around;
  margin: 0 auto;
}

.block-logo span{
  margin: 5px;
  padding: 10px;
  font-size: 3vw;
}
.logo{
  width: 25%;
  text-align: center;
  background-color: #E7AA2C;
  margin: 5px;
}
.block-theme{
  display: flex;
  justify-content: space-around;
  margin: 0 auto;
}

@media screen and (max-width: 450px){
  .block-logo{
    display: none;
  }
  .block-theme{
    display: none;
  }
  .block-descrip{
    flex-direction: column;
  }
  #contact-mail p{
    font-size: 4vw;
  }
}

.block-theme p{
  margin: 5px;
  padding: 10px;
  font-family: var(--base-font);
    font-size: 1.2vw;
}
.theme{
  width: 25%;
  text-align: center;
  background-color: #fbefdf;
  margin: 5px;
}
.theme p span{
  text-transform: uppercase;
}
.block-descrip{
  display: flex;
  justify-content: space-around;
  margin: 0 auto;
}
.block-descrip p{
  margin: 5px;
  padding: 10px;
  font-family: var(--base-font);
    font-size: 1.2vw;
  color: #ffffff;
}
.block-descrip p span{
  text-transform: uppercase;
}
.descrip{
  display: flex;
  width: 25%;
  height: 100px;
  text-align: center;
  background-color: #b2b2a8;;
  margin: 5px;
  align-items: center;
  justify-content: space-around;
}
@media screen and (max-width: 450px){
  .block-descrip{
    align-items: center;
  }
  .descrip{
    width: 80%;
  }
  .block-descrip p{
    font-size: 15px;
  }
}

article-4{
  margin: 1vw auto;
  width: 87%;
}
article-5{
  margin: 1vw auto;
    display: flex;
    width: 87%;
    flex-direction: column;
}
article-5 h2{
  font-family: var(--title-font);
    font-size: clamp(20px, 3vw, 40px);
    font-weight: 500;
    color: #3f3b37;
}
article-5 h3{
  font-family: var(--title-font);
  font-size: 1.4em;
  font-weight: 500;
}
article-5 li{
  font-family: var(--title-font);
  font-size: 1.2em;
  line-height: 1.5;
  color: #3f3b37;
  list-style-type: circle;
}
#identifier{
  margin: 10px;
  padding: 10px;
}
#analiser{
  margin: 10px;
  padding: 10px;
}
#mettre{
  margin: 10px;
  padding: 10px;
}
.list{
  margin-left: 20px;
  list-style-type: disc;
  
}
#risques{
  margin: 10px;
  padding: 10px;
}
#fondamentaux{
  margin: 10px;
  padding: 10px;
}
#pms{
  margin: 10px;
  padding: 10px;
}

article-6{
  margin: 1vw auto;
    display: flex;
    width: 87%;
    flex-direction: column;
}
article-6 h2{
  font-family: var(--title-font);
    font-size: clamp(20px, 3vw, 40px);
    font-weight: 500;
    color: #3f3b37;
}
article-6 p{
  font-family: var(--title-font);
  font-size: 1.2em;
  line-height: 1.5;
  color: #3f3b37;
}
#plus{
  margin: 10px;
  padding: 10px;
}

article-7{
  margin: 1vw auto;
    display: flex;
    width: 87%;
    flex-direction: column;
}
article-7 h2{
  font-family: var(--title-font);
    font-size: clamp(20px, 3vw, 40px);
    font-weight: 500;
    color: #3f3b37;
}
article-7 h3{
  font-family: var(--title-font);
    font-size: 1.4em;
    font-weight: 500;
}
article-7 p{
  font-family: var(--title-font);
  font-size: 1.2em;
  line-height: 1.5;
  color: #3f3b37;
}
#pedagogie{
  margin: 10px;
  padding: 10px;
}
#technique{
  margin: 10px;
  padding: 10px;
}
#encadrement{
  margin: 10px;
  padding: 10px;
}
section{
  margin: 1vw auto;
    display: flex;
    width: 87%;
    flex-direction: column;
}
.card-btn{
  display: flex;
  justify-content:space-between ;
}
.btn-suivant {
 width: 200px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content:space-between;
  padding: 10px;
  transition: 0.4s;
  position: relative;
  overflow: hidden;
  z-index: 0;
}

.btn-suivant::before {
  content: "";
  position: absolute;
  top: 7em;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #fcff77;
  transition: all 0.6s;
  z-index: -1;
}

.btn-suivant:hover::before {
  top: 0;
}

.btn-suivant a {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #3f3b37;
}

#arrow {
  color: #3f3b37;
  font-size: 1.5em;
  padding: 10px;
}

.btn-suivant span {
  padding: 10px;
  font-size: 1.5em;
}

.btn-pbf:hover {
  border: 1px solid #dfd7c9;
}

.btn-pbf a {
  font-size: 1.2em;

  text-decoration: none;
  color: #3f3b37;
}

.btn-pbf span {
  padding-left: 1vw;
}

button{
  width: 200px;
  border: #dfd7c9;
  background: #dfd7c9;
  cursor: pointer;
  transition: 0.4s;
  position: relative;
  overflow: hidden;
  z-index: 0;
}
button::before {
  content: "";
  position: absolute;
  top: 7em;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #fcff77;
  transition: all 0.6s;
  z-index: -1;
}

button:hover::before {
  top: 0;
}
#print span{
  font-size: 2.5em;
  color: #E7AA2C;
}
#print:hover span{
  transition:0.6s;
  color: #3f3b37;
}

@media (max-width: 520px) {
  .card-btn {
    flex-direction: column-reverse;
    align-items: center;
    margin-top: 2vw;
  }
}