@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap");
@import url('https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,300;0,400;0,600;0,700;1,300;1,400&display=swap');
.loader-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #f7f7f7; /* Fond noir */
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.loader-screen.hidden {
  opacity: 0;
  visibility: hidden;
}

/* --- Loader central --- */
.loader {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.loading-text {
  color: Black;
  font-size: 14pt;
  font-weight: 600;
  margin-left: 10px;
}
.loading-desc {
  color: Black;
  font-size: 7pt;
  font-weight: 600;
  margin-left: 10px;
}

.dot {
  margin-left: 3px;
  animation: blink 1.5s infinite;
}
.dot:nth-child(2) {
  animation-delay: 0.3s;
}
.dot:nth-child(3) {
  animation-delay: 0.6s;
}

/* --- Barre de chargement --- */
.loading-bar-background {
  --height: 30px;
  display: flex;
  align-items: center;
  box-sizing: border-box;
  padding: 5px;
  width: 200px;
  height: var(--height);
  background-color: #212121;
  box-shadow: #0c0c0c -2px 2px 4px 0px inset;
  border-radius: calc(var(--height) / 2);
}

.loading-bar {
  position: relative;
  display: flex;
  justify-content: center;
  flex-direction: column;
  --height: 20px;
  width: 0%;
  height: var(--height);
  overflow: hidden;
  background: linear-gradient(0deg, rgba(222, 74, 15, 1) 0%, rgba(249, 199, 79, 1) 100%);
  border-radius: calc(var(--height) / 2);
  animation: loading 4s ease-out infinite;
}

.white-bars-container {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 18px;
}

.white-bar {
  background: linear-gradient(-45deg, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 70%);
  width: 10px;
  height: 45px;
  opacity: 0.3;
  rotate: 45deg;
}

/* --- Animations --- */
@keyframes loading {
  0% { width: 0; }
  80% { width: 100%; }
  100% { width: 100%; }
}

@keyframes blink {
  0%, 100% { opacity: 0; }
  50% { opacity: 1; }
}
*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
  outline: none; border: none;
  text-transform:capitalize;
  transition: all .2s linear;
}
html{
  font-size: 62.5%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}
body{
  background: #f9fafb;
  font-family: 'Poppins', sans-serif;
}

*::selection{
  background: #2b3dda;
  color: #fff;
}

html{
  font-size: 62.5%;
  overflow-x: hidden;
}
body::-webkit-scrollbar{
	display: none;
}


/* navbar starts */
header{
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.7rem 10%;
  height: 6.5rem;
  background-color: #fff;
  box-shadow: 0 1px 4px rgba(146,161,176,.3);
}
section{
  min-height: 100vh;
  padding: 2rem 7%;
}
.heading1{
  font-size: 3.5rem;
  color: rgb(32, 32, 32);
  font-weight: 800;
  text-align: center;
}
.heading{
margin-top:50px;
  font-size: 2.5rem;
  color: rgb(32, 32, 32);
  font-weight: 800;
  text-align: center;
}
.heading span{
  color: #fc8c05;
}
header .logo{
  font-size: 1.9rem;
  font-weight: 800;
  text-decoration: none;
  color: #0E2431;
}
header .logo i {
  font-size: 2.2rem;
}
header .logo:hover {
  color: #fc8c05;
}
header .logo span{
  color: #fc8c05;
}
header .navbar ul{
  list-style: none;
  display: flex;
  justify-content: center;
  align-items: center;
}
header .navbar li{
  margin-left: 2.5rem;
}
header .navbar ul li a{
  font-size: 1.57rem;
  color: #0E2431;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.04rem;
}
header .navbar ul li a.active,
header .navbar ul li a:hover{
  color: #011aff;
  border-bottom: .2rem solid #011aff;
  padding: .5rem 0;
}
/* navbar ends */

/* hamburger icon starts*/
#menu{
  font-size: 3rem;
  cursor: pointer;
  color: rgb(24, 2, 63);
  display: none;
}
@media(max-width:1414px){
  #menu{
      display: block;
  }
  header .navbar{
    position: fixed;
    top: 6.5rem; right: -120%;
    width: 75%;
    height: 100%;
    text-align: left;
    align-items: flex-start;
    background-color: #0e0f31;
  }
  header .navbar ul{
    flex-flow: column;
    padding: 1rem;
  }
  header .navbar ul li{
    text-align: center;
    width: 100%;
    margin: 1rem 0;
    border-radius: .5rem;
    width: 26rem;
  }
  header .navbar ul li a{
    display: block;
    padding: 1rem;
    text-align: left;
    color: #fff;
    font-size: 2rem;
  }
  header .navbar ul li a.active,
  header .navbar ul li a:hover{
    padding: 1rem;
    color: #fff;
    border-radius: .5rem;
    border-bottom: .5rem solid #011aff;
  }
  .fa-times{
    transform: rotate(180deg);
  }
  header .navbar.nav-toggle{
    right: 0;
  }
}
/* hamburger icon ends */
.bac-section {
  padding: 50px 20px 100px;
  background: #f9fafb;
  font-size: 1.25rem;
}

.bac-section .heading {
  margin-bottom: 40px;
  text-align: center;
}

.bac-container {
  max-width: 1200px;
  margin: auto;
}
.bac-container h2 {
  margin: 40px;
  font-size: 2.5rem;
  color: rgb(32, 32, 32);
  font-weight: 800;
  text-align: center;
}

.intro-bac h2 {
  font-size: 28px;
  font-weight: bold;
  margin-bottom: 10px;
}
.intro-bac p {
  color: #444;
  line-height: 1.6;
}
.intro-bac .badges {
  margin-top: 15px;
}

.specialites-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 30px;
}

.col-spec {
  background: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.col-spec h3 {
  margin-bottom: 10px;
}

/* Couleurs par spécialité */
.title-sin {
  color: #e67e22;
}
.mon-choix {
  font-size: 14px;
  background: #16a085;
  color: white;
  padding: 3px 8px;
  border-radius: 6px;
  margin-left: 8px;
}

.title-ee {
  color: #16a085;
}

.title-itec {
  color: #2980b9;
}

.title-ac {
  color: #8e44ad;
}

.badges span {
  display: inline-block;
  background: #e8f6f3;
  color: #16a085;
  padding: 5px 10px;
  border-radius: 8px;
  font-size: 12px;
  margin: 3px;
}

/* Badges couleurs spéciales */
.ee-badges span {
  display: inline-block;
  color: #16a085;
  background: #e8f6f3;
  padding: 5px 10px;
  border-radius: 8px;
  font-size: 12px;
  margin: 3px;
}

.itec-badges span {
  display: inline-block;
  color: #2980b9 ;
  background: #dbe8fb ;
  padding: 5px 10px;
  border-radius: 8px;
  font-size: 12px;
  margin: 3px;
}
.ac-badges span {
  display: inline-block;
  color: #8e44ad ;
  background: #e8dbfb ;
  padding: 5px 10px;
  border-radius: 8px;
  font-size: 12px;
  margin: 3px;
}

.col-spec ul {
  margin: 10px 0;
  padding-left: 20px;
}
.col-spec li {
  margin-bottom: 5px;
}

/* Responsive */
@media (max-width: 900px) {
  .specialites-grid {
    grid-template-columns: 1fr;
  }
}

 .bts-section {
  padding: 50px 20px 100px;
  background: #f9fafb;
  font-size: 1.25rem;
}

.bts-section .heading {
  margin-bottom: 40px;
  text-align: center;
}

.bts-container {
  max-width: 1200px;
  margin: auto;
}
.bts-container h2 {
margin:40px;
  font-size: 2.5rem;
  color: rgb(32, 32, 32);
  font-weight: 800;
  text-align: center;
}

.intro-bts h2 {
  font-size: 28px;
  font-weight: bold;
  margin-bottom: 10px;
}
.intro-bts p {
  color: #444;
  line-height: 1.6;
}
.intro-bts .badges {
  margin-top: 15px;
}

.flex-container {
  display: flex;
  gap: 20px;
  margin-top: 30px;
}

.col-spec {
  flex: 1;
  background: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.col-spec h3 {
  margin-bottom: 10px;
}

.title-sisr {
  color: #fe8c22;
}
.mon-choix {
  font-size: 14px;
  background: #fe8c22;
  color: white;
  padding: 3px 8px;
  border-radius: 6px;
  margin-left: 8px;
}

.title-slam {
  color: #3b82f6;
}

.badges span {
  display: inline-block;
  background: #ffe5cc;
  color: #fe8c22;
  padding: 5px 10px;
  border-radius: 8px;
  font-size: 12px;
  margin: 3px;
}
.col-spec:nth-child(2) .badges span {
  background: #dbeafe;
  color: #3b82f6;
}

.col-spec ul {
  margin: 10px 0;
  padding-left: 20px;
}
.col-spec li {
  margin-bottom: 5px;
}
.deroulement {
margin:40px;
  font-size: 2.5rem;
  color: rgb(32, 32, 32);
  font-weight: 800;
  text-align: center;
}
.cours-tp {
  margin-top: 40px;
}
.cours-tp ul {
  margin: 15px 0;
  padding-left: 20px;
}
.cours-tp li {
  margin-bottom: 5px;
}
 .annees {
    display: flex;
    gap: 2rem;
    margin-bottom: 4rem;
    flex-wrap: wrap;
  }
  .annee-block1 {
margin-bottom: 25px;
    flex: 1;
    background: #fff;
    padding: 0.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgb(0 0 0 / 0.05);
  }

  .annee-block1 h2 {
    font-weight: 700;
    font-size: 2rem;
 
    color: #fe8c22;
  }
  .annee-block {
    flex: 1;
    background: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgb(0 0 0 / 0.05);
    min-width: 320px;
  }

  .annee-block h2 {
    font-weight: 700;
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #fe8c22;
  }

  .annee-block h3 {
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
  }

  .annee-block p {
    line-height: 1.5;
    font-size: 1.1rem;
  }

  .epreuves-list {
    margin-left: 1.2rem;
    list-style: disc;
  }


    /* === 3. Blocs cours avec vraies matières === */
  .cours-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
  }

  .cours-block {
    flex: 1 1 calc(33.333% - 1rem);
    background: white;
    border-radius: 10px;
    padding: 1.3rem 1.5rem;
    box-shadow: 0 4px 12px rgb(0 0 0 / 0.05);
    position: relative;
    min-width: 280px;
  }

  .cours-block .barre-orange {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 6px;
    background-color: #fe8c22;
    border-radius: 10px 0 0 10px;
  }

  .cours-block h4 {
    margin: 0 0 0.7rem 0;
    font-weight: 700;
    font-size: 1.3rem;
    color: #fe8c22;
  }

  .cours-block p {
    font-size: 1.25rem;
    color: #444;
    line-height: 1.4;
  }

  /* Responsive */
  @media (max-width: 900px) {
    .annees {
      flex-direction: column;
    }
    .cours-block {
      flex: 1 1 100%;
    }
    .frise-container {
      min-width: 100%;
    }
  }


.more-button {
  display: inline-block;
  background: #fe8c22;
  color: white;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(254, 140, 34, 0.4);
  transition: background-color 0.3s, box-shadow 0.3s;
}
.more-button:hover {
  background: #cc6e19;
  box-shadow: 0 6px 15px rgba(204, 110, 25, 0.6);
}

/* Responsive */
@media (max-width: 900px) {
  .flex-container {
    flex-direction: column;
  }
}

/* back to home button */
.backbtn{
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
  margin-top: 4rem;
}
.backbtn .btn {
  position: relative;
  line-height: 0;
  padding: 1.6rem 3rem;
  border-radius: .5em;
  transition: 0.3s;
  color: #fff;
  border: 2px solid #fff;
  box-shadow: 0px 5px 10px rgba(252, 140, 5, 0.6);
  text-align: center;
    border: 1px solid #fc8c05;
  background: #fc8c05;
}
.backbtn .btn span {
  font-weight: 600;
  font-size: 1.7rem;
  font-family: 'Nunito', sans-serif;
}
.backbtn .btn i {
  margin-right: 0.5rem;
  font-size: 1.5rem;
  transition: 0.3s;
}
.backbtn .btn:hover{
  background: #ffffff;
  color: #000;
}
.backbtn .btn:hover i {
  transform: translateX(-8px);
}/* work section ends */

/* common media queries starts*/
@media(max-width:450px){
  html{
    font-size: 55%;
  }
  body{
    padding-right: 0;
  }
  section{
    padding: 2rem;
  }
}
/* common media queries ends*/


/* scroll top starts */
#scroll-top{
  position: fixed;
  top: -140%;
  right: 2rem;
  padding: 1rem 1.5rem;
  font-size: 2rem;
  background: #ffae00;
  color: rgb(13, 0, 44);
  border-radius: 5rem;
  transition: 1s linear;
  z-index: 1000;
}
#scroll-top.active{
  top: calc(100% - 12rem);
}
/* scroll top ends */
.footer {
  min-height: auto;
  padding-top: 0;
  padding-bottom: 20px;
  background: rgb(0, 1, 43);
}
.footer .box-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}
.footer .box-container .box {
  flex: 1 1 25rem;
  margin: 2.5rem;
}
.footer .box-container .box h3 {
  font-size: 2.5rem;
  color: #fff;
  padding-bottom: 1rem;
  font-weight: normal;
}
.footer .box-container .box p {
  font-size: 1.5rem;
  color: #ccc;
  padding: 0.7rem 0;
  text-transform: none;
}
.footer .box-container .box p a {
  color: #ccc;
}
.footer .box-container .box p i {
  padding-right: 1rem;
  color: #ffae00;
}

.footer .box-container .box .share {
  display: flex;
  flex-wrap: wrap;
  padding: 1rem 0;
}

.footer .credit {
  padding: 1rem 0 0 0;
  text-align: center;
  font-size: 1.5rem;
  font-family: "Nunito", sans-serif;
  font-weight: 600;
  color: #fff;
  border-top: 0.1rem solid #fff3;
}
.footer .credit a {
  color: #ffae00;
}
.footer .fa {
  color: #e90606;
  margin: 0 0.3rem;
  font-size: 1.5rem;
  animation: pound 0.35s infinite alternate;
}
@-webkit-keyframes pound {
  to {
    transform: scale(1.1);
  }
}
@keyframes pound {
  to {
    transform: scale(1.1);
  }
}
@media (max-width: 450px) {
  .footer .box-container .box {
    margin: 1.5rem;
  }
  .footer .box-container .box p {
    padding: 0.7rem;
  }
  .footer .box-container .box .share a {
    padding: 1.2rem;
  }
}
/* footer section ends */

/* common media queries starts*/
@media (max-width: 450px) {
  html {
    font-size: 55%;
  }
  body {
    padding-right: 0;
  }
  section {
    padding: 2rem;
  }
}
