body, html {
    min-height: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden; /* évite le débordement horizontal à cause du slider */
    overflow-y: auto;   /* autorise le scroll vertical */
    font-family: 'Ropa Sans', sans-serif;
}

body{
    background-color: rgb(44, 9, 64);
}

button{
    background-color: blue;
    color: rgb(159, 186, 210);
    border-radius: 12px;
    cursor: none;
}



#bg-wrap {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; /* très important : envoie en arrière-plan */
    overflow: hidden;
}

/* Optionnel : si tu ajoutes des éléments par-dessus */
.content {
    position: relative;
    z-index: 1; /* pour s'assurer que ça passe au-dessus du bg-wrap */
    color: white; /* utile si ton background est coloré/animé */
    padding: 2rem;
}

#principal-title{
    text-align: left;
    font-size: 75%;
    -webkit-text-fill-color: rgb(36, 67, 118); /* Will override color (regardless of order) */
    -webkit-text-stroke: 0.5px rgb(24, 13, 59);
    font-family: BasicFont;
}

@font-face {
    font-family: 'BasicFont'; /* nom personnalisé que tu vas utiliser */
    src: url('font.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}


.learn-panel {
  background: #03030f;
  background: linear-gradient(0deg, rgba(3, 3, 15, 0.9) 0%, rgba(36, 15, 54, 0.9) 100%);  
  top: 400px;
  border-radius: 8px;
  padding: 20px;
  width: 90%;              /* occupe 45% */
  margin-top: 175px;        /* décalé vers le bas */
  margin-left: 50px;
  margin-right: 50px;
  box-sizing: border-box;
  color: #244376;
  -webkit-text-stroke: 0.5px #180d3b;
  font-family: 'BasicFont';
}

#header {
  background: #03030f;
  background: linear-gradient(0deg, rgba(3, 3, 15, 0.9) 0%, rgba(36, 15, 54, 0.9) 100%);
  border-radius: 8px;
  padding: 20px;
  width: 45%;             /* occupe 45% */
  box-sizing: border-box;
  color: #244376;
  -webkit-text-stroke: 0.5px #180d3b;
  font-family: 'BasicFont';
  text-align: right;
}

@media (max-width: 768px) {
  #top-bar {
    flex-direction: column;
    align-items: center;
  }

  #projects-panel,
  #header {
    width: 90%;
    text-align: center;
    font-size: 1.3rem; /* augmente la taille du texte sur mobile */
  }

  #projects-panel {
    margin-top: 20px;
  }

  #contact-panel {
    margin-top: 500px;
    width: 90%;
    text-align: center;
    font-size: 1.3rem; /* augmente la taille du texte sur mobile */
  }

  #skills-panel{
    margin-top: 500px;
    width: 90%;
    text-align: center;
    font-size: 1.3rem; /* augmente la taille du texte sur mobile */
  }

  #about-me-panel{
    margin-top: 50px;
    width: 90%;
    text-align: center;
    font-size: 1.3rem; /* augmente la taille du texte sur mobile */
  }
}


* {
  box-sizing: border-box;
}

.course-grid {
    width: 100%;
    max-width: 100%; /* ou 100% si tu veux qu’il s’adapte */
    margin: auto;
}

.course-card {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    max-width: 100%;
}

.course-card::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
.course-card::-webkit-scrollbar-thumb {
  background: black;
  border-radius: 10px;
}
.course-card::-webkit-scrollbar-track {
  background: transparent;
}
.course-card > div {
  scroll-snap-align: start;
  flex-shrink: 0;
  width: 300px;
  height: 300px;
  margin-right: 50px;
  border-radius: 10px;
  background: #eee;
  transform-origin: center center;
  transform: scale(1);
  transition: transform 0.5s;
  position: relative;
  
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 100px;
}

.author-info {
  background: rgba(0, 0, 0, 0.75);
  color: white;
  padding: 0.75rem;
  text-align: center;
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  margin: 0;
}
.author-info a {
  color: white;
}
slider .img {
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.slider > a {
  display: inline-flex;
  width: 1.5rem;
  height: 1.5rem;
  background: rgb(0, 0, 0);
  text-decoration: none;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin: 0 0 0.5rem 0;
  position: relative;
}
.slider > a:active {
  top: 1px;
}
.slider > a:focus {
  background: #000;
}


.slide img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* ou cover selon ce que tu préfères */
    display: block;
    transition: filter 0.3s ease;
    background-color: #000000;
    object-fit: cover;
    border-radius: 8px;
}

/* Contenu caché par défaut */
.slide-content {
    position: absolute;
    bottom: 15px;
    left: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.6);
    padding: 10px;
    border-radius: 6px;
    color: #000000;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none; /* empêcher les clics quand invisible */
    font-size: 0.9rem;
}

/* Au hover, affichage */
.slide:hover .slide-content {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto; /* rendre cliquable */
}

/* Style titre */
.slide-content h3 {
    margin: 0 0 5px 0;
    font-size: 1.1rem;
}

/* Style description */
.slide-content p {
    margin: 0 0 8px 0;
    font-size: 0.85rem;
}

/* Style bouton */
.slide-content .btn {
    display: inline-block;
    padding: 6px 14px;
    background-color: #a765be;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.7rem;
    transition: background-color 0.3s ease;
}

.slide-content .btn-no {
    display: inline-block;
    padding: 6px 14px;
    background-color: #4040408a;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.85rem;
    transition: background-color 0.3s ease;
    pointer-events: none;
}

.slide-content .btn:hover {
    background-color: #504b8a;
    cursor: none;
}

.slide:hover img {
    filter: brightness(50%);
}

button, button * {
  cursor: none;
}



.cursor {
  pointer-events: none;
  position: fixed;
  display: none;
  transition: mix-blend-mode 0.5s ease-out;
  border-radius: 0;
  mix-blend-mode: difference;
  z-index: 9999;
  border: #0095ff 2px solid;
}

.circle {
  pointer-events: none;
  transition: none;
  position: absolute;
  display: block;
  width: 30px;
  height: 30px;
  border-radius: 20px;
  background-color: #ffffff;
}

.slide {
  position: relative;    /* nécessaire pour positionner le badge dans ce conteneur */
  width: 300px;          /* exemple, adapte à ton design */
  height: 200px;
  overflow: hidden;
  border-radius: 10px;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background-color: #00ad85; /* ou ce que tu veux */
  color: white;
  padding: 5px 10px;
  border-radius: 12px;
  font-size: 0.8rem;
  z-index: 2; /* au-dessus de l’image */
  pointer-events: none; /* facultatif si tu veux qu’il ne gêne pas le clic */
}

.fisheye-hover {
  transform: scale(1.4);
  transition: transform 0.2s ease-out;
  z-index: 1000; /* pour qu’il soit au‑dessus */
}

.path-container {
  position: relative;
  width: 90%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 100px 0;
  min-height: 1000px; /* ✅ ajuste selon ton nombre de leçons */
}


/* Ligne centrale */
.path-line {
  position: absolute;
  top: 0;
  left: 50%;
  width: 6px;
  height: 100%;
  background: linear-gradient(180deg, #00ff99, #0077ff);
  transform: translateX(-50%);
  border-radius: 3px;
  z-index: 0;
}

/* Les leçons (bulles) */
.lesson {
  position: absolute; /* ✅ pour pouvoir les placer précisément */
  width: 110px;
  height: 110px;
  background: #333;
  color: white;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 1;
  cursor: none;
  transition: transform 0.2s ease, background 0.3s ease;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

.lesson span {
  font-size: 2rem;
  font-weight: bold;
}

.lesson p {
  font-size: 0.9rem;
  margin-top: 6px;
  text-align: center;
}

.lesson.completed {
    background-color: gold;
    color: black;
    box-shadow: 0 0 15px 5px rgba(255, 215, 0, 0.7);
    transform: scale(1.05);
    transition: all 0.2s ease;
}

.lesson.locked {
    opacity: 0.5;
    filter: grayscale(70%);
}

.lesson.completed {
  background: gold;
  color: #333;
}

.lesson.unlocked:hover {
  transform: scale(1.1);
}

/* 💫 Positionnement serpent */
.lesson:nth-child(2)  { top:  50px;  left: calc(50% - 140px); }  /* à gauche */
.lesson:nth-child(3)  { top: 220px; left: calc(50% + 140px); }  /* à droite */
.lesson:nth-child(4)  { top: 390px; left: calc(50% - 140px); }  /* à gauche */
.lesson:nth-child(5)  { top: 560px; left: calc(50% + 140px); }  /* à droite */
.lesson:nth-child(6)  { top: 730px; left: calc(50% - 140px); }  /* à gauche */

/* 📱 Mobile : tout centré verticalement */
@media (max-width: 599px) {
  .lesson {
    position: relative;
    margin: 100px auto;
    left: 50%;
    transform: translateX(-50%);
  }
}

#course-title h1{
  text-align: center;
  font-family: 'BasicFont';
}

.lesson.current {
    box-shadow: 0 0 15px 5px gold;
    transform: scale(1.1);
    transition: 0.2s ease;
}
