/* POLICE ECRITURE */

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

/* FOND DE PAGE */

body{
  background:#050505;
  color:white;
}


/* ===============================
              TOP BAR
================================ */


.topbar{
  position: absolute;
  top: 0;
  width: 100%;
  z-index: 10;

  background:
    linear-gradient(
      135deg,
      rgba(0,0,0,0.95) 0%,
      rgba(25,18,5,0.9) 45%,
      rgba(0,0,0,0.95) 100%
    );

  box-shadow: 0 10px 40px rgba(0,0,0,.7);
}

.topbar-inner{
  max-width:1300px;
  margin:auto;
  padding:14px 28px;
  display:grid;
  grid-template-columns: 1fr auto 1fr;
  align-items:center;
}

.nav{
  display:flex;
  gap:18px;
  justify-self:start;
}

.nav-item{
  padding: 8px 14px;

  font-size: 13px;
  letter-spacing: .15em;
  text-transform: uppercase;

  color: rgba(255,255,255,.65);
  text-decoration: none;

  border-radius: 8px;

  background: transparent;
  border: 1px solid transparent;
  outline: none;

  transition:
    background .15s ease,
    border-color .15s ease,
    color .15s ease;
}

.nav-item:hover{
  color: #ffffff;
  background: rgba(255,255,255,.10);
  border-color: rgba(255,255,255,.18);
}


/* CATEGORIE */


.nav-item:focus,
.nav-item:active{
  background: transparent;
  border-color: transparent;
  color: rgba(255,255,255,.65);
}

.brand{
  justify-self:center;
  text-align:center;
  font-weight:bold;
  letter-spacing:.25em;
  transform: translateX(-10px);
}


/* BOUTON LOGIN */


.login{
  justify-self:end;

  background:#2a2a2a;
  color:#f3b63d;

  padding:8px 14px;
  border-radius:10px;

  font-size:13px;
  text-decoration:none;

  /* pas de cadre par défaut */
  border:1px solid transparent;

  transition: border-color .15s ease;
}

.login:hover{
  border-color:#f3b63d;
}


/* ===============================
                HERO
================================ */


.hero-holocube{
  height:100vh;
  background:
    linear-gradient(to bottom, rgba(0,0,0,.2), rgba(0,0,0,.95)),
    url("../images/background.png") center/cover no-repeat;
  display:flex;
  align-items:center;
  justify-content:center;
  position:relative;
}

.hero-overlay{
  position:absolute;
  inset:0;
  background:radial-gradient(circle, rgba(0,0,0,0) 45%, rgba(0,0,0,.85) 100%);
}

.hero-content{
  position:relative;
  z-index:2;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:22px;
  text-align:center;
}

.hero-logo{
  transform: translateX(0px);
  width:420px;
  max-width:90%;
  filter:drop-shadow(0 20px 40px rgba(0,0,0,.8));
}

.hero-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 14px 46px;
  min-width: 160px;

  font-size: 1.05rem;
  font-weight: 700;

  color: #7a3f00;
  text-decoration: none;

  border-radius: 10px;
  border: 1px solid #f7c45f;

  text-align: center;
  line-height: 1;

  margin-top: 6px;
  
  background: linear-gradient(
    to bottom,
    #ffd978 0%,
    #f7b84a 55%,
    #f1a933 100%
  );

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.65),
    0 6px 0 #c68c25,
    0 18px 36px rgba(0,0,0,.65);
}

.hero-btn:hover{
  transform:translateY(-1px);
  filter:brightness(1.04);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.85),
    inset 0 -1px 0 rgba(0,0,0,.08),
    0 7px 0 #c9892b,
    0 24px 44px rgba(0,0,0,.65);
}

.hero-btn:active{
  transform: translateY(4px);

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.4),
    0 2px 0 #c68c25,
    0 10px 20px rgba(0,0,0,.6);
}

.hero-btn-wrap{
  transform: translateX(-17px); /* TON décalage */
}

.hero-ip{
  margin-top:10px;
  font-size:16px;
  letter-spacing:.32em;
  opacity:.7;
  text-align:center;
  transform: translateX(-18px);
}


/* ===============================
      SERVER INFO SECTION
================================ */


.server-info-section{
  padding: 120px 24px;
  background: #121212;
}


/* ===============================
      TITRE AU-DESSUS DES BOX
================================ */

.legal-tabs{
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 50px;
}

.legal-tab{
  background: #2a2a2a;
  color: #f3b63d;
  padding: 14px 22px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  transition: background .2s ease, box-shadow .2s ease, transform .2s ease;
}

/* Onglet actif (sans cadre) */
.legal-tab.active{
  background: #1f1f1f;
  box-shadow: none;
}

/* Cadre UNIQUEMENT AU SURVOL (actif ou non) */
.legal-tab:hover{
  background: #333;
  box-shadow: inset 0 0 0 2px #f3b63d;
  transform: translateY(-2px);
}

.cgu-content{
  max-width: 900px;
  margin: 0 auto;
  color: rgba(255,255,255,0.85);
  line-height: 1.7;
}

.cgu-content h3{
  font-size: 28px;
  margin-bottom: 24px;
  color: #ffffff;
  text-align: center;
}

.cgu-content h4{
  font-size: 18px;
  margin: 32px 0 10px;
  color: #f3b63d;
  text-align: center;
  margin-top: 50px;     /* espace AVANT chaque section */
  margin-bottom: 16px; /* espace sous le titre */
}

.cgu-content p{
  margin-bottom: 16px;
  argin-bottom: 24px;
}

.cgu-date{
  margin-top: 40px;
  font-size: 14px;
  opacity: 0.6;
}


/* ===============================
            FOOTER
================================ */


.site-footer{
  background:
    linear-gradient(
      135deg,
      rgba(0,0,0,0.98) 0%,
      rgba(30,20,5,0.95) 45%,
      rgba(0,0,0,0.98) 100%
    );

  color: #cfcfcf;
  padding: 80px 24px 30px;
  font-size: 14px;
}

.footer-inner{
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr auto;
  gap: 60px;
  align-items: start;
}

/* Logo */
.footer-brand img{
  width: 160px;
  filter: drop-shadow(0 10px 20px rgba(0,0,0,.8));
}

/* Colonnes */
.footer-col h4{
  font-size: 12px;
  letter-spacing: .18em;
  margin-bottom: 16px;
  color: #fff;
}

.footer-col a{
  display: block;
  color: #9f9f9f;
  text-decoration: none;
  margin-bottom: 10px;
  transition: color .15s ease;
}

.footer-col a:hover{
  color: #f3b63d;
}

/* Réseaux */
.footer-socials{
  display: flex;
  gap: 18px;
  font-size: 20px;
}

.footer-socials a{
  color: #bfbfbf;
  text-decoration: none;
  transition: color .15s ease, transform .15s ease;
}

.footer-socials a:not(.footer-icon):hover{
  color: #f3b63d;
  transform: translateY(-2px);
}


/* Bas de footer */
.footer-bottom{
  max-width: 1200px;
  margin: 40px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.08);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 12px;
  color: #8f8f8f;
}

.footer-links a{
  color: #8f8f8f;
  text-decoration: none;
  margin-left: 16px;
}

.footer-links a:hover{
  color: #f3b63d;
}

/* Responsive */
@media (max-width: 900px){
  .footer-inner{
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-socials{
    justify-content: flex-start;
  }

  .footer-bottom{
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-links a{
    margin-left: 0;
    margin-right: 16px;
  }
}


/* ===== FIX DEFINITIF ICONES FOOTER ===== */

/* Annule toute couleur héritée des <a> */
.footer-socials a{
  color: inherit;
}

/* Couleur par défaut des SVG */
.footer-socials a svg{
  fill: #ffffff !important;
  transition: fill .15s ease, transform .15s ease;
}

/* Discord */
.footer-socials a.footer-icon:hover svg{
  fill: #5865F2 !important;
  transform: translateY(-2px);
}

/* YouTube */
.footer-socials a.footer-youtube:hover svg{
  fill: #FF0000 !important;
  transform: translateY(-2px);
}

/* Supprime tout fond / focus */
.footer-socials a,
.footer-socials a:hover,
.footer-socials a:focus,
.footer-socials a:active{
  background: transparent !important;
  outline: none !important;
  box-shadow: none !important;
}

/* FOOTER BOTTOM - LIENS PROPRES */

.footer-bottom a,
.footer-bottom a:visited{
  color: #8f8f8f;        /* même couleur que le texte */
  text-decoration: none; /* enlève le soulignement */
}

.footer-bottom a:hover{
  color: #f3b63d;        /* jaune au hover (comme ton thème) */
  text-decoration: none;
}

/* ===============================
            AUTH PHP
================================ */


.auth-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.auth-modal.show {
  display: flex;
}

.auth-box {
  width: 360px;
  background: #0f0f0f;
  padding: 30px;
  border-radius: 12px;
  position: relative;
}

.auth-close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: none;
  border: none;
  font-size: 22px;
  color: #fff;
  cursor: pointer;
}

.auth-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.auth-tab {
  flex: 1;
  padding: 10px;
  background: #1c1c1c;
  border: none;
  color: #aaa;
  cursor: pointer;
}

.auth-tab.active {
  background: #f2a900;
  color: #000;
  font-weight: 700;
}

.auth-form {
  display: none;
  flex-direction: column;
  gap: 12px;
}

.auth-form.active {
  display: flex;
}

.auth-form input {
  padding: 10px;
  border-radius: 6px;
  border: none;
  background: #1e1e1e;
  color: #fff;
}

.auth-area{
  justify-self: end;
  display: flex;
  align-items: center;
}


/* ===============================
          AUTH USER MC LOGO
================================ */


.user-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #1c1c1c;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 14px;
}

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 4px;
  image-rendering: pixelated;
}

.user-name {
  font-weight: 600;
}

.logout {
  margin-left: 8px;
  background: none;
  border: none;
  color: #f2a900;
  cursor: pointer;
  font-weight: 600;
}

.user-box {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #1c1c1c;
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
}

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 4px;
  image-rendering: pixelated;
}

.user-name {
  font-weight: 600;
}

.user-caret {
  font-size: 10px;
  margin-left: 4px;
}

.user-menu {
  position: absolute;
  top: 110%;
  right: 0;
  background: #121212;
  border-radius: 8px;
  min-width: 160px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.6);
  display: none;
  flex-direction: column;
  overflow: hidden;
  z-index: 999;
}

.user-menu a,
.user-menu button {
  padding: 10px 14px;
  background: none;
  border: none;
  color: white;
  text-align: left;
  cursor: pointer;
  font-size: 14px;
}

.user-menu a:hover,
.user-menu button:hover {
  background: #1f1f1f;
}

.user-box.open .user-menu {
  display: flex;
}