/* --------------------------------
   BASE GÉNÉRALE
---------------------------------*/
body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: black;
  color: white;
}

/* Fond Vanta */
#background-globe {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
}

/* ------------- SIDEBAR --------- (inchangé) */

.sidebar {
  width: 250px;
  height: 100vh;
  position: fixed;
  left: 0;
  top: 0;

  /* look “carte” cohérent avec les project-block */
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(89, 0, 137, 0.4);
  border-radius: 0 16px 16px 0;      /* coins arrondis à droite */
  box-shadow: 4px 0 15px rgba(0, 0, 0, 0.4);

  color: white;
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  z-index: 10;
  transition: transform 0.3s ease;
}

.sidebar h1 {
  margin: 0 0 30px;
  font-size: 22px;
  text-align: center;
}

.sidebar a {
  color: #ddd;
  text-decoration: none;
  padding: 15px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: 0.3s;
}

.sidebar a:hover {
  background: rgba(89, 0, 137, 0.2);
  color: #590089;
}

/* ------------- CONTENU --------- */
.content {
  margin-left: 250px;
  padding: 30px;
  color: #fff;
  transition: margin-left 0.3s ease;
}

/* Variante utilisée SEULEMENT sur la page d’accueil */
.content.center {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100vh;   /* centré verticalement */
}

/* Décaler le premier bloc projet pour qu’il ne colle pas au haut */
.content .project-block:first-child {
  margin-top: 60px;
}

/* ------------- BURGER --------- */
.menu-toggle {
  position: fixed;
  top: 15px;
  left: 15px;
  font-size: 24px;
  background: rgba(0, 0, 0, 0.5);
  padding: 10px 15px;
  border-radius: 5px;
  cursor: pointer;
  z-index: 20;
  display: none;
  color: white;
}

/* ----- Responsive sidebar + contenu ----- */
@media screen and (max-width: 768px) {
  .sidebar           { transform: translateX(-100%); }
  .sidebar.visible   { transform: translateX(0); }
  .menu-toggle       { display: block; }

  .content,
  .content.center {        /* les deux variantes */
    margin-left: 0;
    padding: 20px;
  }
}

/* ---------- Typo ------------- */
h1, h2, h3 {
  font-family: 'Orbitron', sans-serif;
  letter-spacing: 1px;
  font-weight: 700;
}
body, p, li, a { font-family: 'Poppins', sans-serif; font-weight: 300; }

a { color: #8a2be2; }
a:hover { color: #590089; }

/* ---------- Cartes projet ------ */
.project-block {
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(89, 0, 137, 0.4);
  border-radius: 16px;
  padding: 25px 30px;
  margin: 25px auto;
  max-width: 800px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}
.project-block h2 { margin: 0 0 12px; font-size: 1.4rem; color:#fff; }

.project-block ul { list-style: none; margin: 0; padding: 0; }
.project-block li { margin: 8px 0; }
.project-block a {
  color: #ddd;
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 6px;
  display: inline-block;
  transition: background 0.25s, color 0.25s, transform 0.25s;
}
.project-block a:hover {
  background: rgba(89, 0, 137, 0.25);
  color: #590089;
  transform: translateX(4px);
}

/* Cartes plus compactes en mobile */
@media (max-width: 600px) {
  .project-block { padding: 18px 20px; border-radius: 12px; }
  .project-block h2 { font-size: 1.2rem; }
}

/* 1 ▸ Suppression globale des puces dans toutes les listes  */
ul { list-style: none; margin: 0; padding: 0; }

/* 2 ▸ Appliquer le look « carte floutée » à toutes les <section>
      → on réutilise les mêmes variables que .project-block         */
.content section:not(.no-card) {
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(89, 0, 137, 0.4);
  border-radius: 16px;
  padding: 25px 30px;
  margin: 25px auto;
  max-width: 800px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

/* 3 ▸ Espacement si plusieurs cartes se suivent */
.content section:not(.no-card) + section:not(.no-card) {
  margin-top: 40px;
}

/* Titre principal - permet le retour à la ligne */
.content section h1 {
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
  line-height: 1.3;
  font-size: 2em;
}

@media (max-width: 600px) {
  .content section h1 {
    font-size: 1.5em;
  }
}

  /* Styles spécifiques pour le bloc Pearltrees */
    .pearltrees-block {
      background: rgba(0, 0, 0, 0.35);
      backdrop-filter: blur(8px);
      border: 1px solid rgba(89, 0, 137, 0.4);
      border-radius: 16px;
      padding: 25px 30px;
      margin: 25px auto;
      max-width: 800px;
      box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    }

    .pearltrees-card {
      display: flex;
      align-items: center;
      gap: 25px;
      margin-top: 20px;
      padding: 30px;
      background: rgba(89, 0, 137, 0.1);
      border: 2px solid rgba(89, 0, 137, 0.3);
      border-radius: 12px;
      transition: all 0.3s ease;
    }

    .pearltrees-card:hover {
      background: rgba(89, 0, 137, 0.15);
      border-color: rgba(89, 0, 137, 0.5);
      transform: translateY(-3px);
      box-shadow: 0 8px 20px rgba(89, 0, 137, 0.3);
    }

    .pearltrees-icon {
      font-size: 4rem;
      color: #8a2be2;
      min-width: 80px;
      text-align: center;
      animation: pulse 2s ease-in-out infinite;
    }

    @keyframes pulse {
      0%, 100% { opacity: 1; }
      50% { opacity: 0.6; }
    }

    .pearltrees-content {
      flex: 1;
    }

    .pearltrees-content h3 {
      margin: 0 0 10px;
      font-size: 1.4rem;
      color: #fff;
      font-family: 'Orbitron', sans-serif;
    }

    .pearltrees-content p {
      margin: 0 0 20px;
      color: #ddd;
      line-height: 1.6;
    }

    .pearltrees-button {
      display: inline-flex;
      align-items: center;
      gap: 12px;
      padding: 12px 28px;
      background: linear-gradient(135deg, #590089, #8a2be2);
      color: white;
      text-decoration: none;
      border-radius: 8px;
      font-weight: 500;
      transition: all 0.3s ease;
      box-shadow: 0 4px 15px rgba(89, 0, 137, 0.4);
    }

    .pearltrees-button:hover {
      background: linear-gradient(135deg, #8a2be2, #590089);
      transform: translateX(5px);
      box-shadow: 0 6px 20px rgba(138, 43, 226, 0.6);
      color: white;
    }

    .pearltrees-button i {
      transition: transform 0.3s ease;
    }

    .pearltrees-button:hover i {
      transform: translateX(5px);
    }

    /* Responsive */
    @media (max-width: 768px) {
      .pearltrees-card {
        flex-direction: column;
        text-align: center;
        padding: 25px 20px;
      }

      .pearltrees-icon {
        font-size: 3rem;
      }

      .pearltrees-button {
        width: 100%;
        justify-content: center;
      }
      }

      /* Bloc titre centré */
.title-block {
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(89, 0, 137, 0.4);
  border-radius: 16px;
  padding: 25px 30px;
  margin: 25px auto;
  max-width: 800px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  text-align: center;
}

.title-block h1 {
  margin: 0;
}

/* Bloc titre centré */
.title-block {
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(89, 0, 137, 0.4);
  border-radius: 16px;
  padding: 25px 30px;
  margin: 25px auto;
  max-width: 800px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  text-align: center;
}

.title-block h1 {
  margin: 0;
}

/* Fix pour éviter le débordement du title-block */
.content.center .title-block {
  max-width: 90%;
  width: 100%;
  box-sizing: border-box;
}

/* Assurer que le content center ne force pas une largeur fixe */
.content.center {
  width: 100%;
  box-sizing: border-box;
  padding: 30px 20px;
}

/* Responsive pour petits écrans */
@media screen and (max-width: 768px) {
  .title-block {
    padding: 20px 15px;
    max-width: 95%;
  }
}

/* État actif du menu (barre violette à gauche) */
.sidebar a.active {
  background: rgba(138, 43, 226, 0.15);
  color: #fff;
  border-left: 4px solid #8a2be2; /* Ajoute une bordure visuelle */
}
.sidebar a.active i {
  color: #8a2be2;
}

/* Icônes violettes dans les titres H2 */
.project-block h2 i {
  color: #8a2be2;
  margin-right: 10px;
}

/* Puces personnalisées (flèche) pour les listes */
.project-block ul li {
  position: relative;
  padding-left: 25px;
  margin-bottom: 10px;
}
.project-block ul li::before {
  content: "▹";
  position: absolute;
  left: 0;
  color: #8a2be2;
  font-weight: bold;
}

/* --- BOUTONS PDF --- */
.pdf-container {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.pdf-container a {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(138, 43, 226, 0.3);
  padding: 10px 18px;
  border-radius: 8px;
  color: #fff;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  text-decoration: none;
}

.pdf-container a:hover {
  background: rgba(138, 43, 226, 0.3);
  border-color: #8a2be2;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(138, 43, 226, 0.25);
  color: white;
}

/* --- RESPONSIVE MOBILE POUR BOUTONS --- */
@media screen and (max-width: 768px) {
  .pdf-container {
    flex-direction: column;
  }
  .pdf-container a {
    width: 100%;
    justify-content: center;
    box-sizing: border-box;
  }
}