:root {
  --rose: #ff5f7e;
  --violet: #8b5cf6;
  --noir: #121212;
  --carte: #121212;
  scroll-behavior: smooth;
}


* {
  box-sizing: border-box;
  font-family: 'Quicksand', sans-serif;
  font-family: inherit;
}

body {
  margin: 0;
  font-family: 'Quicksand', sans-serif;
  background: radial-gradient(circle at center, #1f1f1f, #121212);
  color: #f1f1f1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  min-height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
  position: relative;
}

#backgroundCanvas {
  position: fixed; /* fixed pour couvrir toute la page même en scroll */
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
}


/* --- Navigation sticky --- */
.main-nav {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  display: flex;
  justify-content: center;
  gap: 2rem;
  padding: 0.7rem 1rem;
  z-index: 999;
}

.main-nav a {
  color: #f1f1f1;
  font-weight: bold;
  text-decoration: none;
  transition: color 0.2s ease;
  font-size: 0.95rem;
}

.main-nav a:hover {
  color: var(--rose);
}



.content-wrapper {
  position: relative;
  z-index: 1;
  padding: 2rem;
  max-width: 960px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  border-radius: 60px;
  background: rgba(0, 0, 0, 0.094);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  
}

.vivlos-wrapper {
  position: relative;
  display: inline-block;
  margin-bottom: 1rem;
}
.vivlos-wrapper::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 320px;
  height: 320px;
  transform: translate(-50%, -50%);
  z-index: 0;
  border-radius: 20%;
}
.vivlos-wrapper img {
  position: relative;
  z-index: 1;
  width: 60%;
  border-radius: 20px 20px 20px 20px;
}

header {
  text-align: center;
  margin-bottom: 2rem;
}

.gradient-title {
  font-family: 'Quicksand', sans-serif;
  background: linear-gradient(to right, var(--rose), #ffa16a);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  text-shadow: #111;
}




h1 {
  font-size: 2.4rem;
  margin: 0.5rem 0;
}

p {
  color: #b5b5b5;
  font-size: 1rem;
}

.hub-explorer {
  margin-top: 3rem;
  padding: 2rem;
  border-radius: 16px;
  max-width: 960px;
  width: 100%;
}

.hub-columns {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: stretch; /* pour que les colonnes aient toutes la même hauteur */
}
.hub-col {
  flex: 1 1 45%;
  display: flex;
  flex-direction: column;
}

.hub-col h3 {
  color: #ffa1b0;
  margin-bottom: 0.5rem;
}

.hub-col ul {
  list-style: disc;
  padding-left: 1.2rem;
  color: #ddd;
  font-size: 0.95rem;
}

.hub-divider {
  width: 2px;
  background: rgba(255, 255, 255, 0.1);
  align-self: stretch; /* pour que la ligne prenne toute la hauteur */
  min-height: 100%;
}

.hub-pill {
  display: block;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 1rem; /* un peu d'espace en dessous */
  text-align: center;  /* au cas où le texte interne */
}

.hub-pill,
a.hub-pill {
  position: relative;
  padding: 0.6rem 1.4rem;
  font-weight: bold;
  font-size: 1rem;
  border-radius: 999px;
  background: #111;
  color: white;
  z-index: 0;
  cursor: pointer;
  transition: 0.3s;
  isolation: isolate;
  overflow: hidden;
  text-decoration: none;
  display: inline-block;
  
}



.hub-pill.active::before,
a.hub-pill.active::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 999px;
  padding: 2px;
  background: linear-gradient(
    90deg,
    #ff5f7e,
    #ff8a5c,
    #ffd95c,
    #70e000,
    #38bdf8,
    #a78bfa,
    #ff5f7e
  );
  background-size: 400% 400%;
  animation: outlineFlow 5s linear infinite;
  z-index: -2;
}

.hub-pill.active::after,
a.hub-pill.active::after {
  content: "";
  position: absolute;
  inset: 2px;
  background: #111;
  border-radius: 999px;
  z-index: -1;
}

@keyframes outlineFlow {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 100% 50%;
  }
}

@media (max-width: 600px) {
  .vivlos-wrapper img {
    width: 140px;
  }

  h1 {
    font-size: 1.6rem;
    line-height: 1.3;
    margin: 0.6rem 0;
  }

  p {
    font-size: 0.85rem;
    color: #ccc;
  }

  .hub-columns {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2rem;
  }

  .hub-divider {
    display: none;
  }

  .hub-col {
    width: 100%;
    max-width: 300px;
  }

  .hub-col ul {
    margin-top: 1rem;
    padding-left: 0;
    list-style: none;
  }

  .hub-col li {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    color: #f1f1f1;
    position: relative;
    padding-left: 1.2rem;
  }

  .hub-col li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--rose);
  }

  .hub-pill,
  a.hub-pill {
    padding: 0.5rem 1.2rem;
    font-size: 1rem;
  }

  .content-wrapper {
    background: rgba(0, 0, 0, 0.094);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
  }
}

.quick-links {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding-left: 1.2rem;
}

.quick-links a {
  color: #f1f1f1;
  text-decoration: none;
  font-size: 0.95rem;
  transition: 0.2s;
}

.quick-links a:hover {
  color: var(--rose);
  text-decoration: none;
}

.discord-section {
  margin-top: 3rem;
  text-align: center;
  width: 100%;
}

.discord-widgets {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
}

.discord-widgets iframe {
  max-width: 400px;
  width: 100%;
  height: 500px;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
}




/* --- Titre secondaire (h2) en dégradé --- */
h2.gradient-title {
  font-family: 'Quicksand', sans-serif;
  font-size: 1.6rem;
  background: linear-gradient(to right, var(--rose), var(--violet));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  margin-bottom: 1rem;
  text-align: center;

}


/* --- Section NAV --- */

/* --- Side Navigation --- */
.side-nav {
  position: fixed;
  top: 50%;
  right: 2rem;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3.2rem;
  z-index: 1000;
}


/* Vertical line */
.nav-line {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 4px;
  background: black;
  border-radius: 2px;
  right: 16px; /* Ajusté à la position des carottes */
  z-index: 0; /* Derrière les carottes */
  box-shadow: 0 0 0 1px white;
}

.side-nav .nav-link {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.6rem;
  color: white;
  text-decoration: none;
  font-weight: bold;
  font-size: 1rem;
  padding: 0.4rem 0.6rem;
  border-radius: 1rem;
  position: relative;
  z-index: 2; /* Devant la barre */
  background: none;
  transition: transform 0.2s ease;
}

.side-nav .nav-link:hover {
  background: none; /* Retire le fond rose */
  transform: translateX(-2px);
  color: white;
}


/* Navigation links */
.nav-link {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.4rem;
  padding: 0.6rem 1.2rem;
  border-radius: 1.5rem;
  background: #1e1e1e;
  color: white;
  font-weight: bold;
  font-size: 1rem;
  text-decoration: none;
  transition: background 0.2s;
  box-shadow: 0 2px 4px rgba(0,0,0,0.25);
  overflow: visible;
  z-index: 2;
}

.nav-link:hover {
  background: var(--rose);
  color: black;
}

.nav-label {
  z-index: 2;
}

/* Bigger and cleaner carrot icon */
.carrot-icon {
  width: 32px;
  height: 32px;
  object-fit: contain;
  filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.6));
}
/* La carotte sort du cadre */
.carrot-outside {
  width: 34px;
  height: 34px;
  object-fit: contain;
  position: relative;
  margin-left: 0.4rem;
  transform: translateX(30%);
  filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.3));
  z-index: 1;
  transition: transform 0.2s;
}

/* petit effet au hover */
.nav-link:hover .carrot-outside {
  transform: translateX(30%) scale(1.1);
}

/* Responsive: hide on mobile */
@media (max-width: 768px) {
  .side-nav {
    display: none;
  }
}





/* Container timeline */
#js-timeline {
  font-size: 1rem;
  border-radius: 1rem;
  background-color: #111827;
  box-shadow: 0 0 25px rgba(0,0,0,0.6);
  padding: 10px;
}
@media (max-width: 600px) {
  #js-timeline {
    width: 100% !important; /* full width sur mobile */
    height: 400px; /* un peu plus haut sur mobile */
    border-radius: 0; /* si tu veux retirer les arrondis */
    box-shadow: none; /* si tu veux enlever l’ombre */
    padding: 0 1rem; /* petit padding horizontal */
  }
}


/* Style général de la timeline */
.vis-timeline {
  background: transparent;
  border: none;
}

/* Lignes de fond horizontales */
.vis-grid.vis-horizontal {
  border-top: 1px solid #374151; /* gris sombre */
}

/* Axe temps */
.vis-time-axis .vis-text {
  color: #aaa;
  font-weight: 600;
  font-size: 0.9rem;
}

/* Grille verticale */
.vis-grid.vis-vertical {
  border-color: rgba(255, 255, 255, 0.1);
}


/* Bannière - rouge/orange */
.vis-item.banner {
  background-color: rgba(204, 59, 59, 0.85); /* Rouge foncé avec transparence */
  border-color: rgba(158, 46, 46, 0.9);
  color: white;
  font-weight: 600;
  border-radius: 20px 20px 20px 20px !important;
  overflow: visible !important; 
  padding: 6px 12px;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
  font-family: 'Quicksand', sans-serif;
  text-shadow: 0 1px 2px rgba(0,0,0,0.4);
}


/* Événement - bleu */
.vis-item.event {
  background-color: rgba(37, 99, 235, 0.85); /* Bleu foncé avec transparence */
  border-color: rgba(30, 64, 175, 0.9);
  color: white;
  font-weight: 600;
  border-radius: 20px 20px 20px 20px !important;
  overflow: visible !important; 
  padding: 6px 12px;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.4);
  font-family: 'Quicksand', sans-serif;
  text-shadow: 0 1px 2px rgba(0,0,0,0.4);
}

/* Items événements */
.vis-item {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  font-family: 'Quicksand', sans-serif;
  white-space: nowrap;
  font-weight: bold;
  font-size: 1.2rem;
}

.vis-item small {
  font-size: 0.9rem;
  opacity: 0.85;
  flex-shrink: 0;
}

.vis-item strong {
  font-weight: 600;
  font-size: 1rem;
  overflow: hidden;
  text-overflow: ellipsis;
}


#calendar {
  width: 100%;
  max-width: 1200px; /* largeur max du calendrier */
  margin: 2rem auto;
  padding: 1rem;
}