:root {
  --fond-dark: #191c23;
  --fond-secondary: #222831;
  --surface: #252935;
  --table-row: #2d3340;
  --text-primary: #e3e8f0;
  --text-secondary: #a2a5b9;
  --accent-red: #B2504E;  /* rouge doux */
  --accent-red-light: #D06A6A;
  --success: #22c55e;
  --danger: #fc4f4f;
  --white: #fff;
}

body {
  background: var(--fond-dark);
  color: var(--text-primary);
  font-family: 'Segoe UI', Arial, sans-serif;
  margin: 0;
}

html, body {
  margin: 0;
  padding: 0;
}
header {
  margin: 0;
  padding: 0;
}

.icon-fiche img {
  height: 24px;
  vertical-align: middle;
  transition: all 0.3s ease; /* pour une transition douce */
  background: none;
}

.icon-fiche:hover img {
  content: url('../img/fiche2.png');
    background: none;
}

#open-fiche {
  outline: none;
  border: none;
    background: none;
}


/* HEADER plein largeur */
header {
  background: var(--fond-secondary);
  color: var(--text-primary);
  width: 100%;
  box-shadow: 0 2px 8px rgba(20,27,32,0.18);
}

header .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  flex-wrap: wrap;
  row-gap: 14px;
  column-gap: 16px;
}

header .logo {
  margin-right: 30px;
  flex-shrink: 0;
}

header .logo img {
  height: 56px;
  width: 66px;
  display: block;
}

/* NAVIGATION */
nav {
  flex: 1 1 auto;
  display: flex;
  justify-content: center;
}

nav ul {
  display: flex;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center; /* alignement vertical des items */
}

nav ul li,
nav ul li.submenu {
  display: flex;
  align-items: center;
}

nav ul li.submenu > a {
  position: relative;
  top: 0px; /* Remonte le lien "Classements" de 2 pixels */
}

nav ul li a,
nav ul li.submenu > a {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
  padding: 4px 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-bottom 0.2s;
  font-size: 1.025rem;
  display: inline-block;
  vertical-align: middle;
}

nav ul li a.active,
nav ul li a:hover,
nav ul li.submenu > a:hover,
nav ul li.submenu > a:focus {
  color: var(--accent-red);
  border-bottom: 2px solid var(--accent-red);
}

header form {
  margin: 0 8px;
  flex-shrink: 1;
  flex-basis: 240px;
  min-width: 150px;
  max-width: 300px;
}

header input[type="search"] {
  padding: 7px 16px;
  border-radius: 6px;
  border: none;
  background: var(--table-row);
  color: var(--text-primary);
  font-size: 1em;
  width: 100%;
  box-sizing: border-box;
  position: relative;
  top: 5px;
}


/* PARAMÈTRES & CONNEXION */
header button[title="Paramètres"] {
  background: none;
  border: none;
  margin: 0 10px;
  cursor: pointer;
  outline: none;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
header button[title="Paramètres"] img {
  height: 30px;
  width: 30px;
  filter: brightness(85%);
  transition: filter 0.2s;
}
header button[title="Paramètres"]:hover img {
  filter: brightness(115%);
}

.user-info {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;       /* Empêche le retour à la ligne */
  white-space: nowrap;     /* Évite le passage à la ligne des liens */
}

.auth-box {
  background: var(--surface);
  color: var(--accent-red);
  padding: 8px 18px;
  border-radius: 20px;
  font-weight: bold;
  text-decoration: none;
  border: 2px solid var(--accent-red);
  transition: background 0.22s, color 0.22s, border 0.22s;
  cursor: pointer;
  display: inline-block;
  margin: 0 3px;
  font-size: 1em;
  white-space: nowrap;
}
.auth-box:hover {
  background: var(--accent-red);
  color: var(--white);
}

/* HERO */
section.hero {
  background: var(--surface);
  color: var(--white);
  padding: 10px 0 24px 0;
  text-align: center;
  border-bottom: 2px solid var(--table-row);
}

section.hero h1 {
  font-size: 2.4rem;
  margin-bottom: 0;
}

section.hero p {
  font-size: 1.05rem;
  color: var(--accent-red-light);
  margin-top: 13px;
  font-weight: 600;
}

/* MAIN */
main#main-content {
  background: var(--fond-dark);
  min-height: 600px;
  padding: 32px 0;
}

/* TABLES, BLOCS */
.table-block {
  background: var(--table-row);
  color: var(--text-primary);
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(30,40,60,0.17);
  padding: 18px;
}

input, select, textarea {
  background: var(--table-row);
  color: var(--text-primary);
  border: 1px solid var(--surface);
  border-radius: 5px;
  font-size: 1em;
  padding: 7px 14px;
  margin-bottom: 14px;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent-red-light);
  box-shadow: 0 0 4px var(--accent-red-light);
}

/* FOOTER */
footer {
  background: var(--table-row);
  color: var(--text-secondary);
  text-align: center;
  font-size: 0.98rem;
  padding: 34px 12px 22px 12px;
}

footer a {
  color: var(--accent-red);
  text-decoration: underline;
  font-weight: 500;
  transition: color 0.1s;
}

footer a:hover {
  color: var(--white);
  text-decoration: underline;
}

/* Responsive pour header */
@media (max-width: 900px) {
  header .container {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 18px 10px 5px 10px;
    min-height: 0;
    gap: 10px;
  }

  header .logo {
    margin: 0 auto 8px auto;
    display: flex;
    justify-content: center;
  }

  nav {
    width: 100%;
    justify-content: center;
    margin-bottom: 8px;
  }

  nav ul {
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }

  header form {
    margin: 0 auto 10px auto;
    width: 100%;
    max-width: 400px;
    order: 100;
  }
  header input[type="search"] {
    width: 100%;
    min-width: 120px;
  }

  header button[title="Paramètres"] {
    margin: 8px auto 5px auto;
    order: 101;
  }

  .user-info, .auth-box {
    width: 100%;
    justify-content: center;
    margin: 0 auto;
    display: flex;
    gap: 10px;
    padding-bottom: 10px;
    order: 102;
  }

  .auth-box {
    max-width: 240px;
  }
}

/* Correction pour éviter que les boutons passent à la ligne en grand écran */
@media (min-width: 901px) {
  header .container {
    flex-wrap: nowrap;
  }
}

/* Popup Settings */

.settings-overlay {
  position: fixed;
  inset: 0;
  background: rgba(18,20,26,0.78);
  z-index: 999;
  transition: opacity 0.25s;
}

.settings-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  width: 370px;
  max-width: 92vw;
  background: #23272f;
  color: #e3e8f0;
  border-radius: 16px;
  box-shadow: 0 8px 48px 0 rgba(17,18,30,0.3);
  transform: translate(-50%, -50%);
  z-index: 1000;
  padding: 0;
  animation: popupFadeIn 0.23s;
}

@keyframes popupFadeIn {
  from { opacity: 0; transform: translate(-50%, -40%);}
  to   { opacity: 1; transform: translate(-50%, -50%);}
}

.settings-header {
  font-size: 1.35rem;
  font-weight: 600;
  padding: 25px 26px 12px 25px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #B2504E;
  margin-bottom: 16px;
}

.header-separator {
  height: 1px;
  background-color: #B2504E;
  margin: 0 25px 20px 25px;
  opacity: 0.6;
}

.close-settings {
  background: none;
  color: #D06A6A;
  font-size: 1.6rem;
  border: none;
  cursor: pointer;
  font-weight: bold;
  transition: color .26s;
  margin-left: 20px;
}
.close-settings:hover {
  color: #e93f3f;
}

.settings-content {
  padding: 20px 28px 24px 28px;
}

.settings-group {
  margin-bottom: 22px;
  border-bottom: 1px solid #272d3a;
  padding-bottom: 18px;
}

.settings-group:last-child {
  border-bottom: none;
}

.settings-group label {
  display: block;
  font-size: 1.07rem;
  font-weight: 500;
  margin-bottom: 6px;
  color: #fff;
}

.settings-group .desc {
  display: block;
  font-size: .97rem;
  color: #b3b9c6;
  margin-bottom: 10px;
}

.settings-group select {
  width: 100%;
  padding: 8px 14px;
  border-radius: 8px;
  border: none;
  background: #222831;
  color: #e3e8f0;
  font-size: 1.02rem;
  margin-bottom: 6px;
  box-shadow: 0 0 0 2px #252935 inset;
  outline: none;
}

.settings-group select:focus {
  box-shadow: 0 0 3px 1px #B2504E;
  border: 1px solid #B2504E;
}

nav ul li.submenu {
  position: relative;
  font-weight: 600;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  cursor: pointer;
}

nav ul li.submenu .submenu-list {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: linear-gradient(135deg, #1e2a38, #283548); /* Garde un fond sombre */
  box-shadow: 0 8px 20px rgba(178, 80, 78, 0.12);
  border-radius: 10px;
  padding: 12px 0;
  min-width: 200px;
  z-index: 10000;
  opacity: 0;
  transform: translateY(0px);
  transition: opacity 0.3s ease;
}

nav ul li.submenu:hover .submenu-list,
nav ul li.submenu:focus-within .submenu-list {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

nav ul li.submenu .submenu-list li {
  padding: 0;
  margin: 0;
  list-style: none;
}

nav ul li.submenu .submenu-list li a {
  padding: 12px 24px;
  color: var(--text-primary);
  text-decoration: none;
  display: block;
  font-weight: 500;
  font-size: 1rem;
  transition: background 0.23s, color 0.23s, border-left 0.2s;
  border-left: 4px solid transparent;
  border-radius: 6px 0 0 6px;
}

nav ul li.submenu .submenu-list li a:hover,
nav ul li.submenu .submenu-list li a:focus {
  background-color: var(--accent-red);
  color: var(--white);
  border-left-color: var(--accent-red-light);
  outline: none;
}

.discord-icon {
  width: 24px;
  height: 24px;
  margin-left: 8px;
  vertical-align: middle;
  object-fit: contain;
  border-radius: 6px;  /* facultatif */
  position: relative;
  top: -2px;           /* surélévation de 3 pixels */
}

select, input[type="number"] {
  height: 48px !important; /* même valeur pour les deux */
  box-sizing: border-box;
  padding-top: 0;
  padding-bottom: 0;
  font-size: 1.2rem;
  font-weight: 600;
}

.container_creation_casier4, 
.container_creation_casier5, 
.container_creation_casierbis, 
.container_creation_casier2 {
  max-width: 1000px;
  margin: 30px auto;
  padding: 20px 24px;
  background-color: var(--surface);
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(20,27,32,0.15);
  color: var(--text-primary);
}

.barre_creation_casier_bis2, 
.barre_creation_casier2 {
  background-color: var(--fond-secondary);
  border-bottom: 3px solid var(--accent-red);
  padding: 12px 0;
  font-weight: 700;
  color: var(--accent-red);
  font-size: 1.3rem;
  margin-bottom: 18px;
  border-radius: 12px 12px 0 0;
  text-align: center;
}

button {
  background-color: var(--accent-red);
  border: none;
  border-radius: 8px;
  padding: 14px 28px;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--white);
  cursor: pointer;
  transition: background-color 0.3s ease;
}

button:hover {
  background-color: #ba1616;
}

input[type=text], input[type=number], select {
  width: 100%;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid var(--surface);
  background: var(--table-row);
  color: var(--text-primary);
  font-size: 1.1rem;
  box-sizing: border-box;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
  color: var(--text-primary);
}

th, td {
  border: 1px solid var(--table-row);
  padding: 12px 10px;
  text-align: center;
  font-size: 1rem;
}

th {
  background-color: var(--fond-secondary);
  color: var(--accent-red);
  font-weight: 700;
}

/* Containers flexibles */
.container_double {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: space-between;
}

.container_creation_casierbis {
  flex: 1 1 48%;
}

.casier-tabs-wrapper {
  max-width: 1200px;
  margin: 38px auto 0 auto;
  background: var(--surface);
  border-radius: 15px;
  box-shadow: 0 2px 18px rgba(25,28,35, 0.17);
  overflow: hidden;
  padding-bottom: 2px;
}

.casier-tabs-bar {
  display: flex;
  justify-content: flex-start;
  background: var(--fond-secondary);
  border-bottom: 2.5px solid var(--accent-red);
  gap: 0;
}

.casier-tab-btn {
  flex: 1 0 130px;
  background: none;
  border: none;
  outline: none;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 1.15rem;
  padding: 18px 0 14px 0;
  cursor: pointer;
  transition: background 0.16s, color 0.15s;
  border-bottom: 3px solid transparent;
  position: relative;
  border-radius: 0 0 0 0;
}
.casier-tab-btn.active, .casier-tab-btn:hover {
  color: var(--accent-red);
  border-bottom: 3px solid var(--accent-red);
  background: var(--table-row);
  z-index: 2;
}

.casier-tabs-content {
  background: var(--surface);
  padding: 32px 38px 24px 38px;
  min-height: 220px;
}

.casier-tab-content {
  display: none;
  animation: tabFadeIn .23s;
}
.casier-tab-content.active {
  display: block;
}
@keyframes tabFadeIn {
  from {opacity: 0;}
  to {opacity: 1;}
}
@media (max-width: 900px) {
  .casier-tabs-wrapper, .casier-tabs-content {padding: 8px;}
  .casier-tabs-bar {flex-direction: column;}
  .casier-tab-btn {text-align:left; padding: 13px 16px;}
}

.casier-profile {
  max-width: 1200px;
  margin: 30px auto 40px;
  background: var(--surface);
  border-radius: 12px;
  box-shadow: 0 3px 15px rgba(18,20,26,0.4);
  overflow: hidden;
  color: var(--text-primary);
  padding: 20px 24px 30px 24px;
  font-size: 1.05rem;
  line-height: 1.45;
  position: relative;
}

.barre_profil {
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--accent-red);
  border-bottom: 3px solid var(--accent-red);
  padding-bottom: 12px;
  margin-bottom: 20px;
  position: relative;
}

.barre_profil .edit-icon {
  position: absolute;
  top: 10px;
  right: 24px;
  cursor: pointer;
  color: var(--accent-red);
  font-size: 1.25rem;
  user-select: none;
  transition: color 0.2s ease;
}
.barre_profil .edit-icon:hover {
  color: var(--accent-red-light);
}

.secteur_haut {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}

.secteur_1 {
  flex: 1 1 320px;
  min-width: 280px;
  display: flex;
  gap: 18px;
}

.avatar-podium {
  width: 75px;
  height: 110px;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 12px;
  border: none !important;      /* enlevez la bordure rouge */
  box-shadow: none !important;  /* supprimez le halo */
  flex-shrink: 0;
}

.avatar {
  width: 75px;
  height: 110px;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 12px;
  border: 2px solid var(--accent-red);
  flex-shrink: 0;
  box-shadow: 0 0 8px var(--accent-red);
}

.badge-round {
  position: absolute;
  top: -10px;
  right: -10px;
  width: 42px;
  height: 42px;
  background: var(--surface);
  border-radius: 50%;
  border: 2.5px solid var(--fond-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
  overflow: hidden;
}

.badge-icon {
  display: block;
  /* attention : PAS de width/height ici ! */
  max-width: 90%;
  max-height: 90%;
  object-fit: contain; /* S'adapte sans déformer, reste centré */
}
@media (max-width: 900px) {
  .badge-round {
    width: 28px;
    height: 28px;
    top: -8px;
    right: -8px;
  }
}

.texte_avatars {
  flex: 1;
  font-weight: 500;
}

.figure {
  margin: 0 0 14px 0;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--accent-red-light);
  font-style: normal;
}

.badge-img {
  width: 48px;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 0 4px var(--accent-red-light);
}

.traithaut {
  width: 3px;
  background: var(--accent-red);
  margin: 14px 0 0 0;
  height: auto;
  border-radius: 6px;
  align-self: stretch;
}

.secteur_2 {
  flex: 1 1 420px;
  min-width: 320px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: var(--text-primary);
}

.barre_hotels {
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--accent-red);
  border-bottom: 2.5px solid var(--accent-red);
  padding-bottom: 12px;
  margin-bottom: 14px;
  user-select: none;
}

.liste_hotels {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  justify-content: space-between;
}

.liste_gauche, .liste_droite {
  flex: 1 1 48%;
  font-weight: 500;
  line-height: 1.32;
  font-size: 1.05rem;
  white-space: nowrap;
}

.langue {
  filter: grayscale(60%);
  opacity: 0.66;
  transition: all 0.3s ease;
}
.langue:hover {
  filter: grayscale(0%);
  opacity: 1;
}

.metamask-icon {
  width: 24px;
  vertical-align: middle;
  margin-right: 10px;
}

.flag-btn input[type="image"] {
  vertical-align: middle;
  border-radius: 8px;
  box-shadow: 0 0 8px rgba(178, 80, 78, 0.5);
  cursor: pointer;
  transition: filter 0.3s ease;
}
.flag-btn input[type="image"]:hover {
  filter: brightness(1.1);
}

@media (max-width: 900px) {
  .secteur_haut {
    flex-direction: column;
  }
  .secteur_1, .secteur_2 {
    flex: 1 1 100%;
    min-width: initial;
  }
  .liste_hotels {
    gap: 14px;
  }
  .liste_gauche, .liste_droite {
    flex: 1 1 100%;
  }
}

.profile-card {
  max-width: 1200px;
  margin: 30px auto 40px auto;
  background: var(--surface);
  border-radius: 14px;
  box-shadow: 0 5px 18px rgba(18, 20, 26, 0.4);
  color: var(--text-primary);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  padding: 26px 36px;
}

.profile-header {
  position: relative;
  text-align: center;
  margin-bottom: 36px;
  font-weight: 700;
  font-size: 1.8rem;
  color: var(--accent-red);
  user-select: none;
}
.profile-header h1 {
  margin: 0;
}
.edit-btn {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  background: none;
  outline: none;
  border: none;
  cursor: pointer;
  color: var(--accent-red);
  transition: color 0.25s ease;
  padding: 0 6px;
  user-select: none;
}
.edit-btn:hover {
  color: var(--accent-red-light);
}

.profile-main {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

.avatar {
  width: 110px;
  height: 160px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  border-radius: 14px;
  box-shadow: 0 0 15px var(--accent-red);
  border: 2px solid var(--accent-red);
  flex-shrink: 0;
}

.profile-info {
  flex: 1;
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1.5;
  min-width: 280px;
  max-width: 720px;
  color: var(--text-primary);
}

.badge {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 24px;
  color: var(--accent-red-light);
  font-style: normal;
}
.badge img {
  max-width: 48px;
  border-radius: 12px;
  box-shadow: 0 0 10px var(--accent-red-light);
}
.badge figcaption {
  font-size: 1rem;
  max-width: 280px;
}

.profile-info h2 {
  margin: 0 0 6px 0;
  font-weight: 800;
  font-size: 1.55rem;
  color: var(--accent-red);
}

.profile-info h3 {
  margin: 0 0 18px 0;
  font-weight: 600;
  font-style: italic;
  color: var(--accent-red-light);
}

.profile-details {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 12px 28px;
  font-weight: 500;
}
.profile-details dt {
  color: var(--accent-red);
  user-select: none;  
  text-align: right;
}
.profile-details dd {
  margin: 0;
  color: var(--text-primary);
  word-break: break-word;
}

.international-nicks {
  margin-top: 42px;
}

.international-nicks h2 {
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--accent-red);
  border-bottom: 3px solid var(--accent-red);
  padding-bottom: 8px;
  user-select: none;
  margin-bottom: 20px;
}

.nick-lists {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}

.nick-list {
  flex: 1 1 45%;
  font-weight: 600;
  font-size: 1em;
  color: var(--text-primary);
}

.nick-list ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.nick-list li {
  margin-bottom: 12px;
  white-space: nowrap;
  display: flex;
  align-items: center;
}

.metamask-icon {
  width: 24px;
  margin-right: 12px;
  vertical-align: middle;
  box-shadow: 0 0 8px var(--accent-red);
  border-radius: 6px;
}

.flag-btn input[type="image"] {
  width: 26px;
  height: 18px;
  border-radius: 8px;
  box-shadow: 0 0 8px rgba(178, 80, 78, 0.5);
  cursor: pointer;
  transition: filter 0.3s ease;
  margin-right: 8px;
}
.flag-btn input[type="image"]:hover {
  filter: brightness(1.15);
}

.langue {
  filter: grayscale(60%);
  opacity: 0.55;
  transition: all 0.3s ease;
}
.langue:hover {
  filter: grayscale(0%);
  opacity: 1;
}

@media (max-width: 900px) {
  .profile-main {
    flex-direction: column;
    align-items: center;
  }

  .profile-info {
    max-width: 100%;
    min-width: auto;
  }

  .nick-lists {
    flex-direction: column;
  }

  .nick-list {
    flex: 1 1 100%;
  }
}

.profile-banner {
  max-width: 1200px;
  min-height: 146px;
  background-position: center;
  background-size: cover;
  border-radius: 16px;
  margin: 24px auto;
  box-shadow: 0 3px 20px rgba(30,40,55,0.18);
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
}

.profile-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between; /* Espace entre blocs */
  gap: 26px;
  background: rgba(32,32,38,0.68);
  border-radius: 16px;
  width: 100%;
  max-width: 1800px;
  min-height: 170px;
  padding: 32px 56px;
  flex-wrap: nowrap;
}

.profile-main-block {
  display: flex;
  align-items: center;
  gap: 30px;
  min-width: 0;
  max-width: 580px;
  flex-shrink: 1;
}

.profile-side-block {
  display: flex;
  align-items: center;
  gap: 40px;
  min-width: 0;
}

.profile-hotel-image {
  flex-shrink: 0;
  max-height: 128px;
  display: flex;
  align-items: center;
  min-width: 70px;
  margin-right: 6px;
}
.profile-hotel-image img {
  max-height: 128px;
  width: auto;
  user-select: none;
  pointer-events: none;
  background: none;
}

.profile-complementary-info {
  color: var(--white);
  font-size: 1.35rem;
  font-weight: 800;
  min-width: 220px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  user-select: none;
  white-space: nowrap;
  text-align: left;
}
.profile-complementary-info strong {
  font-weight: 900;
  color: var(--white);
}

/* Responsive */
@media (max-width: 1050px) {
  .profile-banner-inner {
    flex-direction: column;
    gap: 30px;
    padding: 24px 8vw;
    min-height: 0;
  }
  .profile-main-block, .profile-side-block {
    max-width: none;
    width: 100%;
  }
  .profile-side-block {
    justify-content: center;
    gap: 26px;
  }
  .profile-complementary-info {
    text-align: center;
  }
}

.avatar-wrapper {
  position: relative;
  width: 120px;   /* largeur = hauteur */
  height: 120px;  /* largeur = hauteur */
  border-radius: 50%;  /* toujours 50% pour rond parfait */
  flex-shrink: 0;
  box-shadow:
    0 0 24px 7px #668cffcc,
    0 0 65px 18px #668cff33;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  transition: box-shadow 0.3s ease;
}

.avatar-wrapper.niveau-0 {
  box-shadow:
    0 0 21px 5px #668cffcc,
    0 0 65px 18px #668cff33;
}
.avatar-wrapper.niveau-1 {
  box-shadow:
    0 0 21px 5px #4b6bbdcc,
    0 0 65px 18px #4b6bbd33;
}
.avatar-wrapper.niveau-2 {
  box-shadow:
    0 0 21px 5px #3c579fcc,
    0 0 65px 18px #3c579f33;
}
.avatar-wrapper.niveau-3 {
  box-shadow:
    0 0 21px 5px #2f4479cc,
    0 0 65px 18px #2f447933;
}
.avatar-wrapper.niveau-4 {
  box-shadow:
    0 0 21px 5px #224463cc,
    0 0 65px 18px #22446333;
}

.avatar-img-no-scale {
  position: relative; /* permet décalage */
  top: -13px;         /* remonte de 40 pixels */
  border-radius: 50%;
  display: block;
  image-rendering: pixelated;
  max-width: 104px;
  height: auto;
  width: auto;
  transition: top 0.3s ease; /* si tu veux une transition fluide */
}

.profile-basic-info {
  color: var(--white);
  min-width: 0;
  overflow-wrap: break-word;
  flex-shrink: 1;
  margin-left: 0px;
}

.banner-pseudo {
  font-size: 2.8rem;
  font-weight: 800;
  margin: 0 0 10px 0;
  letter-spacing: 2.4px;
  text-shadow: 0 2px 8px #252935cc;
  color: var(--white);
}

.infos-under-pseudo .info-line {
  font-size: 1.25rem;
  margin-bottom: 8px;
  color: var(--accent-red-light);
}

.infos-under-pseudo .grade {
  font-weight: 700;
  color: var(--accent-red);
}

.infos-under-pseudo .statut {
  font-style: italic;
  font-weight: 600;
  color: var(--accent-red-light);
}






.wallet-label {
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--accent-red);
  margin-bottom: 10px;
}

.wallet-principal-label {
  margin-top: 15px;
}

.wallet-secondary-label {
  margin-top: 22px;
}

/* Espace entre label et wallet-item */
.wallet-item {
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-weight: 600;
}

/* Ligne de séparation discrète entre wallets secondaires */
.wallets-divider-secondary {
  border: none;
  border-bottom: 1px solid rgba(178, 80, 78, 0.35);
  margin: 16px 0;
}

.wallets-container {
  background-color: var(--surface);
  border-radius: 14px;
  padding: 20px 36px;
  max-width: 950px;
  margin: 30px auto;
  box-shadow: 0 5px 20px rgba(18,20,26,0.4);
  color: var(--text-primary);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 1.1rem;
}

.barre_profil.barre_wallets {
  border-bottom: 3px solid var(--accent-red);
  margin-bottom: 25px;
  position: relative;
  user-select: none;
}
.barre_profil.barre_wallets b#collectiblesTitle {
  color: var(--white);
  font-weight: 700;
  font-size: 1.6rem;
}

.barre_profil.barre_wallets .edit-icon {
  position: absolute;
  top: 5px;
  right: 15px;
  cursor: pointer;
  font-size: 1.25rem;
  color: var(--accent-red);
  transition: color 0.2s ease;
}
.barre_profil.barre_wallets .edit-icon:hover {
  color: var(--accent-red-light);
}

.wallets-summary {
  text-align: center;
  font-weight: 700;
  font-size: 1.35rem;
  color: #2081e2;
  margin-bottom: 25px;
}
.wallets-summary .emerald-icon {
  width: 22px;
  height: 22px;
  vertical-align: middle;
  margin-left: 6px;
  position: relative;
  top: -3px;
}

.wallet-actions {
  text-align: center;
  margin: 0 0 30px 0;
}
.wallet-actions .btn {
  background-color: #2081e2;
  color: #fff;
  font-weight: 700;
  padding: 10px 25px;
  border-radius: 8px;
  font-size: 1.1rem;
  text-decoration: none;
  transition: background-color 0.3s ease;
}
.wallet-actions .btn:hover {
  background-color: #1865b5;
}

.wallet-item {
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-weight: 600;
}

.copy-btn {
  background-color: var(--table-row);
  border: none;
  padding: 10px 14px;
  border-radius: 9px;
  color: var(--text-primary);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: inset 0 0 4px var(--accent-red-light);
  transition: background-color 0.3s ease;
}
.copy-btn:hover {
  background-color: var(--accent-red);
  color: var(--white);
}

.copy-msg {
  opacity: 0;
  color: #4caf50;
  font-weight: 600;
  font-size: 0.9rem;
  transition: opacity 0.5s;
  user-select: none;
}

.wallet-item b {
  color: var(--accent-red);
  margin-right: 4px;
  white-space: nowrap;
}

.wallet-address {
  font-family: monospace;
  word-break: break-all;
  color: var(--text-primary);
  font-size: 1rem;
}

.metamask-icon {
  width: 32px;
  margin-right: 6px;
}

.btn-opensea {
  background-color: #2081e2;
  padding: 10px 14px;
  border-radius: 9px;
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background-color 0.3s ease;
}
.btn-opensea:hover {
  background-color: #1865b5;
}

.btn-immutascan {
  background-color: #2695ae;
  padding: 10px 14px;
  border-radius: 9px;
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background-color 0.3s ease;
}
.btn-immutascan:hover {
  background-color: #1d6a7c;
}

.btn-etherscan {
  background-color: #396ded;
  padding: 10px 14px;
  border-radius: 9px;
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background-color 0.3s ease;
}
.btn-etherscan:hover {
  background-color: #294bab;
}

.btn-securehabbo {
  background-color: #c99238;
  padding: 10px 14px;
  border-radius: 9px;
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background-color 0.3s ease;
}
.btn-securehabbo:hover {
  background-color: #9e7a26;
}

.wallets-divider {
  border: none;
  border-bottom: 1px solid var(--table-row);
  margin: 15px 30px;
}

/* Responsive */
@media (max-width: 700px) {
  .wallet-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .copy-btn,
  .btn-opensea,
  .btn-immutascan,
  .btn-etherscan,
  .btn-securehabbo {
    font-size: 1rem;
    padding: 12px 15px;
  }
  .wallets-summary {
    font-size: 1.2rem;
  }
}



.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(18,20,26,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1100;
}

.modal-content {
  background: var(--surface);
  border-radius: 14px;
  padding: 24px 35px;
  width: 420px;
  max-width: 90vw;
  box-shadow: 0 8px 30px rgba(17,18,30,0.5);
  color: var(--text-primary);
  position: relative;
  font-size: 1rem;
}

.modal-content h2 {
  margin-top: 0;
  margin-bottom: 15px;
  font-weight: 700;
  color: var(--accent-red);
}

.modal-content label {
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
  color: var(--white);
}

.modal-content input[type=text] {
  width: 100%;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid var(--surface);
  background: var(--table-row);
  color: var(--text-primary);
  font-size: 1rem;
  box-sizing: border-box;
  margin-bottom: 18px;
}

.close-modal {
  position: absolute;
  top: 14px;
  right: 18px;
  background: none;
  border: none;
  font-size: 1.6rem;
  font-weight: bold;
  color: var(--accent-red);
  cursor: pointer;
}

.btn-primary {
  background-color: var(--accent-red);
  color: var(--white);
  padding: 12px 28px;
  font-weight: 700;
  border: none;
  border-radius: 10px;
  font-size: 1.05rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.btn-primary:hover {
  background-color: #9b3d3a;
}

  .warning {
    color: #d9534f;
    font-weight: 700;
  }

  .nft-list {
    list-style-type: disc;
    margin-left: 20px;
  }

.clones-block {
  max-width: 480px;
  margin: 0 auto 30px auto;
  background: var(--surface);
  border-radius: 15px;
  box-shadow: 0 3px 20px rgba(30,40,55,0.09);
  padding: 24px 30px 28px 30px;
  color: var(--text-primary);
}
.clones-header {
  font-weight: 700;
  font-size: 1.3rem;
  color: #B2504E;
  margin-bottom: 8px;
  text-align: center;
  padding-bottom: 7px;
  border-bottom: 2px solid #2081e2;
  position: relative;
  letter-spacing: 0.8px;
}
.clones-header .edit-icon {
  position: absolute;
  right: 18px;
  top: 5px;
  font-size: 1.2rem;
  color: #2081e2;
  opacity: 0.7;
  cursor: pointer;
  transition: color 0.17s, opacity 0.2s;
}
.clones-header .edit-icon:hover {
  color: var(--accent-red);
  opacity: 1;
}

.clones-list {
  margin-top: 18px;
  max-height: 222px;
  overflow-y: auto;
  padding: 0 2px;
}
.clone-entry {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  background: var(--table-row);
  border-radius: 7px;
  padding: 10px 16px;
  font-size: 1.13em;
  transition: box-shadow 0.22s;
  box-shadow: 0 0 0 rgba(32,129,226,0);
}
.clone-entry:hover {
  box-shadow: 0 2px 10px rgba(32,129,226,0.18);
  background: #283241;
}
.clone-entry .hotel-flag {
  width: 22px;
  height: 22px;
  object-fit: cover;
  border-radius: 6px;
  box-shadow: 0 0 6px rgba(32,129,226,0.18);
  background: #171c27;
}
.clone-entry .pseudo-clone {
  font-weight: bold;
  color: #B2504E;
  font-size: 1.07em;
  letter-spacing: 0.7px;
  text-decoration: none;
  transition: color 0.24s;
}
.clone-entry .pseudo-clone:hover {
  color: white;
  text-decoration: underline;
}
.no-clone-msg {
  margin-top: 14px;
  color: var(--text-secondary);
  font-size: 1em;
  text-align: center;
}


.historique-rpg-container {
  background-color: var(--surface);
  border-radius: 14px;
  padding: 24px 36px;
  max-width: 950px;
  margin: 30px auto 20px auto;
  color: var(--text-primary);
  box-shadow: 0 5px 20px rgba(18,20,26,0.4);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 1rem;
}

.historique-rpg-header {
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--accent-red);
  position: relative;
  padding-bottom: 14px;
  border-bottom: 3px solid var(--accent-red);
  user-select: none;
}

.historique-rpg-header .edit-icon {
  position: absolute;
  top: 6px;
  right: 16px;
  font-size: 1.3rem;
  cursor: pointer;
  color: var(--accent-red);
  transition: color 0.25s ease;
}
.historique-rpg-header .edit-icon:hover {
  color: var(--accent-red-light);
}

.historique-rpg-content {
  margin-top: 18px;
  text-align: center;
  font-size: 1.05rem;
  color: var(--text-primary);
}

.historique-rpg-entry {
  white-space: nowrap;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.historique-rpg-entry b {
  color: var(--accent-red);
  margin-right: 8px;
  user-select: none;
}

.historique-rpg-depart {
  margin-top: 8px;
  color: var(--danger);
  font-weight: 600;
}

.historique-rpg-no-data {
  margin-top: 18px;
  font-weight: 600;
  color: var(--text-secondary);
}

.commentaires-container {
  max-width: 900px;
  margin: 30px auto 40px auto;
  background: var(--surface);
  border-radius: 16px;
  box-shadow: 0 5px 20px rgba(18,20,26,0.35);
  padding: 24px 36px;
  color: var(--text-primary);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 1.05rem;
}

.commentaires-header {
  font-weight: 700;
  font-size: 1.8rem;
  color: var(--accent-red);
  border-bottom: 3px solid var(--accent-red);
  padding-bottom: 14px;
  user-select: none;
  text-align: center;
  margin-bottom: 25px;
  position: relative;
}

.commentaire-entry {
  display: flex;
  gap: 20px;
  margin-bottom: 32px;
  padding-bottom: 12px;
  border-bottom: 1.5px solid var(--table-row);
}

.commentaire-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  box-shadow: 0 0 8px var(--accent-red);
  flex-shrink: 0;
}

.commentaire-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.commentaire-meta {
  font-weight: 700;
  color: var(--accent-red-light);
  margin-bottom: 6px;
}

.commentaire-text {
  font-style: italic;
  color: var(--text-primary);
  line-height: 1.4;
  white-space: pre-line;
}





.barre_profil.barre_screens {
  position: relative;
  background: var(--fond-secondary);
  padding: 12px 16px;
  margin-bottom: 20px;
  border-radius: 6px;
  box-shadow: 0 1px 8px rgba(20,27,32,0.3);
}

.barre_profil.barre_screens center b#screensTitle {
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--accent-red);
  user-select: none;
}

.barre_profil.barre_screens .edit-icon {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 1.3rem;
  color: var(--accent-red);
  cursor: pointer;
  user-select: none;
  transition: background 0.3s ease, transform 0.2s ease;
  padding: 4px 8px;
  border-radius: 4px;
}

.barre_profil.barre_screens .edit-icon:hover,
.barre_profil.barre_screens .edit-icon:focus {
  background: rgba(178, 80, 78, 0.2);
  transform: scale(1.1);
  outline: none;
}

/* Modal overlay */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(25, 28, 35, 0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  backdrop-filter: blur(5px);
}

/* Modal content */
.modal-content {
  background: var(--fond-secondary);
  padding: 24px;
  border-radius: 8px;
  width: 360px;
  box-shadow: 0 0 20px var(--accent-red);
  position: relative;
  color: var(--text-primary);
}

/* Close button */
.close-modal {
  position: absolute;
  top: 10px;
  right: 14px;
  border: none;
  background: none;
  font-size: 28px;
  font-weight: 900;
  color: var(--accent-red);
  cursor: pointer;
  line-height: 14px;
  transition: color 0.3s ease;
}

.close-modal:hover,
.close-modal:focus {
  color: var(--accent-red-light);
  outline: none;
}

/* Form labels and inputs */
.modal-content label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.modal-content input[type="text"],
.modal-content input[type="file"] {
  width: 100%;
  padding: 8px 10px;
  margin-bottom: 16px;
  border-radius: 5px;
  border: 1px solid var(--table-row);
  background: var(--surface);
  color: var(--text-primary);
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.modal-content input[type="text"]:focus,
.modal-content input[type="file"]:focus {
  border-color: var(--accent-red);
  outline: none;
}

/* Submit button */
.modal-content button[type="submit"] {
  background: var(--accent-red);
  color: var(--white);
  border: none;
  padding: 12px 20px;
  border-radius: 6px;
  font-weight: 700;
  cursor: pointer;
  width: 100%;
  font-size: 1.1rem;
  transition: background-color 0.3s ease;
}

.modal-content button[type="submit"]:hover,
.modal-content button[type="submit"]:focus {
  background: var(--accent-red-light);
  outline: none;
}

.screen-folder {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 12px;
}

/* Miniature des screens */
.screen-thumb {
  border: 2px solid var(--fond-secondary);
  border-radius: 8px;
  overflow: hidden;
  width: 120px;
  height: 90px;
  justify-content: center;
  align-items: center;
  display: flex;
  cursor: pointer;
  background: var(--surface);
  transition: box-shadow 0.3s ease;
}

.screen-thumb img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  user-select: none;
}

/* Halo lumineux rouge pour tous les popups */
.settings-popup {
  box-shadow: 0 0 15px 5px rgba(255, 0, 0, 0.7);
  border-radius: 8px;
}
#error-popup {
  box-shadow: 0 0 15px 5px rgba(255, 0, 0, 0.7);
}
#login-popup {
  box-shadow: 0 0 15px 5px rgba(255, 0, 0, 0.7);
}
#fiche-popup {
  box-shadow: 0 0 15px 5px rgba(255, 0, 0, 0.7);
}

img.alignleft {
  float: left;
  margin: 0 15px 15px 0;
}

img.alignright {
  float: right;
  margin: 0 0 15px 15px;
}

img.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.article-content {
  text-align: justify; /* Exemple, pour le texte */
}

.glightbox-desc {
  white-space: normal !important;   /* Pour autoriser le retour à la ligne */
  overflow: visible !important;     /* Pour ne pas couper le texte */
  max-height: none !important;      /* Pour supprimer la limite de hauteur */
  text-overflow: unset !important;  /* Supprime les ... de troncature */
  word-wrap: break-word !important; /* Pour casser les mots longs */
  padding: 10px 15px !important;    /* Ajoute un peu d'espace autour */
  font-size: 1rem !important;       /* Assure une taille lisible */
  line-height: 1.4 !important;
  max-width: 90vw !important;       /* Limite largeur sur petits écrans */
}

@media (max-width: 900px) {
  .niveau-round {
    width: 28px;
    height: 28px;
    bottom: -8px;
    left: -8px;
    font-size: 14px;
  }
}
