/*Police d'écriture*/
@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=Poppins:wght@400;500;600;700&display=swap");

/* root */
:root{
  /***********************************************************************/
  /******************************couleur**********************************/
  /***********************************************************************/
  --couleur-principale: #ffffff;
  --couleur-secondaire: #2ecc71;
  --couleur-tertiaire: #e93e60;
  --couleur-de-fond: #eae9e9;
  --couleur-text: #0c0c0c;

  /***********************************************************************/
  /*************************taille de police******************************/
  /***********************************************************************/
  --taille-text: 0.9em;
  --taille-titre: 2.5em;

}

/* base styles */
*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  list-style: none;
  text-decoration: none;
}

a{
  color: var(--couleur-text);
}
a:visited{
  color: var(--couleur-text);
}
a.active{
  color: var(--couleur-tertiaire);
}
a:hover{
  color: var(--couleur-tertiaire);
}
a img{
  width: 60px;
  margin-left: 40px;
}

body{
  font-family: "Poppins", sans-serif;
  color: var(--couleur-text);
  background-color: var(--couleur-de-fond);
  overflow-x: hidden;
}

/* menu-off */
.menu-off{
  background-color:  var(--couleur-principale);
  height: 100vh;
  width: 100%;
  max-width: 250px;
  position: fixed;
  top: 0;
  right: -250px;
  display: flex;
  flex-direction: column;
  align-items: center;    
  justify-content: center;
  text-align: center;
  font-size: var(--taille-text);
  transition: .3s ease;
  text-transform: capitalize;
  z-index: 100;
}
.menu-off.active {
    right: 0;
}

/* nav */
nav{
  padding: 1rem;
  top: 0;
  left: 0;
  display: flex;
  background-color: var(--couleur-principale);
  justify-content: space-between;
  align-items: center;
  position: fixed;
  width: 100%;
  z-index: 999;
}

/* ham menu */
.menu-ham{
  height: 50px;
  width: 40px;
  margin-left: auto;
  position: relative;
  display: none;
}
.menu-ham span{
  height: 5px;
  width: 100%;
  background-color: var(--couleur-tertiaire);
  border-radius: 25px;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  transition: .3s ease;
}
.menu-ham span:nth-child(1){
  top: 25%;
}
.menu-ham span:nth-child(3){
  top: 75%;
}
.menu-ham.active span{
  background-color: var(--couleur-text);
}
.menu-ham.active span:nth-child(1){
  top: 50%;
  transform: translate(-50%, -50%) rotate(45deg);
}
.menu-ham.active span:nth-child(2){
  opacity: 0;
}
.menu-ham.active span:nth-child(3){
  top: 50%;
  transform: translate(-50%, -50%) rotate(-45deg);
}

/* menu */
.menu{
  text-transform: capitalize;
}
.menu ul{
  display: flex;
  gap: 20px;
  margin-right: 40px;
}

/* Bouton de retour en haut */
.scroll-to-top{
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: var(--couleur-tertiaire);
  color: var(--couleur-principale);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
  z-index: 999;
}
  
.scroll-to-top.show{
  opacity: 1;
  visibility: visible;
}
  
.scroll-to-top i{
  font-size: 30px;
}
  
/* Styles pour les liens de navigation */
.navbar ul li a{
  scroll-behavior: smooth;
}

/* Banner */
.banner{
  margin-top: 100px;
  background-image: url('../images/affiche.jpg');
  background-size: cover;
  background-position: center;
  height: 650px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 99;
  scroll-margin-top: 100px;
}
  
.banner::before{
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: -1;
}
  
.banner-content{
  text-align: center;
  color: white;
  max-width: 1200px;
  padding: 0 20px;
  position: relative;
  z-index: 2;
}
  
.banner-content h1{
  font-size: var(--taille-titre);
  margin-bottom: 20px;
}
  
.banner-content p{
  font-size: 24px;
  margin-bottom: 30px;
}
  
.banner-content button{
  background-color: var(--couleur-tertiaire);
  color: rgb(245, 245, 245);
  border: none;
  padding: 12px 30px;
  font-size: 16px;
  border-radius: 4px;
  cursor: pointer;
}

.banner-content button a{
  color: var(--couleur-text);
  font-weight: 700;
}
  
.banner-content button:hover{
  background-color: var(--couleur-principale);
}

/* main */
/* formmation */
.main{
  padding: 50px;
}
  
.formation{
  margin-bottom: 50px;
  scroll-margin-top: 140px;
}
  
.formation .row{
  display: flex;
  flex-wrap: wrap;
  align-items: start;
  }
  
.formation .col-md-6{
  width: 50%;
  padding: 15px;
}
  
.formation .col-md-6 h2{
  text-align: center;
  margin-bottom: 20px;
}
  
.formation .col-md-6 p{
  text-align: justify;
}
  
.formation .col-md-6 img{
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}
  
.carousel-container{
  position: relative;
  overflow: hidden;
}
  
.carousel{
  display: flex;
  transition: transform 0.5s ease-in-out;
}
  
.carousel-item{
  flex: 0 0 100%;
  padding: 20px;
}
  
.row{
  display: flex;
  justify-content: space-between;
}
  
.col-6{
    width: 48%;
}
  
.col-6 img{
  max-width: 100%;
  height: auto;
}
  
.carousel-controls{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  display: flex;
  justify-content: space-between;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}
  
.carousel-controls.visible{
  opacity: 1;
}
  
.carousel-controls button{
  font-size: 36px;
  background-color: rgba(255, 255, 255, 0.5);
  border: none;
  cursor: pointer;
  padding: 10px;
}

/* about */
.about{
  padding: 20px;
  scroll-margin: 120px;
}
  
.main-title{
  background-color: var(--couleur-tertiaire);
  text-align: center;
  padding: 10px;
  margin-bottom: 20px;
  color: var(--couleur-principale);
  border-radius: 50px;
}
  
.underlined-title{
  text-align: center;
  text-decoration: underline;
  margin-bottom: 10px;
}
  
.centered-title{
  text-align: center;
  margin-bottom: 10px;
}
  
.three-column-section,
.two-column-section,
.four-column-section{
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-bottom: 20px;
}

.column1{
  margin-top: 40px;
  width: 30%;
  margin-bottom: 20px;
}

.column2{
  margin-top: 40px;
  width: 100%;
  margin-bottom: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.col-md{
  width: 48%;
  margin-top: 40px;
  margin-bottom: 20px;
  align-items: center;
}

.col-md img{
  width: 70%;
  height: auto;
}

.column3{
  margin-top: 40px;
  width: 24%;
  margin-bottom: 20px;
}

.image-frame{
  border: 1px solid #ccc;
  padding: 5px;
  margin-bottom: 10px;
}
  
.image-frame img{
  width: 100%;
  height: auto;
}

/* Footer */
footer{
  background-color: var(--couleur-principale);
  color: var(--couleur-text);
}

.footer-top{
  display: flex;
  justify-content: space-between;
  padding: 50px;
}

.footer-column{
  flex-basis: 30%;
}

.footer-column h3{
  margin-bottom: 20px;
}

.footer-column ul{
  list-style: none;
  padding: 0;
}

.footer-column ul li{
  margin-bottom: 10px;
}

.footer-column ul li a {
  color: var(--couleur-text);
  text-decoration: none;
}

.footer-column ul li a:hover {
  color: var(--couleur-tertiaire);
  font-weight: 700;
}

.footer-bottom {
  background-color: var(--couleur-text);
  color: var(--couleur-principale);
  text-align: center;
  font-size: var(--taille-text);
  width: 100%;
  height: 100%;
  line-height: 60px;
}

.footer-bottom strong{
  color: var(--couleur-tertiaire);
}

/* responsive */
@media (max-width: 768px) {
  /* header */
  .menu{
    display: none;
  }
  .menu-ham{
    display: block;
  }
  .footer-top {
    flex-direction: column;
  }
  /* banner */
  .banner {
    height: 545px;
  }
  .banner-content h1 {
    font-size: 26px;
  }
    
  .banner-content p {
    font-size: 12px;
  }
  /* main */
  /* formation */
  .formation .col-md-6 {
    width: 100%;
  }
      
  .formation .row {
    flex-direction: column;
  }
      
  .formation .col-md-6:first-child {
    order: 1;
  }
      
  .formation .col-md-6:last-child {
    order: 2;
  }
  .row {
    flex-direction: column;
  }
  .col-6 {
    width: 100%;
  }
  /* about */
  .three-column-section .column1 {
    width: 100%;
  }
  .two-column-section .column2 {
    width: 100%;
  }
  .two-column-section .column2 .col-md{
    width: 100%;
  }
  .four-column-section .column3 {
    width: 48%;
  }
  /* footer */
  .footer-column {
    flex-basis: auto;
    margin-bottom: 30px;
  }
}
@media (max-width: 767px) {
  .four-column-section .column {
    width: 48%;
  }
}