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


:root {
  --primary: #2ecc71;
  --primary-dark: #27ae60;
  --accent: #f1c40f;
  --danger: #e74c3c;
  --text: #2c3e50;
  --bg: #ecf0f1;
  --white: #ffffff;
  --shadow: rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] {
  --primary: #2ecc71;
  --primary-dark: #27ae60;
  --accent: #f1c40f;
  --danger: #e74c3c;
  --text: #ecf0f1;
  --bg: #1a1a1a;
  --white: #2c3e50;
  --shadow: rgba(255, 255, 255, 0.05);
}

@font-face {
  font-family: myFonts;
  src: url(./assets/fonts/Poppins-Black.ttf)
  format('truetype');
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: myFonts;
  transition: background 0.5s ease, color 0.3s ease;
}


.container-video{
  display: flex;
  gap: 20px;
  padding: 20px;
  max-width: 1200px;
  margin: auto;
}

/* VIDEO */
.video-player{
    
  flex: 1;
  position: sticky;
  top: 0;
  align-self: flex-start;
}

.video-title{
  margin-bottom: 10px;
  font-size: 1.4rem;
    background: navy;
    color: white;
    display: none;
}

video{
  width: 100%;
    height: 460px;
  aspect-ratio: 16 / 9;
 object-fit: cover;   
  border-radius: 8px;
  box-shadow: 0 0 5px var(--text);
}

/* PLAYLIST */
.playlist{
  flex: 1;
  max-width: 500px;
  height: 600px;
  overflow-y: auto;
  border: 1px solid var(--text);
  border-radius: 6px;
  padding: 10px;
  background: var(--white);
}

.playlist li{
  cursor: pointer;
  padding: 5px;
  border-bottom: 1px solid #ccc;
  font-size: 1.1rem;
    list-style-position: inside;
    list-style-type: decimal;
}

.playlist li:hover{
  background: var(--danger);
  color: white;
}

/* 📱 MOBILE */
@media (max-width: 768px){
  .container-video{
    flex-direction: column;
      padding: 2px;
  }

  .video-player{
      position: relative;
  }
  .playlist{
      
      
       height: 280px;
  }
    .playlist li{
        font-size: 0.9rem;
    }
}


footer{
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: var(--primary-dark);
  color: #fff;
  text-align: center;
  padding: 10px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  z-index: 999;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
}
.footer-links {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.footer-links a {
  color: var(--white);
  text-decoration: none;
  font-size: 15px;
  font-weight: 200;
  transition: color 0.3s;
  display: flex;
  flex-direction: column;
}
.footer-links a img{
  border: 2px solid var(--text);
  border-radius: 50%;
  aspect-ratio: 1;
  object-fit: cover;
}
.footer-links a:hover {
  color: #00bcd4;
}

.footer p {
  font-size: 13px;
  opacity: 0.8;
  margin-top: 5px;
}

/* Adaptation mobile */
@media (max-width: 600px) {
  .footer-links {
    gap: 15px;
  }
  .footer-links a {
    font-size: 0.6rem;
    font-weight: 200;
    
  }
  .footer-links a img{
    width: 42px;
  }
}

/* LES DEUXIEMES FOOTER DES ELEMENTS DE L'ACCUEIL */

#homefooter{
  background: linear-gradient(#068562, #013f4a);
  color: var(--white);
  display: grid;
  grid-template-columns: repeat(3,1fr);
  padding: 10px 5px;
}

.synthese{
  grid-column: span 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.synthese h3{
  color: #fff;
  font-family: myFonts,serif;
  font-size: 2.4rem;
  margin-bottom: 10px;
}
.synthese p{
  max-width: 700px;
  color: #f8f8f8;
  font-size: 1rem;
  font-weight: 200;
  font-family: 'Times New Roman', Times, serif;
}

.links-importants{
  grid-column:  span 3;
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.listOfLinks,.linksOfCourses{
  margin-top: 5%;
  width: 400px;
  height: auto;
  padding:  10px;
  display: block;
  border-radius: 8px;
  border-left: 4px solid;
  border-color:  #32127a;
  flex: 1 1 0;
  position: relative;
  overflow: hidden;


}
.listOfLinks h2,.linksOfCourses h2{
  font-size: 2.3rem;
  color: #f8f9f8;
  text-transform: capitalize;

}
/* .listOfLinks ul , .linksOfCourses ul{
  list-style-type: circle;
  list-style-position: inside;
} */
.listOfLinks ul li, .linksOfCourses ul li{
  margin-bottom: 15px;
    list-style-type: circle;
  list-style-position: inside;
  
  list-style-image: url("./assets/icons/verifier.png");

}

.listOfLinks ul li a, .linksOfCourses ul li a{
  text-transform: capitalize;
    max-width: 700px;
    color: #f8f8f8;
    font-size: 1.2rem;
    font-style: italic;
    font-weight: 200;
    padding: 10px;
    width: 100%;
    font-family: 'Times New Roman', Times, serif;
}

.listOfLinks ul li a:hover, .linksOfCourses ul li a:hover{
  border-bottom: 1px solid #1a1a1a;
  background: #11111136;
}





.album{
  display: grid;
  grid-template-columns: repeat(3,1fr);
  max-width: 400px;
  height: auto;
  gap: 6px;
  background-color: #111;
  padding: 10px 8px;
  margin-top: 20px;
  border-radius: 8px;
}
.album img{
 width: 100%;
 height: 100%;
 aspect-ratio: 1;
 border: 2px solid #32127a;
 border-radius: 8px;
}

.album img:hover{
  transform: scale(1.1);
}

.mediaSociaux{
  grid-column: span 3;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #591da9;
  width: 50%;
  height: 40px;
  margin:  3% auto;
  position: relative;
  border-radius: 20px;



}
.mediaSociaux ul{
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 10px 10px;
}
.mediaSociaux ul li{
  margin-right: 25px;
}
.mediaSociaux ul li a img{
 width: 38px;
 height: 38px;
 margin: 0 auto;
 aspect-ratio: 1/1;
 object-fit: cover;
 padding: 5px;
 border: none;
 border-radius: 50%;
}
.mediaSociaux ul li a img:hover{
  background: #57598aaa;
}
.copyright{
  grid-column:  span 3;
  margin: 0 auto;
  background: #0000004c;
  width: 100%;
  height: 100px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 20px;
}
.copyright p{
    max-width: 700px;
    color: #f8f8f8;
    font-size: 1rem;
    font-weight: 200;
    font-family: 'Times New Roman', Times, serif;
}
@media (max-width: 900px) {
    #homefooter, .links-importants{
    display: block;
  }
  .mediaSociaux{
    width: 100%;
  }
  .album{
    max-width: 100%;
  }
}

@media (max-width: 600px) {
  #homefooter, .links-importants{
    display: block;
  }
  .mediaSociaux{
    width: 100%;
  }
  .mediaSociaux ul li a img{
    width: 29px;
    height: 29px;
  }
  .mediaSociaux ul li{
  margin-right: 9px;
}
  .album{
    max-width: 100%;
  }
  .copyright{
    height:50px;
  }

}

/*  SLIDE ANIMATED*/
.containerSlide{
  width: 100%;
  overflow: hidden;
}

.slideItemes{
  display: flex;
  width: 100%;
  height: 40vh;
  max-height: 300px;
  animation: animate 70s linear infinite;
}

.slideItemes img{
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@keyframes animate {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-900%);
  }
}