/* Import fonts from Google Fonts */
@font-face{
  font-family: Abel;
  src:url(../font/Abel.ttf);
}
@font-face{
  font-family: Cairo;
  src: url(../font/Cairo.ttf);
}
/* Apply general styling to the body element */
body{
    font-family: Abel, Cairo;
    margin: 0;
    padding: 0;
  }
/*color principale*/
.bgcolor{
	background-color: #faa61f;
}	
.text-color{
  color: #faa61f;
}
/*color principale*/

/*Border color*/
.bordercolor{
  border: 2px solid #faa61f;
}
/*Border color*/

#bannerEtudiant {
  background-image: url("../img/etudiant-banner.png");
  height: 100vh;
}

/* Height for devices larger than 576px */
@media (min-width: 992px) {
  #bannerEtudiant {
    margin-top: -58.59px;
  }
}

.navbar .nav-link {
  color: #fff !important;
}
/***********Galeire Image **********************/
#intro {
  background-image: url("../img/ensBanner.jpg");
  height: 50vh;
}

/* Height for devices larger than 576px */
@media (min-width: 992px) {
  #intro {
    margin-top: -30.59px;
  }
}
/***********Galeire Image **********************/

/***********Contact Banner **********************/
#contact-banner {
  background-image: url("../img/contact.png");
  height: 50vh;
}

/* Height for devices larger than 576px */
@media (min-width: 992px) {
  #contact-banner {
    margin-top: -30.59px;
  }
}
/***********Contact Banner **********************/


/***********Contact Banner **********************/
#galerie-banner {
  background-image: url("../img/ensBanner.jpg");
  height: 50vh;
}

/* Height for devices larger than 576px */
@media (min-width: 992px) {
  #galerie-banner {
    margin-top: -30.59px;
  }
}
/***********Contact Banner **********************/


/***********Formation Image **********************/
#Formations {
    background-image: url("../img/ensBanner.jpg");
    height: 50vh;
  }

  /* Height for devices larger than 576px */
  @media (min-width: 992px) {
    #Formations {
      margin-top: -30.59px;
    }
  }
/***********Formation Image **************/

/***********Formation Image **********************/
#bg-emploi {
  background-image: url("../img/emploiTemps.jpg");
  height: 50vh;
}

/* Height for devices larger than 576px */
@media (min-width: 992px) {
  #bg-emploi {
    margin-top: -30.59px;
  }
}
/***********Formation Image **************/

/***********Banner recrutement **********************/
#bg-recrutement {
  background-image: url("../img/recrutement.jpg");
  height: 50vh;
}

/* Height for devices larger than 576px */
@media (min-width: 992px) {
  #bg-recrutement {
    margin-top: -30.59px;
  }
}
/***********Banner recrutement **************/

/***********Nav Bar**************/
.navbar .nav-link {
    color: #fff !important;
    font-size: 17px;
}
.navbar .nav-link {
  color: #000 !important;
}
.navbar .navbar-nav a:hover {
  color: #faa61f !important;
}

.navbar-nav .nav-link.active {
    color: #faa61f !important;
    font-weight: bold;
}
.navbar .btn-demande{
  font-size: 14px;
}
.btn-group ul li a:hover{
  color: #faa61f !important;
}
/***********Fin Nav Bar**************/
.parag{
	text-align: justify;
  	font-size: 18px;
}
/*image logo*/
.img-logo{
	width: 290px;
}

/**********Chiffres*******************/
.chiffres{
    padding: 20px;
    margin: 10px;
    transition: 0.5s;
}
.chiffres:hover{
    background-color: #faa61f;
    cursor: pointer;
    color: white;
    box-shadow: 0 4px 7px rgb(0,0,0,0.1);
    transform: translateY(-10px);
}
/**************Chiffres*******************/

/**********Hover cards annonce************/
.card-annonces{
    transition: 0.5s;
}
.card-annonces:hover{
	cursor: pointer;
    transform: translateY(-10px);
}
/**************Hover cards annonce*******/

/**********Hover cards annonce************/
.card-formation {
  position: relative;
  overflow: hidden;
  transition: 0.5s;
}

.download-btn {
  display: none;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  opacity: 0;
}

.card-formation:hover .download-btn {
  display: block;
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}


.card-formation:hover {
  background-color: rgba(0, 0, 0, 0.1);
  opacity: 1; /* Augmentation de l'opacité */
    cursor: pointer;
transform: translateY(-10px);
}

.download-btn:hover {
  transform: scale(1.2); /* Ajout de l'effet de zoom lors du survol du bouton */
}

/**************Hover cards annonce*******/

/************Play video button**********/
.btn-video{
  color: #fff;
  font-size: 23px;
  width: 65px;
  height: 65px;
  border-radius: 100%;
  box-shadow: rgba(193, 244, 246, 0.698) 0px 0px 0px 0px;
  animation: 1.4s cubic-bezier(0.8, 0, 0, 1) 0s infinite normal none running pulse;
  align-items: center;
  border: 0;
}

@keyframes pulse {
  100% {
    box-shadow: 0 0 0 45px rgba(193,244,246,0);
  }
}
/************Play video button********************/

/************Footer et media********************/
footer{
  border-top:4px solid #faa61f;
}
.color-youtube{
    background-color: #ed302f;
}
.color-facebook{
    background-color:  #0082ca;
}
.lienRapide:hover{
    color: #faa61f;
    cursor: pointer;
}
/************Footer media********************/

/************Logo d'esef********************/
.logos{
    width: 245px;
}
/************Logo d'esef********************/

/************Galerie d'image********************/
.nav-tabs .nav-link.active{
    color:  #faa61f;
}
.nav-tabs .nav-link.active, .nav-tabs .nav-item.show .nav-link{
    border-color:  #faa61f;
}


/*************Image presentation esef*************/
.img-esef {
  transition: 0.5s;
}

.img-esef:hover {
  transform: translateY(-10px);
}
/*************Image presentation esef*************/

/*************Plateforme logo image*************/
.platforme-card {
  position: relative;
  display: flex;
  border-bottom: 3px solid  #faa61f;
  transition: 0.5s;

}

.platforme-card::after {
  position: absolute;
  content: "";
  width: 30%;
  height: 30%;
  display: flex;
  justify-content: center;
  background-color:  #faa61f;
}

.platforme-card::before {
  top: 0;
  right: 0;
  border-radius: 0 15px 0 100%;
}

.platforme-card::after {
  bottom: 0;
  left: 0;
  border-radius: 0 100%  0 0;
}
.platforme-card img {
  width: 78px;
}

/*************Clubs*************/
.clubsEns {
  transition: 0.5s;
}

.clubsEns:hover {
  transform: translateY(-10px);
}

.corner-nombre {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  width: 35px;
  height: 35px;
  overflow: hidden;
  top: 0;
  right: 0;
  background: linear-gradient(135deg, #faa61f, #faa61f);
  border-radius: 0 2px 0 30px;
}

.club-order {
  margin-top: -4px;
  margin-right: -4px;
  color: white;
}

.clubsEns img {
  width: 78px;
}


/*************Barre d'actualites*************/
/* Style de la barre ticker */
.ticker-container {
  width: 100%;
  overflow: hidden;
  position: relative;
}

.ticker {
  display: flex;
  white-space: nowrap;
  animation: tickerAnimation 25s linear infinite;
}

.ticker-item {
  padding: 0 30px;
  display: flex;
  align-items: center;
}

.ticker .ticker-item #clignote {
  animation: clignoter 1s infinite;
  color: white;
  background-color: #faa61f;
}

@keyframes clignoter {
  0% { opacity: 1; }
  50% { opacity: 0; }
  100% { opacity: 1; }
}

@keyframes tickerAnimation {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}
.ticker-container:hover .ticker {
  animation-play-state: paused;
}
/*************Barre d'actualites*************/

/*************Top Bouttons scoll*************/
#btn-back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: none;
}
/****************iframe map contact*************/
iframe{
  height: 450px;
  width: 100%;
}
.contact-card{
  transition: 0.5s;
}
.contact-card:hover{
  transform: translateY(-10px);
}

/******************* Preloader *******************/
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: black;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  animation: hidePreloader 2.5s ease forwards;
  /* 3s attente + 0.5s animation */
}

.spinner {
  border: 4px solid #f3f3f3;
  border-top: 4px solid orange; 
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Animation pour cacher le preloader */
@keyframes hidePreloader {
  0% {
    opacity: 1;
    visibility: visible;
  }
  85% {
    opacity: 1;
    visibility: visible;
  }
  100% {
    opacity: 0;
    visibility: hidden;
    display: none;
  }
}

/*Style pae mot de directeur*/
    .royal-card {
      background: linear-gradient(145deg, #ffffff 0%, #fefefe 100%);
      overflow: hidden;
      position: relative;
    }
    
    .royal-card::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      height: 6px;
      background: linear-gradient(90deg, #c1272d 0%, #006233 50%, #c1272d 100%);
    }
    
    .royal-header {
      background: linear-gradient(135deg, #faa61f 0%, #faa61f 100%);
      color: white;
      padding: 2rem;
      position: relative;
      overflow: hidden;
    }
    
    .royal-header::before {
      content: '';
      position: absolute;
      top: -50%;
      right: -20%;
      width: 200px;
      height: 200px;
      background: rgba(255,255,255,0.1);
      border-radius: 50%;
    }
    
    .image-directeur {
      width: 150px;
      height: 150px;
      border-radius: 50%;
      border: 4px solid white;
      box-shadow: 0 8px 24px rgba(0,0,0,0.2);
      object-fit: cover;
      transition: transform 0.3s ease;
    }
    
    .image-directeur:hover {
      transform: scale(1.05);
    }
    
    .header {
      font-size: 2.2rem;
      font-weight: 700;
      margin-bottom: 0.5rem;
      text-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }
    
    .subtitle {
      font-size: 1.1rem;
      opacity: 0.9;
    }
    
    .quote-section {
      padding: 2.5rem;
      background: white;
    }
    
    .quote-block {
      background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
      border-left: 3px solid #faa61f;
      padding: 3rem;
      line-height: 1.8;
      color: #2c3e50;
      position: relative;
    }
    
    .morocco-emblem {
      position: absolute;
      bottom: 20px;
      right: 20px;
      width: 40px;
      height: 40px;
      opacity: 0.1;
    }
    
    .divider {
      height: 2px;
     background-color: red;
      border: none;
      margin: 0;
    }
    
    @media (max-width: 768px) {
      .royal-header {
        text-align: center;
        padding: 1.5rem;
      }
      
      .header {
        font-size: 1.8rem;
      }
      
      .quote-block {
        font-size: 1.1rem;
        padding: 1.5rem;
      }
      
      .quote-section {
        padding: 1.5rem;
      }
    }