/* ===================== */
/* POLICE & BASE GLOBALE */
/* ===================== */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

html {
  font-size: 16px;
}

body {
  background-color: #1b1b22;
  color: #ddd;
  min-height: 100vh;
  overflow-x: hidden;
}

.header {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    padding: 15px 30px;
    background-color: #153369;
    gap: 20px;
}

.title {
    text-align: center;
    font-size: clamp(18px, 4vw, 25px);
    font-weight: bold;
    color: #2b6ac9;
    /* on supprime white-space: nowrap pour permettre le retour à la ligne */
    overflow-wrap: break-word; /* coupe le mot si nécessaire */
}

#barres {
  transition: transform 0.75s ease-in-out; /* transition pour l'animation */
}

#barres.rotated {
  transform: rotate(180deg); /* rotation quand la classe est ajoutée */
}

.logo img {
    height: 50px;
}

.logo2 img {
    height: 50px;
    cursor: pointer;
    margin-left: auto;
    transition: height 0.5s ease;
}

#logo2 {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-bottom: 20px;
}

.navigation {
  opacity: 0;
  overflow-x: hidden;
  visibility: hidden;
  position: fixed;
  inset: 0;
  display: flex;
  justify-content: flex-end;
  background: rgba(8, 12, 32, 0.6);
  z-index: 9998;
  transition: opacity 1s ease, visibility 1s ease;
  pointer-events: none;
}

.nav-panel {
  margin-left: 1%;
  width: 260px;
  height: 100vh;
  background-color: #161638;
  padding: 24px;

  display: flex;
  flex-direction: column;
}

.navigation > div {
  background-color: #161638;
  border: 2px solid #757463;
  border-radius: 12px;
  padding: clamp(20px, 6vw, 40px);
  width: 90%;
  max-width: 75px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  /* 👇 AJOUTE ÇA */
  height: 100vh;        /* prend 80% de la hauteur de l'écran */
  max-height: 100vh;    /* limite pour éviter le débordement */
  
  text-align: center;
  box-shadow: 0 0 10px rgba(180, 180, 173, 0.5);
  transition: max-width 1s ease;
}

.navigation > div.active {
  max-width: 220px;
}

.navigation.active {
  visibility: visible;
  pointer-events: auto;
  opacity: 1;
}

.nave {
  list-style: none;   /* enlève les puces */
  padding: 0;         /* enlève le padding par défaut */
  margin: 0;

  display: flex;
  flex-direction: column; /* 👈 vertical */
  gap: 16px;
}

.fade-transition {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: row;
  gap: 10px;
  justify-content: center;
  align-items: center;

  background: linear-gradient(#33279E, #7363ff);
  transition: transform 0.5s ease-in-out;
  z-index: 9999;
}

.fade-transition.active {
  transform: translateY(0%);
}

.fade-transition.slide-down {
  transform: translateY(100%);
  pointer-events: none;
}

#image {
  width: clamp(30px, 7vw, 45px);
  height: auto;
}

.fade-transition .text {
  font-size: clamp(18px, 5vw, 32px);
  font-weight: bold;
  color: #fff;
  text-align: center;
}

#lien-profil {
    text-decoration: none;
    background-color: #0e1f44;
    padding: 6px 12px;
    border-radius: 10px;
    color: #ffea00;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 0 6px rgba(0, 255, 106, 0.4);
}

/* Avatar */
#avatar-roblox {
    width: clamp(28px, 6vw, 40px);
    height: clamp(28px, 6vw, 40px);
    border-radius: 50%;
}

.nave li a {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: bolder;
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  text-decoration: none;
  color: white;
  transition: color 0.5s ease;
}

.nave li a:hover {
  color: #ffea00;
}

#CGU::-webkit-scrollbar {
    width: 15px;               /* largeur de la scrollbar */
}

#CGU::-webkit-scrollbar-track {
    border-radius: 1rem;
}

#CGU::-webkit-scrollbar-thumb {
    background-color: #555;    /* couleur de la barre de défilement */
    border-radius: 1rem;
    border: 3px solid #1a1c2b; /* espace autour de la thumb */
}
#CGU::-webkit-scrollbar-thumb:hover {
    background-color: #888;    /* couleur au survol */
}

#CGU {
  font-size: clamp(12px, 1.1vw, 17px);
}

#CGU h2 {
  font-size: clamp(16px, 2vw, 24px);
}

#CGU h3 {
  font-size: clamp(14px, 1.5vw, 20px);
}

#CGU p {
  line-height: 1.6;
}

#Block {
  display: flex;
  align-items: center; /* centre l’image verticalement */
  height: 15rem;
  background-color: #0e1f41;
  padding: 1vw;
}

#BlockBottom {
  text-align: left; /* ou center si tu veux */
}

#BlockBottom ul li {
  color: rgb(27, 59, 201);
  cursor: pointer;
}

.infos {
  display: flex;
  gap: clamp(10px, 1.5vw, 18px);
}

.col {
  flex: 1;            /* colonnes équilibrées */
}

.col h2 {
  margin-bottom: 10px;
}


#BlockBottom h2 {
  margin: 0 0 10px 0;
  color: rgb(27, 59, 201);
  text-align: center;
  font-weight: bolder;
  font-size: clamp(12px, 2vw + 0.5vh, 24px);
}

#BlockBottom ul {
  margin: 0;
  padding-left: 20px;
}

#BlockBottom ul li a {
  text-decoration: none !important;
  color: rgb(27, 59, 201);
  font-size: clamp(10px, 1.5vw, 18px);
}

#Block img {
  margin-right: auto;
  height: clamp(25px, 8vw, 120px);
  width: clamp(25px, 8vw, 120px); /* 🔒 carré */
  border-radius: 50%;
  background-color: #292929;
  border: 3px solid black;
}

.separator {
  width: 100%;
  height: 2px;
  background-color: #ddd;
  margin: 20px 0;
}

/* RESPONSIVE */
@media (max-width: 600px) {
    .title {
        font-size: clamp(14px, 5vw, 20px);
    }

    .nav {
        gap: 5px;
        flex-wrap: wrap;
        justify-content: flex-end;
    }
}
