@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scrollbar-width: thin;
  scrollbar-color: #3faffa transparent;
}

html::-webkit-scrollbar {
  width: 8px;
}

html::-webkit-scrollbar-track {
  background: transparent;
}

html::-webkit-scrollbar-thumb {
  background-color: #3faffa;
  border-radius: 10px;
}

html::-webkit-scrollbar-thumb:hover {
  background-color: #3faffa;
}

body {
  font-family: 'Roboto', sans-serif;
  background-color: #1c1f26;
  background-image: url('/img/image.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: #f9f9f9;
  min-height: 100vh;
  overflow-x: hidden;
  padding-top: 135px;
  padding-bottom: 80px;
}

.minecraft-text {
  font-family: 'Press Start 2P', cursive, monospace;
  font-size: 0.9rem;
  color: #dcd7ce;
  text-shadow: 2px 2px 0 #000;
}

header {
  width: 100%;
  margin-bottom: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 1;
}

.welcome-bubble {
  background: linear-gradient(
    135deg,
    #3faffa 0%,              /* bleu clair */
    #1e3c72 50%,             /* bleu marine foncé */
    #3faffa 100%             /* retour bleu clair */
  );
  border-radius: 999px;
  padding: 20px 30px;
  display: inline-block;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  font-family: 'Press Start 2P', cursive, monospace;
  font-size: 0.8rem;
  color: #121212;
  text-shadow: 2px 2px 0 #000;
}


header h1 {
  font-size: 2.5rem;
  color: #fff;
}

footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50px;
  background-color: #1c1f26;
  color: #888;
  font-size: 0.8rem;
  z-index: 1000;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
  padding: 0 20px;
}

.container {
  max-width: 800px;
  margin: 100px auto 150px;
  padding: 30px;
  background-color: #262b35;
  border-radius: 16px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  text-align: center;
  position: relative;
  z-index: 1;
}

.container h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: #f9f9f9;
}

.container p {
  font-size: 1.2rem;
  line-height: 1.6;
  margin-bottom: 20px;
  color: #dcdcdc;
}

.btn-container {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 15px 30px;
  font-size: 1.2rem;
  font-weight: bold;
  color: #fff;
  background: linear-gradient(
    135deg,
    #3faffa 0%,              /* bleu clair */
    #1e3c72 50%,             /* bleu marine foncé */
    #3faffa 100%             /* retour bleu clair */
  );
  border-radius: 999px;
  text-decoration: none;
  transition: background 0.3s ease, transform 0.2s ease;
}

.btn:hover {
  background: linear-gradient(
    135deg,
    #00cfff 0%,              /* bleu clair lumineux */
    #244b9a 50%,             /* bleu foncé accentué */
    #00cfff 100%
  );
  transform: scale(1.05);
}

.btn:active {
  transform: scale(0.95);
}


.sidebar {
  height: 100%;
  width: 0;
  position: fixed;
  z-index: 1100;
  top: 0;
  left: 0;
  background: rgba(38, 43, 53, 0.9);
  backdrop-filter: blur(8px);
  overflow-x: hidden;
  transition: width 0.4s ease;
  padding-top: 60px;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.5);
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 188, 212, 0.5) transparent;
}

.sidebar::-webkit-scrollbar {
  width: 8px;
}

.sidebar::-webkit-scrollbar-track {
  background: transparent;
}

.sidebar::-webkit-scrollbar-thumb {
  background-color: rgba(0, 188, 212, 0.5);
  border-radius: 10px;
  border: 2px solid transparent;
}

.sidebar::-webkit-scrollbar-thumb:hover {
  background-color: rgba(0, 188, 212, 0.7);
}
.sidebar-content {
  padding-top: 60px;
  padding-bottom: 80px;
}

.sidebar a,
.sidebar-btn,
.dropdown-toggle {
  padding: 12px 24px;
  font-size: 1rem;
  color: #fff;
  background: rgba(0, 188, 212, 0.2);
  border-radius: 999px;
  margin: 8px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  user-select: none;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.3s ease;
}

.sidebar a:hover,
.sidebar-btn:hover,
.dropdown-toggle:hover {
  background: rgba(0, 188, 212, 0.4);
  transform: scale(1.03);
}

.sidebar a:active,
.sidebar-btn:active,
.dropdown-toggle:active {
  transform: scale(0.95);
}

.arrow-icon {
  transition: transform 0.3s ease;
}

.arrow-icon.rotated {
  transform: rotate(90deg);
}

.submenu {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.3s ease;
  padding-left: 20px;
  margin-top: 4px;
}

.submenu.open {
  max-height: 500px;
}

.submenu a {
  background: rgba(255, 255, 255, 0.05);
  padding: 8px 14px;
  margin: 4px 0;
  border-radius: 999px;
  font-size: 0.9rem;
  max-width: calc(100% - 24px);
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}


.submenu a:hover {
  background-color: rgba(0, 188, 212, 0.4);
}

.closebtn {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: background 0.3s ease;
  z-index: 2;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.closebtn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.closebtn img {
  width: 20px;
  height: 20px;
}
.sidebar-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}











.openbtn-border {
  width: 100%;
  height: 3px;
  background: linear-gradient(
    90deg,
    #3faffa 0%,                         /* bleu clair moderne */
    rgba(30, 60, 114, 0) 35%,           /* halo bleu marine transparent */
    rgba(30, 60, 114, 1) 50%,           /* halo bleu marine plein */
    rgba(30, 60, 114, 0) 65%,           /* halo bleu marine transparent */
    #3faffa 100%                        /* retour bleu clair */
  );
  background-size: 200% 100%;
  animation: gradientScroll 5s ease-in-out infinite alternate;
  position: fixed;
  top: 60px;
  left: 0;
  z-index: 999;
}

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




.topbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 60px;
  background-color: #1a1d24;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hamburger-icon {
  width: 32px;
  height: 32px;
  background-image: url("/img/hamburger.svg");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  border: none;
  background-color: transparent;
  cursor: pointer;
  padding: 0;
  image-rendering: optimizeQuality;
  color: #00bcd4;
}

.topbar .user-info {
  background: linear-gradient(
    135deg,
    #3faffa 0%,              /* bleu clair */
    #1e3c72 50%,             /* bleu marine foncé */
    #3faffa 100%             /* retour bleu clair */
  );
  border-radius: 999px;
  padding: 6px 14px;
  color: white;
  display: flex;
  align-items: center;
  cursor: pointer;
  transition: background 0.3s;
}

.topbar .user-info:hover {
  background: linear-gradient(
    135deg,
    #00cfff 0%,              /* bleu plus clair au hover */
    #244b9a 50%,             /* bleu foncé accentué */
    #00cfff 100%
  );
}

.topbar .user-info img {
  border-radius: 50%;
  margin-right: 10px;
  width: 30px;
  height: 30px;
}

.dropdown {
  display: none;
  position: fixed;
  top: 75px;
  right: 20px;
  background: linear-gradient(
    135deg,
    #3faffa 0%,              /* bleu clair */
    #1e3c72 50%,             /* bleu marine foncé */
    #3faffa 100%             /* retour bleu clair */
  );
  padding: 10px;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  z-index: 1001;
}


.dropdown.open {
  display: block;
}

.dropdown a {
  color: #fff;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 5px 0;
  padding: 8px 16px;
  border-radius: 999px;
  transition: background-color 0.3s;
}

.dropdown a .icon {
  display: flex;
  align-items: center;
}

/* SVG dans le lien */
.dropdown a svg {
  transition: fill 0.3s ease;
  fill: #fff;
}

.dropdown a:hover {
  background-color: #00bcd4;
}

.dropdown a:hover svg {
  fill: #1a1d24;
}

.dropdown a:hover {
  background-color: #00bcd4;
}

.logout-btn {
  margin-top: 20px;
  background-color: #e74c3c;
  color: white;
  padding: 10px 24px;
  border: none;
  font-weight: bold;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.logout-btn:hover {
  background-color: #c0392b;
}


.footer-ad-container {
  display: block;
  width: 100%;             
  max-width: 1200px;      
  margin: 40px auto 20px auto;
  border: 0px solid red;  
  box-sizing: border-box;
  text-align: center;      
  padding: 10px 0;        
}

.footer-ad-container ins.adsbygoogle {
  display: block;
  width: 100%;            
  height: auto;
}

