:root {
  --bg: #0f1115;
  --card: #0b0c0f;
  --accent: #66d9ff;
  --muted: #9aa4b2;
  --glass: rgba(255,255,255,0.03);
}

* {
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

html, body {
  height: 100%;
  margin: 0;
  background: url('../images/backgroundVolt.jpeg') no-repeat center center fixed;
  background-size: cover;
  color: #e6eef6;
}

a { 
  color: inherit; 
  text-decoration: none; 
}

.site {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

header, footer { position: relative; z-index: 5; }

header {
  width: 100%;
  padding: 28px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;   /* logo à gauche, menus à droite */
  flex-wrap: nowrap;                 /* jamais de retour à la ligne */
}

.logo {
  display: flex;
  align-items: center;
  gap: clamp(8px, 2vw, 16px);       /* ✅ espace adaptatif entre logo et texte */
  flex-shrink: 0;                    /* logo ne rétrécit pas */
}

.logo img { 
  width: clamp(57px, 6.5vw, 80px);   /* ✅ un peu plus grand que 64px max */
  height: clamp(57px, 6.5vw, 80px);
  object-fit: contain; 
}


.brand { 
  font-weight: 700; 
  font-size: clamp(16px, 2vw, 24px);
  white-space: nowrap;               /* jamais à la ligne */
}

.topmenus {
  display: flex;
  gap: clamp(12px, 2vw, 28px);      /* ✅ espace adaptatif entre les menus */
  align-items: center;
  flex-wrap: nowrap;                 /* toujours horizontal */
  justify-content: flex-end;
  flex-shrink: 0;                    /* menus ne rétrécissent pas */
}

.menu button {
  background: transparent;
  border: none;
  color: var(--muted);
  cursor: pointer;
  padding: clamp(8px, 1vw, 16px);
  font-size: clamp(14px, 1.8vw, 20px); /* menus s'adaptent à la taille de l'écran */
  font-family: Arial, sans-serif;
  white-space: nowrap;               /* pas de coupure de mot */
}



/* Hero occupe toute la fenêtre */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;           /* prend toute la hauteur de la fenêtre */
  display: flex;
  justify-content: center; /* centre horizontalement */
  align-items: center;     /* centre verticalement */
}

/* Cercle centré mais légèrement au-dessus */
.circle-wrap {
  position: relative;
  width: 25vw;
  height: 25vw;
  max-width: 400px;
  max-height: 400px;
  min-width: 200px;
  min-height: 200px;
  border-radius: 50%;
  border: 2px solid gray;
  z-index: 10;
  transform: translateY(-7vh); /* ✅ décale un peu vers le haut */
}

/* Cellules proportionnelles */
.logo-node {
  position: absolute;
  width: 8vw;
  height: 8vw;
  max-width: 100px;
  max-height: 100px;
  min-width: 50px;
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent; /* ✅ plus de fond arrondi */
  border: none;           /* ✅ plus de contour */
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 20;
}

.logo-node img {
  width: 100%;
  height: auto;   /* ✅ respecte les proportions originales */
  border-radius: 0; /* ✅ plus de découpe en rond */
  object-fit: contain; /* ✅ garde le PNG entier, sans crop */
}


/* Positions des cellules liées au cercle */
.node-vis { 
  top: 10%; 
  left: 71%; 
  transform: translate(-50%, -50%);
}
.node-av { 
  top: 71%; 
  left: 8%; 
  transform: translate(-50%, -50%);
}
.node-mu { 
  top: 87%; 
  left: 87%; 
  transform: translate(-50%, -50%);
}

/* Footer toujours en bas */
footer {
  width: 100%;
  padding: 24px;
  text-align: center;
  color: var(--muted);
  font-family: Arial, sans-serif;
  margin-top: auto;
}

.about-page, .archives-page, .members-page {
  display: none;
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: var(--bg);
  color: #e6eef6;
  padding: 40px;
  overflow-y: auto;
  z-index: 100;
}

.return-btn {
  display: inline-block;
  font-weight: bold;
  padding: 10px 20px;
  margin-top: 20px;
  cursor: pointer;
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(6px);
  border-radius: 6px;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
  .circle-wrap { width: 30vw; height: 30vw; }
  .logo-node { width: 10vw; height: 10vw; }
}

@media (max-width: 899px) {
  header {
    flex-direction: column;
    align-items: flex-start;
    padding: 12px 16px;
  }
  .logo img { width: 36px; height: 36px; }
  .topmenus {
    width: 100%;
    justify-content: flex-start;
    gap: 8px;
  }
  .circle-wrap { width: 50vw; height: 50vw; transform: translateY(-5vh); }
  .logo-node { width: 18vw; height: 18vw; }
  .hero { height: 100vh; }
}

#center-text-box {
  pointer-events: none;
  transition: opacity 0.6s ease;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  line-height: 1.05;
}