body {
  font-family: "Roboto", sans-serif;
}
.font-playfair {
  font-family: "Playfair Display", serif;
}

html, body {
  height: 100%;
}

nav {
  background-color: #3a2a1f;
  background-image: url("/assets/img/navbar.jpg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  user-select: none;
  height: 80px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 24px;
  gap: 16px;

  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9999;
}

nav ul {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  white-space: nowrap;
  flex-grow: 1;
  scrollbar-width: none;
  -ms-overflow-style: none;
  justify-content: center;
  align-items: center;
  gap: 16px;
}

nav ul::-webkit-scrollbar {
  display: none;
}

nav ul li {
  flex-shrink: 0;
}

nav ul li a {
  display: inline-block;
  padding: 0 32px;
  line-height: 80px;
  font-size: 22px;
  color: #d6b88a;
  text-decoration: none;
  font-family: 'Josefin Sans', sans-serif;
  position: relative;
  transition: color 0.3s ease;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8), 0 0 8px rgba(0, 0, 0, 0.5);
}

/* Page active : changement de couleur */
nav ul li a.active {
  color: #f4d4a3;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8), 0 0 8px rgba(0, 0, 0, 0.5);
}

/* Barre anim?e */
nav ul li a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 14px; /* Ajuste selon ton design */
  width: 0%;
  height: 1px;
  background: #d6b88a;
  transition: width 0.3s ease;
}

nav ul li a:hover::after {
  width: 70%;
  left: 15%;
}

/* ? Pour t?l?phone : aligne ? gauche pour scroller */
@media (max-width: 768px) {
  nav ul {
    justify-content: flex-start;
  }
}


.lang-selector {
    position: relative;
    display: flex;
	flex-shrink: 0;
    align-items: center;
    cursor: pointer;
}

.lang-current {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px;
}

.lang-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 4px);  /* ? juste sous la navbar */
  right: 0;
  background-color: #3a2a1f;
  border: 1px solid #5a4a3a;
  border-radius: 4px;
  padding: 8px;
  z-index: 9999;
  width: 90px;
  max-height: 400px;
  overflow-y: auto;
  box-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

/* Pour l'afficher quand l'?l?ment a la classe "open" */
.lang-selector.open .lang-dropdown {
  display: block;
}



.lang-dropdown a {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #d6b88a;
    text-decoration: none;
    padding: 4px;
    font-size: 14px;
    transition: background 0.2s;
}

.lang-dropdown a:hover {
    background-color: #5a4a3a;
    border-radius: 4px;
}

.lang-dropdown img {
    width: 20px;
    height: 20px;
}

#discord {
    position: fixed;
    top: 100px;
    right: -150px;
    z-index: 45;
    opacity: .5;
    transition: .3s
}

#discord:hover {
    right: 0;
    opacity: 1
}

.login-header {
    background: url('/assets/img/header-image.png') no-repeat center;
    background-size: cover;
    padding: 10px;
    display: flex;           /* active flexbox */
    justify-content: space-between; /* pousse les ?l?ments aux extr?mit?s */
    align-items: center;     /* aligne verticalement */
    font-family: 'Josefin Sans', sans-serif;
    margin-bottom: 3px;
}

.login-title {
    display: inline-block;
    margin-right: 8px;
    font-family: 'Lucida Sans Unicode', sans-serif;
    font-size: 15px;
    color: #f0c57c;
}

.login-subtitle {
    font-family: 'Cambria Math', serif;
    font-size: 12px;
    color: #f0c57c;
    opacity: 1; /* tu peux retirer l?opacit? si tu veux la couleur pleine */
}
.login-body {
    background: url('/assets/img/body-image.png') no-repeat center;
    background-size: cover;
    padding: 20px;
}
.ranking-body {
background: url('/assets/img/ranking-body.png') no-repeat center;
background-size: cover;
}

.btn-login {
    position: relative;
    display: inline-block;
    width: 156px;
    height: 42px;
    background: url('/assets/img/btn-login-default.png') no-repeat center;
    background-size: contain;
    border: none;
    cursor: pointer;
    padding: 0;
    box-sizing: border-box;
}

.btn-login:hover {
    background-image: url('/assets/img/btn-login-hover.png');
    padding: 3px;
    background-origin: content-box;
}

.btn-login span {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #d6b88a;
    font-size: 14px;
    font-weight: bold;
    pointer-events: none;
    white-space: nowrap;
}

footer {
    width: 100%;
    margin: 0;
    background: url('/assets/img/footer.png') no-repeat center bottom;
    background-size: 100% auto;
    background-position: center bottom;
    font-family: 'Josefin Sans', sans-serif;
    color: #d6b88a;
    font-size: 17px;
    min-height: 236px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 20px;
}

.footer-container {
    width: 100%;
    padding: 0 24px;
    gap: 16px;

    /* ? vrai centrage */
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
}

.footer-left {
    justify-self: start;
    font-size: 16px;
    white-space: nowrap;
}

.footer-center {
    justify-self: center;
    display: flex;
    gap: 15px;
    list-style: none;
    padding: 0;
    margin: 0;
    white-space: nowrap;
}

.footer-center li { flex-shrink: 0; }

.footer-center li a {
    color: #d6b88a;
    text-decoration: none;
    font-size: 24px;
    transition: color 0.3s ease, border-bottom 0.3s ease;
    border-bottom: 1px solid transparent;
    padding-bottom: 2px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8), 0 0 8px rgba(0, 0, 0, 0.5);
}

.footer-center li a:hover {
    color: #a17a4a;
    border-bottom: 1px solid #d6b88a;
}

.footer-icons {
    justify-self: end;
    display: flex;
    gap: 15px;
}

.footer-icons a {
    color: #d6b88a;
    transition: color 0.3s ease;
}

.footer-icons a:hover {
    color: #a17a4a;
}

/* Mobile */
@media (max-width: 768px) {
    footer {
        background-color: #aba6a2;
        background-image: url('/assets/img/footer.png');
        background-blend-mode: overlay;
    }

    .footer-container {
        grid-template-columns: 1fr;  /* tout en colonne */
        row-gap: 10px;
        justify-items: center;
    }

    .footer-left { display: none; }
    .footer-icons { display: none; }

    .footer-center {
        justify-self: center;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .footer-center::-webkit-scrollbar { display: none; }
}


.footer-icons a {
    color: #d6b88a;
    transition: color 0.3s ease;
}

.footer-icons a:hover {
    color: #a17a4a;
}
